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
#!/bin/bash | |
# | |
# this script should not be run directly, | |
# instead you need to source it from your .bashrc, | |
# by adding this line: | |
# . ~/bin/cdr.sh | |
# | |
function cdr() { | |
replacement=$1 | |
array=(${PWD//\// }) |
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
<?php | |
$access_token = ""; | |
if (empty($_COOKIE["access_token"]) || $_COOKIE["access_token"] !== $access_token) { | |
header('HTTP/1.0 404 Not Found'); | |
echo "<h1>404 Not Found</h1>"; | |
echo "The page that you have requested could not be found."; | |
die(); | |
} else { | |
header('Connection: close'); | |
header('X-Accel-Buffering: no'); |
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
$(window).load(function(){ | |
var live_selectors = []; | |
$($._data(document, 'events').click).each(function(){ | |
live_selectors.push(this.selector); | |
}); | |
$('a[href=""], a[href^="#"]').each(function(){ | |
var link = this; | |
if (this.onclick === null && |
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
# -*- coding: utf-8 -*- | |
""" | |
Usage: | |
python album_fetcher.py https://plus.google.com/photos/118353143366443526186/albums/5626152497309725217 | |
python album_fetcher.py https://plus.google.com/118353143366443526186 | |
python album_fetcher.py https://plus.google.com/118353143366443526186 [email protected] yourpassword | |
python album_fetcher.py https://plus.google.com/118353143366443526186 [email protected] yourpassword /out_dir/ | |
TODO: use opt parse | |
""" | |
import os |
NewerOlder