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
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
if not GPIO.input(LCD_button): | |
while not GPIO.input(LCD_button): | |
pass | |
print "LCD Button Activated" |
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 RPi.GPIO as GPIO | |
import time | |
import sys | |
on = GPIO.LOW | |
off = GPIO.HIGH | |
Sensor_bucketFull = 23 | |
Sensor_bucketEmpty = 24 |
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 distutils.core, os, codecs,time,sys | |
pathlist = raw_input("Please enter the path to the list: ") | |
rootpath = raw_input("Please enter the root prefix for all files: ") | |
destpath = raw_input("Please enter the destination path: ") | |
failed = [] | |
count =1 | |
with codecs.open(pathlist,"r", encoding='cp1252') as txt: | |
for f in txt: |
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
[Settings] | |
Check DLL versions=0 | |
Show toolbar=1 | |
Status in toolbar=0 | |
Use hardware breakpoints to step=0 | |
Restore windows=1 | |
Scroll MDI=0 | |
Horizontal scroll=0 | |
Topmost window=0 | |
Index of default font=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 | |
# -*- coding: CP1252 -*- | |
# | |
# generated by wxGlade 0.6.8 (standalone edition) on Fri Feb 28 16:55:15 2014 | |
# | |
import wx | |
# begin wxGlade: dependencies | |
import gettext |
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 dpkt | |
import socket | |
import binascii | |
def rfc1918(ip): | |
try: | |
octets = map(int, ip.split('.')) | |
except: | |
return False |
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
++Ccounter <= 4 {print;next} | |
++Bcounter <= 4 {next} | |
1 {print; Ccounter=1; Bcounter=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
#!/bin/sh | |
# Start elasticsearch | |
# NOTE: Make sure to change the version for elasticsearch to whatever your current version is! | |
cd /data/moloch/elasticsearch-0.90.2 | |
ulimit -a | |
# Uncomment if using Sun Java for better memory utilization | |
# export JAVA_OPTS="-XX:+UseCompressedOops" | |
export ES_HOSTNAME=`hostname -s`a |
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 idc,idaapi | |
#bind myNopPatch to alt n-key in IDA | |
idaapi.CompileLine('static n_key() { RunPythonStatement("myNopPatch()"); }') | |
#delcare hotkey | |
idc.AddHotkey("Alt-N", "n_key") | |
#declare myNopPatch | |
def myNopPatch(): |