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 | |
$ { | |
"GLOBALS" | |
} | |
["urgtxxu"]="password"; | |
$ { | |
"GLOBALS" | |
} | |
["tmwmkkbdjy"]="data"; | |
$ { |
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 | |
$uselogin = 1; | |
$user = 'sfnsaw'; | |
$pass = 'mium'; | |
if($_POST['id']== 'logout') | |
{ | |
Logout(); | |
} | |
if($_POST['id'] == 100) | |
{ |
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
INSTALL | |
tom@Thomass-MacBook-Pro ~ $ HOMEBREW_MAKE_JOBS=1 brew install -v wxmac 2>&1 | |
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/wxmac-3.0.0.mavericks.bottle.1.tar.gz | |
Already downloaded: /Library/Caches/Homebrew/wxmac-3.0.0.mavericks.bottle.1.tar.gz | |
==> Verifying wxmac-3.0.0.mavericks.bottle.1.tar.gz checksum | |
==> Pouring wxmac-3.0.0.mavericks.bottle.1.tar.gz | |
tar xf /Library/Caches/Homebrew/wxmac-3.0.0.mavericks.bottle.1.tar.gz | |
==> Finishing up | |
ln -s ../Cellar/wxmac/3.0.0/bin/wxrc-3.0 wxrc-3.0 |
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 datetime | |
from django.conf import settings | |
from django.contrib.auth import logout | |
from django.contrib.auth.models import User | |
from django.contrib.sessions.models import Session | |
from django.core.management.base import NoArgsCommand | |
from django.http import HttpRequest | |
from django.utils.importlib import import_module |
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
[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 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 | |
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 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 'rubygems' | |
require 'daemons' | |
Daemons.run('postgresql_agent.rb') |
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
coffee> values = [2, 4, 4, 4, 5, 5, 7, 9] | |
[ 2, | |
4, | |
4, | |
4, | |
5, | |
5, | |
7, | |
9 ] | |
# lack of an initial value doesn't matter here? |
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
coffee -c path/to/file/or/dir | |
you can also set up a watch so that it compiles whenever you save: coffee -wc path/to/file/or/dir |
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 datetime | |
import requests | |
from django.utils import simplejson | |
class EcobeeAPI(object): | |
def __init__(self, access_token, thermostat_ids): | |
self.api_url = 'https://api.ecobee.com/%s?format=json&body=%s' | |
self.access_token = access_token |