- I did this as root:
$ sudo su, although it may not be necessary. - Download AWS command line tools:
$ curl https://raw.github.com/timkay/aws/master/aws -o aws - Install:
- Automatically:
$ perl --install aws - Manually:
$ mv aws /usr/local/bin/ && chmod +x /usr/local/bin/aws
- Automatically:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE HTML> | |
| <HTML> | |
| <HEAD> | |
| <TITLE>Hello World</TITLE> | |
| </HEAD> | |
| <BODY> | |
| </BODY> | |
| </HTML> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| /** | |
| * Generate CSS3 transform animation that traces a circle. | |
| * | |
| * $ node tracecircle.js animationName vendorPrefix percentStep radiusPixels | |
| * | |
| * For example: | |
| * | |
| * $ node tracecircle.js floating -webkit- 10 20 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| web: node index.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Scan your official Twitter archive to get a basic count of the | |
| * people you've talked to and the words that you've used. | |
| * | |
| * $ node tweet-counts.js ~/path/to/tweets-archive/ | |
| * | |
| */ | |
| var fs = require('fs'); | |
| var base = process.argv[2].replace(/\/$/, ''); // Strip trailing slash. | |
| var Grailbird = { data: {} }; // The Twitter archive uses this. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cat input.csv | sort -t ',' -k3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0AEA:0100 mov cx,0 # move 0 into CX | |
| 0AEA:0103 mov ah,1 # move 1 into AH | |
| 0AEA:0105 int 21 # interrupt: read character (AH=1), drop in AL | |
| 0AEA:0107 push ax # push AX (AH, AL) onto stack | |
| 0AEA:0108 inc cx # increment CX | |
| 0AEA:0109 cmp al,20 # compare AL with 0x20 (space character) | |
| 0AEA:010B jnz 105 # jump if not zero to 0105 | |
| 0AEA:010D pop dx # pop stack into DX | |
| 0AEA:010E sub dx,20 # subtract 0x20 from DX (making characters uppercase) | |
| 0AEA:0111 mov ah,2 # mov 2 into AH |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * This script takes a directory of images, looks for GPS | |
| * coordinates in each file, and then writes the filename and | |
| * decimal degrees to CSV. If you're pulling images off of your | |
| * iPhone, using Image Capture is a quick way to move them onto | |
| * your computer and get started. | |
| * | |
| * Make sure you have imagemagick installed: | |
| * $ brew install imagemagick | |
| * Download these files and install dependencies: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| web: node index.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "xf-games-open-14-scrape", | |
| "version": "0.0.0", | |
| "license": "MIT", | |
| "dependencies": { | |
| "request": "~2.34.0", | |
| "cheerio": "~0.13.1", | |
| "async": "~0.2.10" | |
| } | |
| } |