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/python | |
import time | |
import json | |
import subprocess | |
from string import ascii_lowercase, ascii_uppercase | |
ans="LVEdQPpBwr" | |
guess="" | |
##guess="LandyCane" |
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
## details found here: | |
## http://docs.graylog.org/en/2.1/pages/installation/os/centos.html | |
### assumes fresh install of centos 7 minimal with pci security config | |
### also assumes running as either root OR user with sudoers access | |
################################################ | |
########## install prereqs ##################### |
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 | |
echo '## update..' | |
sudo apt-get update -y | |
echo '## intalling apache..' | |
sudo apt-get install apache2 -y | |
echo '## intalling php..' |
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
http://libvirt.org/sources/virshcmdref/html/ | |
open virsh shell:::: | |
pc: $ virsh --connect qemu:///system | |
list virtual machines::: |
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 | |
##get the hw rev of rasp pi | |
cat /proc/cpuinfo | grep 'Revisi' | |
############ |
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
stream_urls = { | |
"christian hits": "http://rfcmedia.streamguys1.com/christianhits.mp3", | |
"K Love": "http://emf.streamguys1.com/sk037_mp3_high_web?tsid=1506303503216", | |
"Ready FM": "http://uk2.internet-radio.com:8201/stream/1/;stream.mp3", | |
"Smile FM": "http://50.7.129.122:8236/smilefm64k.mp3", | |
"reses ad": "https://secure-ds.serving-sys.com/BurstingRes/Site-833/Type-16/c9d0339c-7d33-46fc-a4e3-4c7fb1b78baf.mp4", | |
"971 the tickiet": "http://18783.live.streamtheworld.com/WXYTFMAACHI.aac", |
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
$ amixer sset 'Master' 50% |
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 | |
# require functions | |
. ./common.sh | |
# CONSTANTS | |
# TWRP | |
twrpImageDir=twrpImage/ | |
deleteGitIgnore $twrpImageDir |
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
//find all apps NOT in /data and pull to current dir | |
$ adb shell "pm list packages -f | cut -d':' -F2 | cut -d'=' -F1 | grep apk$ " | while read line; do adb pull $line; done | |
//find all apps NOT in /data && NOT in /vendor (likely no access) and pull to current dir | |
$ adb shell "pm list packages -f | cut -d':' -F2 | cut -d'=' -F1 | grep apk$ | grep -v ^\/vendor" | while read line; do adb pull $line; done | |
//find all apps in /data and pull to current dir | |
//this will pull entire package folder not just apk. first this was out of convienience when parsing the strings, but turns out you get some intersting binaries along the way. see facebook for example | |
$ adb shell "pm list packages -f | cut -d':' -F2 | grep ^\/data | cut -sd 'base.apk' -F1 " | while read line; do adb pull $line; done |
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
//find all apps NOT in /data and pull to current dir | |
$ adb shell "pm list packages -f | cut -d':' -F2 | cut -d'=' -F1 | grep apk$ " | ForEach-Object { adb pull $_ } | |
//find all apps NOT in /data && NOT in /vendor (likely no access) and pull to current dir | |
$ adb shell "pm list packages -f | cut -d':' -F2 | cut -d'=' -F1 | grep apk$ | grep -v ^\/vendor" | ForEach-Object { adb pull $_ } | |
//find all apps in /data and pull to current dir | |
//this will pull entire package folder not just apk. first this was out of convienience when parsing the strings, but turns out you get some intersting binaries along the way. see facebook for example | |
$ adb shell "pm list packages -f | cut -d':' -F2 | grep ^\/data | cut -sd 'base.apk' -F1 " | ForEach-Object { adb pull $_ } |