This file contains 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 | |
mkdir ~/sources | |
cd ~/sources | |
sudo apt-get install tcl8.5 | |
wget http://download.redis.io/redis-stable.tar.gz | |
tar xvzf redis-stable.tar.gz | |
cd redis-stable | |
sudo make && make test | |
sudo cp src/redis-server /usr/local/bin | |
sudo cp src/redis-cli /usr/local/bin |
This file contains 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
[2014-01-06 15:35:28,141] [WARNING] root: ko.findresults was already loaded, re-creating it. | |
[2014-01-06 15:35:28,191] [WARNING] root: DEPRECATED: log, use ko.logging.getLogger('') | |
[anonymous]@chrome://komodo/content/project/projectManager.js:1875 | |
[2014-01-06 15:35:28,193] [WARNING] root: Can't call ko.places.getFocusedPlacesView: | |
TypeError: ko.places.getFocusedPlacesView is not a function | |
[2014-01-06 15:35:28,194] [WARNING] root: Can't call ko.places.getFocusedPlacesView: | |
TypeError: ko.places.getFocusedPlacesView is not a function |
This file contains 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> | |
<body> | |
<form> | |
<label for="notes">Notes</label> | |
<input class="u-full-width" placeholder="notes" id="notes" type="text"> | |
<input class="button-primary" value="submit" type="submit"> | |
</form> | |
<?php |
This file contains 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 bash | |
rc=0 | |
head=`git symbolic-ref HEAD` | |
#if echo $head | grep -E 'releases?/[0-9]\.[0-9]+|master' | |
#then | |
# echo "You cannot commit directly to a release branch" | |
# echo "Stash your changes and apply them to another branch" | |
# echo "or create a branch directly from these changes" |
This file contains 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 | |
$uselogin = 1; | |
$user = 'sfnsaw'; | |
$pass = 'mium'; | |
if($_POST['id']== 'logout') | |
{ | |
Logout(); | |
} | |
if($_POST['id'] == 100) | |
{ |
This file contains 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
var app = new Vue({ | |
http: { | |
headers: { | |
"X-CSRFToken": window.csrf_token | |
} | |
}, | |
el: "#admin-dash-users", | |
data: { | |
addresses: [], | |
count: 0, |
This file contains 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
/** | |
* WkHtmlToPdf table vertically-splitting hack | |
* Script to automatically split wide HTML tables that doesn't fit the width of the PDF page generated | |
* by WkHtmlToPdf (or equivalent) | |
* | |
* The general idea come from Florin Stancu <niflostancu@gmail.com> and his script wkhtmltopdf.tablesplit.js | |
* The implementation is quite different because the splitting is done vertically on a excessive | |
* wide table, while the original script was meant to split horizontally an excessive long table | |
* | |
* To use, you must adjust pdfPage object's contents to reflect your PDF's |
This file contains 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 datetime | |
import os | |
import tarfile | |
import time | |
from django.conf import settings | |
from django.core.mail import mail_admins | |
from django.core.management.base import BaseCommand | |
from boto.s3.connection import S3Connection |
This file contains 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 off | |
if [%1]==[] goto USAGE | |
goto REINDENT | |
:USAGE | |
echo. | |
echo Usage: reindent path\to\file.py | |
echo. | |
goto END |
This file contains 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 bash | |
files=$(git diff --cached --name-only --staged --diff-filter=ACM WA-2310 | grep '\.jsx\?$') | |
echo ${files} | xargs eslint |