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
-- PostgreSQL 9.2 beta (for the new JSON datatype) | |
-- You can actually use an earlier version and a TEXT type too | |
-- PL/V8 http://code.google.com/p/plv8js/wiki/PLV8 | |
-- Inspired by | |
-- http://people.planetpostgresql.org/andrew/index.php?/archives/249-Using-PLV8-to-index-JSON.html | |
-- http://ssql-pgaustin.herokuapp.com/#1 | |
-- JSON Types need to be mapped into corresponding PG types | |
-- |
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 | |
# Dependencies | |
install build-essential libcurl4-openssl-dev libxml2-dev libfuse-dev | |
# Compile s3fs from source | |
wget https://s3fs.googlecode.com/files/s3fs-1.74.tar.gz | |
tar -zxvf s3fs-1.74.tar.gz | |
cd s3fs-1.74 | |
./configure |
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 | |
#### | |
## NOTE: Change /dev/sda1 to the name of the device partition you | |
## deleted the file on. | |
# Also "x" needs to be big enough to hold the file contents. | |
### | |
grep --binary-files=text --context=x 'stringfromyourfile' \ /dev/sda1 > someFile.txt |
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
# Makefile for porting MIUI | |
# | |
local-zip-file := stockrom.zip | |
local-out-zip-file := MIUI_YOURDEVICE.zip | |
local-previous-target-dir := | |
local-density := |
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
#include <sys/socket.h> | |
#include <sys/types.h> | |
#include <netinet/in.h> | |
#include <netdb.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <errno.h> | |
#include <arpa/inet.h> |
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
pyvenv-3.4 --without-pip venv | |
source venv/bin/activate | |
cd venv | |
curl -LO https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py | |
python3.4 get-pip.py |
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
sudo apt-get install libevdev-dev | |
sudo aptitude purge xserver-xorg-input-synaptics | |
sudo aptitude build-dep xserver-xorg-input-synaptics | |
sudo git clone git://anongit.freedesktop.org/xorg/driver/xf86-input-synaptics | |
cd xf86-input-synaptics | |
wget -q -O - http://xps13-9333.appspot.com/root/0001-Don-t-use-finger-width-for-the-palm-detection.patch | git am |
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 | |
for port in {1..65536}; do | |
nc -zv 127.0.0.1 $port 2>&1 | |
done | grep open |
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 | |
shopt -r -o | |
declare SCRIPT=${0##*/} | |
# | |
# all functions | |
# | |
function usage() { | |
echo USAGE: $0 application-name zip-file [environment] [solution-stack]>&2 |
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
# Just run this command: | |
bash -c "wget 'https://core.readytalk.com/interface/bin/installer/linux-x86_64/WebMeetingInstaller.sh' -O /tmp/WebMeetingInstaller.sh && sh /tmp/WebMeetingInstaller.sh" |