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
import os.path as path | |
import string | |
import argparse | |
import glob | |
import re | |
def basename(filename): | |
base = filename | |
if filename.find('@2x') > 0: | |
base = filename[:filename.find('@2x')] |
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
sudo tail -f /var/log/apache2/error.log |
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
function decodeHtmlElements(string) { | |
var htmlText = document.createElement("DIV"); | |
MSApp.execUnsafeLocalFunction(function () { | |
htmlText.innerHTML = string; | |
}); | |
return htmlText.textContent || htmlText.innerText || ""; | |
} |
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
#include <iostream> | |
using namespace std; | |
int main() { | |
int total = 11; | |
while(total--) { | |
if(total == 0) { | |
cerr << "Unable to divide by zero\n"; | |
} else { |
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 | |
for app in $(ls -d */); { | |
echo $app; | |
cd $app; | |
git reset --hard; | |
git fetch --all; | |
git rebase origin/master; | |
git submodule update; | |
cd ..; |
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
Packages/* | |
Pristine\ Packages | |
Installed\ Packages | |
Session.sublime_session | |
Backup/ | |
.DS_Store | |
*.swp | |
!Packages/User | |
Settings/License.sublime_license | |
Cache |
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
echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections | |
apt-get update | |
apt-get install -y software-properties-common python-software-properties | |
add-apt-repository ppa:webupd8team/java | |
apt-get update | |
apt-get install -y oracle-java7-installer curl | |
apt-get upgrade -y |
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 | |
define('DRUPAL_ROOT', getcwd()); | |
$_SERVER['HTTP_HOST'] = 'default'; | |
$_SERVER['PHP_SELF'] = '/index.php'; | |
$_SERVER['REMOTE_ADDR'] = '127.0.0.1'; | |
$_SERVER['SERVER_SOFTWARE'] = NULL; | |
$_SERVER['REQUEST_METHOD'] = 'GET'; | |
$_SERVER['QUERY_STRING'] = ''; | |
$_SERVER['PHP_SELF'] = $_SERVER['REQUEST_URI'] = '/'; | |
$_SERVER['HTTP_USER_AGENT'] = 'console'; |
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 | |
wget http://download.redis.io/redis-stable.tar.gz | |
tar xvzf redis-stable.tar.gz | |
cd redis-stable | |
make | |
cp src/redis-server /usr/local/bin | |
cp src/redis-cli /usr/local/bin |
OlderNewer