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
! name: School District Search Engine | |
! description: Searched Google for the url of every school district using SERPAPI and made a goggle with the results. List needs to be refined and tested. | |
! author: Dhruv Mehrotra twitter:@dmehro | |
! public: true | |
! avatar: #ff6600 | |
$discard | |
$boost=2,site=www.hauppauge.k12.ny.us | |
$boost=2,site=www.voyageursschool.org |
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
! name: Law Enforcement Website Search | |
! description: I used the SERPAPI to search Google for police/sheriff websites for 3,000 jurisdictions in the U.S. and turned results into a goggle. Note: Often times the police webpage is incuded on its jurisdiction's website. Also...this list could probably be refined and tested. | |
! author: Dhruv Mehrotra twitter: @dmehro | |
! public: true | |
! avatar: #ff6600 | |
$discard | |
$boost=2,site=www.anchoragepolice.com | |
$boost=2,site=www.fairbanksalaska.us | |
$boost=2,site=juneau.org |
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
def dms_to_dd(data): | |
dd = float(data[0].strip()) + float(data[1].strip())/60 + float(data[2].strip())/(60*60); | |
if data[3].strip() == 'W' or data[3].strip() == 'S': | |
dd *= -1 | |
return dd; | |
lat=re.split('[deg\'"]+',df['GPSLatitude'].values[0]) | |
lon=re.split('[deg\'"]+',df['GPSLongitude'].values[0]) | |
lat=dms_to_dd(lat) |
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://twitter.com/WomenForCohen/status/814309694697308160 | Tweet: We can't wait!!! You will do a fantastic job! You are amazing leader & speaker #ThanksDonald #AmericaFirst https://twitter.com/michaelcohen212/status/814177850878148608 … | |
https://twitter.com/WomenForCohen/status/809838221836374017 | Tweet: Snazzy looking & ready to #MAGA https://twitter.com/michaelcohen212/status/808736188844638208 … | |
https://twitter.com/WomenForCohen/status/807959126508732416 | Tweet: Happy Sunday @MichaelCohen212 we can't wait to see more of your presence in the coming days! #SundayMorning #MAGA #WhiteHouse | |
https://twitter.com/WomenForCohen/status/805188108220243968 | Tweet: Best looking men award goes to 👇🏻 We love you guys! #ThankYouTour2016 #MakeAmericaGreatAgain https://twitter.com/michaelcohen212/status/805040178385522688 … | |
https://twitter.com/WomenForCohen/status/804703162544353280 | Tweet: Look at this guy, always taking care of those who love this country! #usa #Trump #FBF https://twitter.com/michaelcohen212/status/ |
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
import sys | |
import ipaddress | |
fi = sys.argv[1] | |
count = 0 | |
with open(fi) as f: | |
for i,line in enumerate(f): | |
network = line.split(',')[0] | |
if (network != 'network' and network != '\n'): | |
net = ipaddress.ip_network(network) | |
for x in net.hosts(): |
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 | |
#Variables | |
ready_to_ssh=false | |
MSSH="ssh -o ControlPath=./control" | |
cleanup(){ | |
$MSSH -O exit "root@$ip" | |
} | |
# Get the Device IP Address |
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
Docker | |
Slide 1 | |
There's only a single operating system running. That operating system is just carved up into isolated little spaces. | |
A container is a self-contained sealed unit of software. It has everything in it that is needed to run that code. | |
Docker uses bridges to create virtual networks inside your computer | |
Docker is a program written in Go - > Kernels run directly on your hardware |
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 | |
BUILDDIR=~/src | |
BRANCH=v1.2.stable | |
DCH_DISTRO=UNRELEASED | |
sudo apt-get -y update | |
sudo apt-get -y install autoconf automake devscripts gawk g++ git-core libjpeg-dev libncurses5-dev libtool make python-dev gawk pkg-config libtiff4-dev libperl-dev libgdbm-dev libdb-dev gettext sudo equivs mlocate git dpkg-dev devscripts sudo wget sox flac | |
sudo apt-get -y -f install | |
sudo update-alternatives --set awk /usr/bin/gawk | |
mkdir $BUILDDIR | |
cd $BUILDDIR |
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
#add the repositories | |
sudo apt-get update && sudo apt-get install -y curl | |
curl http://files.freeswitch.org/repo/deb/debian/freeswitch_archive_g0.pub | sudo apt-key add - | |
echo "deb http://files.freeswitch.org/repo/deb/freeswitch-1.6/ jessie main" | sudo tee /etc/apt/sources.list.d/freeswitch.list | |
sudo apt-get update | |
# install dependencies | |
sudo apt-get install -y libyuv-dev libvpx2-dev liblua5.2-dev libvpx2-dev libvpx2 zlib1g-dev yasm nasm libspeex1 libopus-dev libsndfile-dev autoconf automake devscripts gawk g++ git-core 'libjpeg-dev|libjpeg62-turbo-dev' libncurses5-dev 'libtool-bin|libtool' make python-dev gawk pkg-config libtiff5-dev libperl-dev libgdbm-dev libdb-dev gettext libssl-dev libcurl4-openssl-dev libpcre3-dev libspeex-dev libspeexdsp-dev libsqlite3-dev libedit-dev libldns-dev libpq-dev |
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://docs.google.com/document/d/1HnSX3crTtCir0n6JFI9fX4AAsEDAkAu9n2fJ_c42hw8/edit?usp=sharing | |
https://developers.google.com/maps/documentation/javascript/get-api-key |
NewerOlder