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 -e | |
if [ $# -ne 2 ]; then | |
echo "Usage: $0 <file> <s3keysecret>" | |
exit 1 | |
fi | |
if [ ! -f $1 ]; then | |
echo "File $1 not found. Exiting" | |
exit 1 |
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 python | |
import gevent.monkey | |
gevent.monkey.patch_all() | |
import boto | |
import config | |
import gevent | |
import gevent.pool | |
import os |
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 ruby | |
# A script to download the latest episodes from railscasts.com | |
# | |
# modifications: sgnn7 <sgnn7@sgnn7.org> | |
# original author: modsaid <mahmoud@modsaid.com> | |
require 'rubygems' | |
require 'json' | |
require 'open-uri' |
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 -e | |
VERSION=4.3-7ubuntu1.3 | |
BUILD=6410174 | |
PPA="ubuntu-security-proposed" | |
ARCH=amd64 | |
PREFIX=/tmp/dl | |
sudo rm -rf $PREFIX | |
mkdir -p $PREFIX |
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
{ | |
# Less secure though more compatible and possibly vulnerable to BEAST attack | |
# ssl_ciphers 'EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:DHE+aRSA+AES:EECDH+aRSA+SHA384:EECDH+aRSA+GCM+SHA256:!aNULL:!eNULL:!EXPORT:!MEDIUM:!LOW:!CAMELLIA:!3DES:!DES:!MD5:!PSK:!RC4:!DSS:!SRP:!DSS:!SEED:!SSLv3:!SSLv2:!IDEA:!aGOST'; | |
# More secure but might not be compatible with all browsers | |
ssl_ciphers 'EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EDH+aRSA+AESGCM:!SHA:!aNULL:!eNULL:!EXPORT:!MEDIUM:!LOW:!CAMELLIA:!3DES:!DES:!MD5:!PSK:!RC4:!DSS:!SRP:!DSS:!SEED:!SSLv3:!SSLv2:!IDEA:!aGOST'; | |
ssl_ecdh_curve secp384r1; | |
} |
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 | |
adb shell dumpsys activity | grep Intent | grep -v 'Intent:' | grep -v Sticky | sed -e 's/.* cmp=.*\///g' | sed -e 's/}//g' |
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 | |
adb shell dumpsys meminfo | awk '/^\*\*.*com.asolutions.endless.mobility/ { c=20;{print}next}c-->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
#define RED 0 | |
#define GREEN 1 | |
#define BLUE 2 | |
#define VOLUME_DEAD_ZONE 34 | |
#define MIN_VOLUME 40 | |
#define MAX_VOLUME 460 | |
#define CENTER_VOLUME ((MAX_VOLUME + MIN_VOLUME) / 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
*.deb | |
build/ |
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
APP_NAME=foobar | |
TASK_INDEX=0 | |
LOG_TYPE=stderr # or stdout | |
MARATHON_HOST="marathon.host.local" | |
SCHEME=https | |
MARATHON_TASK_URI="$SCHEME://$MARATHON_HOST/v2/apps/$APP_NAME?embed=app.tasks" | |
app_info=$(curl "$MARATHON_TASK_URI") | |
app_task=$(echo ${app_info} | jq -r ".app.tasks[$TASK_INDEX]") |
OlderNewer