For headless Linux servers you can install a copy of Dropbox in your home folder using the following command:
64-bit:
| # Small define to expand a tarball at a location; assumes File[$title] | |
| # definition of tarball and installation of pax: | |
| define baselayout::drop_tarball($dest, $dir_name, $dir_sub='') { | |
| # $dest: cwd in which expansion is done | |
| # $dir_name: name of top level directory created in $dest | |
| # $dir_sub: regexp to -s for pax - not supported for .zip archives | |
| if ($dir_sub) { |
| (function (window, document, $, undefined) { | |
| if (!$.Deferred) throw 'jQuery 1.5 is required to use the jQuery.oauth script!'; | |
| function require(name, url) { | |
| if (window[name] === undefined) | |
| return $.ajax({ type: 'GET', cache: true, dataType: 'script', url: url }); | |
| } | |
| $.oauth = function (options) { | |
| var d = $.Deferred(); |
| ~> cat test.c | |
| int main() | |
| { | |
| int i = 0; | |
| int j = 0; | |
| for( i = 0; i < 100; i++ ) | |
| j += i; | |
| return 1; |
| !------------------------------------------------------------------------------- | |
| ! Xft settings | |
| !------------------------------------------------------------------------------- | |
| Xft.dpi: 96 | |
| Xft.antialias: false | |
| Xft.rgba: rgb | |
| Xft.hinting: true | |
| Xft.hintstyle: hintslight |
| ## Sample screenrc for rtorrent | |
| ## put it in /etc/screen.d/ | |
| ## and chown for the user you | |
| ## who wish to run session | |
| source /etc/screenrc | |
| chdir /home/stuff/dump/ | |
| screen -t rtorrent -d . -s . |
| webserver: webserver.c libuv/uv.a http-parser/http_parser.o | |
| gcc -I libuv/include \ | |
| -lrt -lm -lpthread -o \ | |
| webserver webserver.c \ | |
| libuv/uv.a http-parser/http_parser.o | |
| libuv/uv.a: | |
| $(MAKE) -C libuv | |
| http-parser/http_parser.o: |
| #!/usr/bin/env ruby | |
| # Usage: gitio URL [CODE] | |
| # | |
| # Turns a github.com URL | |
| # into a git.io URL | |
| # | |
| # Copies the git.io URL to your clipboard. | |
| require 'net/http' | |
| require 'clipboard' |
| source :rubygems | |
| gem 'rake' | |
| gem 'forgery' | |
| gem 'cassandra-cql', :path => '../cassandra-cql' | |
| gem 'cassandra', :path => '../cassandra' | |
| gem 'perftools.rb' | |
| gem 'rbtrace' |
| <!-- the env variables are controlled by Chef and passed in via -D on the java command-line --> | |
| <!-- This is using the appender here: https://github.com/t0xa/gelfj --> | |
| <appender name="graylog2" class="org.graylog2.log.GelfAppender"> | |
| <param name="graylogHost" value="${graylog.server}"/> | |
| <param name="originHost" value="${graylog.origin}"/> | |
| <param name="extractStacktrace" value="true"/> | |
| <param name="addExtendedInformation" value="true"/> | |
| <!-- The _web part is because a given app has multiple components --> | |
| <!-- This app might have a _web as well as an _batch component --> | |
| <param name="facility" value="${graylog.facility}_web"/> |