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 | |
# Reference: https://apple.stackexchange.com/questions/62715/applications-dont-show-up-in-spotlight | |
sudo mdutil -a -i off | |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist | |
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist | |
sudo mdutil -a -i on / |
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
TYO Mido Oban-Koban Captain-Curry Nithan-Thai Abu-Adham(Walk) Ze-Sushi Carmelis Miznon |
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
from fabric.api import * | |
SOFTETHER_SERVER_URL = "http://www.softether-download.com/files/softether/v4.21-9613-beta-2016.04.24-tree/Linux/SoftEther_VPN_Server/64bit_-_Intel_x64_or_AMD64/softether-vpnserver-v4.21-9613-beta-2016.04.24-linux-x64-64bit.tar.gz" | |
PUBLIC_CERT = '~/.ssh/cert/publickey.cer' | |
DNSMASQ_FILE = """interface=tap_soft | |
bind-interfaces | |
dhcp-range=tap_soft,192.168.7.50,192.168.7.60,12h | |
dhcp-option=tap_soft,3,192.168.7.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
#! /bin/bash | |
while inotifywait -r -e close_write --exclude '/\..+' $1; do cd $1 & fab publish; 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
# Author : Matan M. Mates | |
# Purpose: Parse an inc file and print some info about it | |
import sys | |
import struct | |
ARGC = 2 | |
unpack_struct = ">IIBBBBIIIIII12s" |
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
# Author : Matan M. Mates | |
# Purpose: Parse Intel's microcode files into binaries | |
import re | |
import os | |
MICROCODE_FILE = "./microcode.dat" | |
LICENSE_MARKER = '/---' | |
OUTPUT_DIR = '.' + os.sep + "parsed_files" | |
COMMENT_CLOSE_MARKER_RE, COMMENT_START_MARKER_RE = "\*/", "/\*" | |
COMMENT_CLOSE_MARKER, COMMENT_START_MARKER = "*/", "/*" |
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
# Author : Matan M. Mates | |
# Purpose : Solve Stego75 | |
import Image | |
# Color ladders | |
LADDER_RANGES = [((1,0) , (56,55)), | |
((57,0), (112,55)), | |
((113,0), (168,55)), | |
((169,0), (224,55)), | |
((225,0), (280,55)), |
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
quicksort :: (Ord a) => [a] -> [a] | |
quicksort [] = [] | |
quicksort (x:xs) = | |
let smallerSorted = quicksort [a | a <- xs, a <= x] | |
biggerSorted = quicksort [a | a <- xs, a > x] | |
in smallerSorted ++ [x] ++ biggerSorted |