THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
#! /usr/bin/env ruby | |
# NOTE: Requires Ruby 2.1 or greater. | |
# This script can be used to parse and dump the information from | |
# the 'html/contact_info.htm' file in a Facebook user data ZIP download. | |
# | |
# It prints all cell phone call + SMS message + MMS records, plus a summary of each. | |
# | |
# It also dumps all of the records into CSV files inside a 'CSV' folder, that is created |
#!/bin/bash | |
ADBShell () { adb ${2+-s }$2 shell "$1" | tr -d '\r' | |
} | |
GetAndroidVersion () { | |
local ALL_TAGS=$(wget -qO - "$GOOGLE_SOURCE/$REPO/+refs/tags/?format=text" | \ | |
tr -d '^{}' | cut -d/ -f3 | sort -u | grep -vE -- '-(cts|sdk)-' | grep -v "_r0") | |
TAG=${1:-$(ADBShell 'getprop ro.build.version.release')} | |
echo -e "ANDROID_SERIAL=$ANDROID_SERIAL\nro.build.version.release=$TAG" 1>&2 |
%% Math %% | |
si = @(x) sin(x) ./ (x + (x==0)); % cardinal sine without pi multiplied argument | |
hsin = @(x) 0.5 * (1.0 - cos(x)); % haversed sine | |
hcos = @(x) 0.5 * (1.0 + cos(x)); % haversed cosine | |
sigm = @(x,k) 0.5 * tanh(0.5 * k * x) + 0.5; % sigmoid function to (exp(-kx)+1)^-1 |
public class GPIO { | |
public String port; | |
public int pin; | |
//get direction of gpio | |
public String getInOut() | |
{ | |
String command = String.format("cat /sys/class/gpio/%s/direction",this.port); | |
try { |
RFC 0001 - Host Software | |
RFC 0002 - Host software | |
RFC 0003 - Documentation conventions | |
RFC 0004 - Network timetable | |
RFC 0005 - Decode Encode Language (DEL) | |
RFC 0006 - Conversation with Bob Kahn | |
RFC 0007 - Host-IMP interface | |
RFC 0008 - ARPA Network Functional Specifications | |
RFC 0009 - Host Software | |
RFC 0010 - Documentation conventions |
var client = {}; | |
client.run = function (options) { | |
options = options || {}; | |
var socket = io.connect(options.remote || "http://localhost:8080"); | |
socket.on('connect', function() { | |
var term = new Terminal({ |
/* | |
* CVE-2016-5195 dirtypoc | |
* | |
* This PoC is memory only and doesn't write anything on the filesystem. | |
* /!\ Beware, it triggers a kernel crash a few minutes. | |
* | |
* gcc -Wall -o dirtycow-mem dirtycow-mem.c -ldl -lpthread | |
*/ | |
#define _GNU_SOURCE |
Classes (Added 0, Removed 0, Modified 0) | |
Added Classes: 0 | |
Removed Classes: 0 | |
Modified Classes: 0 | |
Commons (Added 0, Removed 0, Modified 0) | |
Added Commons: 0 | |
Removed Commons: 0 | |
Modified Commons: 0 |
var delay = 250; | |
var until = 'faux123'; | |
var a = new Array(); | |
$('button[class*=follow-btn]').each(function() { | |
var attr = $(this).parent().attr('data-screen-name'); | |
if (attr != undefined) { | |
if (attr == until) { | |
return false; | |
} |