- no upfront installation/agents on remote/slave machines - ssh should be enough
- application components should use third-party software, e.g. HDFS, Spark's cluster, deployed separately
- configuration templating
- environment requires/asserts, i.e. we need a JVM in a given version before doing deployment
- deployment process run from Jenkins
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
// 1. Go to https://twitter.com/following. | |
// 2. Keep scrolling to the bottom repeatedly until all your followers are loaded. | |
// 3. Run this in your console. | |
[].slice.call(document.querySelectorAll('.unfollow-text')).forEach(function(button) { | |
button.click(); | |
}); |
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 ruby | |
require 'uri' | |
require 'httparty' | |
# Download mp3 files from SoundCloud | |
# Usage: | |
# ./soundcloud.rb https://soundcloud.com/tara-tiba/paeez_tara-tiba | |
class SoundCloud | |
include HTTParty | |
base_uri 'https://soundcloud.com' |
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
#general tracking sites, ad servers, and general evil pulled from chrome tracking graph plugin | |
127.0.0.1 buysellads.com | |
127.0.0.1 newrelic.com | |
127.0.0.1 polldaddy.com | |
127.0.0.1 quantserve.com | |
127.0.0.1 googlesyndication.com | |
127.0.0.1 google-analytics.com | |
127.0.0.1 chartbeat.com | |
127.0.0.1 netshelter.net | |
127.0.0.1 skimresources.com |
- udp://tracker.openbittorrent.com:80
- udp://tracker.publicbt.com:80
- udp://tracker.istole.it:80
- udp://tracker.btzoo.eu:80/announce
- http://opensharing.org:2710/announce
- udp://open.demonii.com:1337/announce
- http://announce.torrentsmd.com:8080/announce.php
- http://announce.torrentsmd.com:6969/announce
- http://bt.careland.com.cn:6969/announce
- http://i.bandito.org/announce
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
Netmask Netmask (binary) CIDR Notes | |
_____________________________________________________________________________ | |
255.255.255.255 11111111.11111111.11111111.11111111 /32 Host (single addr) | |
255.255.255.254 11111111.11111111.11111111.11111110 /31 Unuseable | |
255.255.255.252 11111111.11111111.11111111.11111100 /30 2 useable | |
255.255.255.248 11111111.11111111.11111111.11111000 /29 6 useable | |
255.255.255.240 11111111.11111111.11111111.11110000 /28 14 useable | |
255.255.255.224 11111111.11111111.11111111.11100000 /27 30 useable | |
255.255.255.192 11111111.11111111.11111111.11000000 /26 62 useable | |
255.255.255.128 11111111.11111111.11111111.10000000 /25 126 useable |
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
https://gist.github.com/DINKIN/23e00f01201f9ad07091ce370de04cbe | |
http://cboard.cprogramming.com/c-programming/125684-sscanf-need-include-spaces-character-string.html | |
%[^\n] is a scanf template specifier like %s. | |
%[] means all content containing characters in braces. You can use ascii ranges, eg, %[a-zA-Z0-9] will include everything alphanumeric, %[a-z!-/] will include small letters and most punctuation, %[ \t\n] will include spaces tabs and newlines. | |
%[^] is the inverse, it means all characters except this. %[^\n] -- everything up to the newline. | |
%[^NULL] aka, the "sawed off shotgun" | |
[03:36] <HackerRank1> <shashank> ok | |
[03:37] <HackerRank1> <shashank> string inp; getline(cin, inp); |
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
https://gist.github.com/DINKIN/23e00f01201f9ad07091ce370de04cbe | |
http://cboard.cprogramming.com/c-programming/125684-sscanf-need-include-spaces-character-string.html | |
[03:36] <HackerRank1> <shashank> ok | |
[03:37] <HackerRank1> <shashank> string inp; getline(cin, inp); | |
[03:37] <HackerRank1> <shashank> that's 1 way | |
[03:37] <HackerRank1> <shashank> second is | |
[03:38] <HackerRank1> <shashank> vector string> line; while (cin > inp) line.push_back(inp); | |
[03:38] <HackerRank1> <shashank> another way is |
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
<mra> ResortNet2: http://pastebin.com/raw/rtwbSf2D | |
int aaron; | |
double lewis; | |
char dinkin[55]; | |
scanf("%d", &aaron); | |
scanf("%lf", &lewis); | |
scanf("%c", dinkin); | |
scanf("%[^\n]", dinkin); |
Netmask / CIDR Translation Table
Netmask Binary CIDR Notes
---------------------------------------------------------------------------
255.255.255.255 11111111.11111111.11111111.11111111 /32 1 useable
255.255.255.254 11111111.11111111.11111111.11111110 /31 0 useable
255.255.255.252 11111111.11111111.11111111.11111100 /30 2 useable
255.255.255.248 11111111.11111111.11111111.11111000 /29 6 useable
255.255.255.240 11111111.11111111.11111111.11110000 /28 14 useable
255.255.255.224 11111111.11111111.11111111.11100000 /27 30 useable
OlderNewer