This gist was moved to its own repository: https://github.com/aguslr/multibootusb
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
log syslog all; | |
router id 0.0.0.159; | |
# Turn on global debugging of all protocols | |
debug protocols all; | |
# Define a route filter... | |
# filter test_filter { | |
# if net ~ 10.0.0.0/16 then accept; |
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
// ES6 | |
/* | |
moloch sessions.csv field names | |
[ 'Protocol', | |
' First Packet', | |
' Last Packet', | |
' Source IP', |
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
$ nmap --script dns-zone-transfer --script-args dns-zone-transfer.domain=zonetransfer.me -p 53 -Pn $(dig +short zonetransfer.me NS | head -1) | |
Starting Nmap 6.02 ( http://nmap.org ) at 2012-07-09 10:50 CDT | |
Nmap scan report for ns12.zoneedit.com. (209.62.64.46) | |
Host is up (0.033s latency). | |
rDNS record for 209.62.64.46: ns12.zoneedit.com | |
PORT STATE SERVICE | |
53/tcp open domain | |
| dns-zone-transfer: | |
| zonetransfer.me. SOA ns16.zoneedit.com. soacontact.zoneedit.com. |
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 scala | |
import scala.io.Source | |
import java.io.FileWriter | |
import java.util.Calendar | |
import scala.util.matching.Regex | |
val resources = List( | |
Resource("http://someonewhocares.org/hosts/hosts"), | |
Resource( |
- Android learning path - https://www.mysliderule.com/learning-paths/android/learn/
- Android fundamentals - https://www.udacity.com/course/developing-android-apps--ud853
- Advance Android development - https://www.udacity.com/course/advanced-android-app-development--ud855
- Gradle - https://www.udacity.com/course/gradle-for-android-and-java--ud867
- Android performance - https://www.udacity.com/course/android-performance--ud825
- Material Design - https://www.udacity.com/course/material-design-for-android-developers--ud862
- Making custom UI example - http://mindtherobot.com/blog/272/android-custom-ui-making-a-vintage-thermometer/
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 <iostream> | |
#include <fstream> | |
#include <map> | |
#include <set> | |
#include <vector> | |
#include <algorithm> | |
struct line { | |
std::string file; | |
size_t line_number; |
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
# Create a new working directory and cd into it | |
~$ mkdir -p /path/n4update && cd /path/n4update | |
# Download all files you need | |
/path/n4update$ wget --no-check-certificates https://dl.google.com/dl/android/aosp/occam-lrx21t-factory-51cee750.tgz | |
# Download openrecovery-twrp-2.8.2.0-mako.img from http://techerrata.com/browse/twrp2/mako to the same path | |
# Download CF-Auto-Root-mako-occam-nexus4.zip from http://autoroot.chainfire.eu to the same path | |
# Extract downloaded file archives | |
/path/n4update$ mkdir -p ./images && tar zxvf occam-lrx21t-factory-51cee750.tgz -C ./images |
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 clean_tweets(self, df): | |
""" | |
Takes raw tweets and cleans them | |
so we can carry out analysis | |
remove stopwords, punctuation, | |
lower case, html, emoticons. | |
This will be done using Regex | |
? means option so colou?r matches | |
both color and colour. |
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 mysql.connector | |
from mysql.connector import Error | |
import tweepy | |
import json | |
from dateutil import parser | |
import time | |
import os | |
import subprocess |
OlderNewer