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
#last 8 digits- 6812 7167 | |
#first 8 digits- 2, 3, 5, 6, 7, 8, 9, 0 | |
#16 digits, not amex, not mastercard | |
#start 0000 0001 6812 7167 | |
#end 9999 9999 6812 7167 | |
def luhn(card_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
from flask import Flask, render_template, request, send_file, abort, redirect, make_response, url_for, jsonify | |
import requests | |
from pprint import pprint | |
from bs4 import BeautifulSoup | |
import urlparse | |
from raven.contrib.flask import Sentry | |
app = Flask(__name__) | |
app.config['SENTRY_DSN'] = '' |
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
# -*- coding: utf-8 -*- | |
""" | |
Post push to Staging | |
~~~~~~~~~~~~~~~~~~~~ | |
No more manual cache clearing | |
""" | |
from selenium import webdriver | |
from selenium.common.exceptions import TimeoutException |
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
EXPORT="yourdomain.com:/home/shared/folder" | |
MNTDIR="/local/folder" | |
TESTFILE="remote-file.test" | |
NFSPROTO="udp" | |
if [[ -n "$1" ]]; then | |
NFSPROTO="tcp" | |
fi | |
echo "Testing transfer speed of $NFSPROTO on file $EXPORT/$TESTFILE" |
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 os | |
import sys | |
from pprint import pprint | |
if len(sys.argv) > 1: | |
path = os.getcwd() + "/" + sys.argv[1] | |
else: |
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 | |
echo "==========Add Host to SSH Config=============" | |
echo "What NICKNAME will you call the host? " | |
read host_name | |
echo "What USER will be logging in? " | |
read user_name | |
echo "What IP ADDRESS is the host? " | |
read ip_address | |
echo "What SSH PORT is the host using? " |
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 | |
#creates nginx and uwsgi files and enables sites | |
echo "------------------Add-App------------------" | |
echo "What is the ABSOLUTE PATH of your WSGI file? " | |
read wsgi_path | |
app_home=$(dirname "$wsgi_path") | |
echo "Using $app_home for your App Directory." | |
echo "Using $app_home/venv for your Virtualenv." |
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 sublime_plugin | |
import sublime | |
import os | |
class MyEvents(sublime_plugin.EventListener): | |
def on_modified_async(self, view): | |
s = view.file_name() | |
if s: | |
if not os.path.exists(s): |
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
sudo newfs_msdos -v EFI -F 32 /dev/rdisk1s1 | |
sudo mkdir /Volumes/EFI | |
sudo mount -t msdos /dev/disk1s1 /Volumes/EFI | |
sudo rm -rf /Volumes/EFI/EFI | |
sudo cp -R /EFI /Volumes/EFI | |
sudo diskutil unmount /Volumes/EFI | |
sudo newfs_msdos -v EFI -F 32 /dev/rdisk2s1 | |
sudo mkdir /Volumes/EFI | |
sudo mount -t msdos /dev/disk2s1 /Volumes/EFI |
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
Type Start End # Pages Attributes | |
BS_Code 0000000000000000-0000000000007FFF 0000000000000008 000000000000000F | |
Available 0000000000008000-000000000003EFFF 0000000000000037 000000000000000F | |
BS_Data 000000000003F000-000000000003FFFF 0000000000000001 000000000000000F | |
BS_Code 0000000000040000-000000000009FFFF 0000000000000060 000000000000000F | |
Available 0000000000100000-000000000C985FFF 000000000000C886 000000000000000F | |
LoaderCode 000000000C986000-000000000CAF4FFF 000000000000016F 000000000000000F | |
BS_Data 000000000CAF5000-000000000FFFFFFF 000000000000350B 000000000000000F | |
BS_Code 0000000010000000-000000001000AFFF 000000000000000B 000000000000000F | |
BS_Data 000000001000B000-0000000022988FFF 000000000001297E 000000000000000F |