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 | |
namespace db; | |
class client | |
{ | |
private | |
$user, | |
$password, | |
$host, |
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 | |
/** | |
* Trait Lazy | |
* | |
* Allows for static and dynamic lazy initialization. | |
* NB. Include "use Lazy;" in every class you want this functionality, otherwise collision may happen if any of parents use Lazy. | |
* | |
* Example: |
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
######################### | |
# install binary stuffs # | |
######################### | |
apt-get install apache2 apache2-prefork-dev libaprutil1-dbd-mysql unzip mysql-server | |
mkdir -p /usr/local/src/mod_vhost_dbd | |
cd /usr/local/src/mod_vhost_dbd | |
wget http://dbd-modules.googlecode.com/files/dbd-modules-1.0.6.zip | |
unzip dbd-modules-1.0.6.zip | |
apxs2 -c mod_vhost_dbd.c |
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
section36:[~/aatemp]$ xattr -px com.apple.metadata:kMDItemWhereFroms ~/Desktop/Porkins.jpg | xxd -p -r | plutil -convert xml1 -o - - | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<array> | |
<string>http://images3.wikia.nocookie.net/__cb20111104223727/starwars/images/5/53/Porkins.jpg</string> | |
<string></string> | |
</array> | |
</plist> |
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
# Resources: | |
# | |
# * http://bencord0.wordpress.com/2012/08/11/openshift/ | |
# | |
# Starting with clean install of Ubuntu for start | |
# Update the system | |
apt-get update | |
apt-get upgrade |
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
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
import os | |
from boto.route53 import connect_to_region | |
from boto.route53.record import ResourceRecordSets | |
def apply(domain, ip, ttl, region, access_key=None, secret_key=None): | |
if access_key: | |
os.environ.setdefault('AWS_ACCESS_KEY_ID', access_key) |
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
// https://www.x.org/archive/X11R6.8.1/doc/xmodmap.1.html | |
// https://www.linux.com/learn/how-kill-caps-lock-your-linux-desktop | |
// http://egloos.zum.com/nemonein/v/5222946 | |
$ tail .zshrc | |
if [[ "$(uname -s)" == "Linux" ]]; then | |
if [ -x ~/Dropbox/config/tweak/swap_key.sh ]; then | |
xmodmap ~/Dropbox/config/tweak/swap_key.sh | |
fi | |
fi |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// Simple spreadsheet, with first sheet containing form submission repsonses | |
// when the form is submitted: | |
// 1) grab the latest response, | |
// 2) post it to a third party service via an HTTP POST | |
function testWebhook() { | |
var ss = SpreadsheetApp.openById(SPREADSHEET_ID); | |
var form=ss.getSheets()[0]; | |
var lr=form.getLastRow(); | |
var el=form.getRange(lr,2,1,1).getValue(); | |
var t=el; |
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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class MY_Input extends CI_Input { | |
/** | |
* Variables | |
* | |
*/ | |
protected $delete; |
OlderNewer