Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jakesyl on github.
  • I am jakesyl (https://keybase.io/jakesyl) on keybase.
  • I have a public key ASBwTfamkouqBepd-VvL6aLrwd9F_HO-AkS6wOxXh-P15Qo

To claim this, I am signing this object:

lsof -nti:NumberOfPort | xargs kill -9
<!DOCTYPE html>
<html lang="en">
<head>
<title>Location</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
@jakesylvestre
jakesylvestre / configParse.py
Created April 12, 2016 16:49
Config Parsing
import ConfigParser
import os
def ConfigSectionMap(section, Config):
dict1 = {}
options = Config.options(section)
for option in options:
try:
dict1[option] = Config.get(section, option)
git filter-branch --tree-filter "find . -name '*.php' -exec sed -i -e \
's/originalpassword/newpassword/g' {} \;"
import threading
import time
class theThread(threading.Thread):
def __init__(self, threadId): # From my understanding this is the only thing that runs when I call thread1 = myThread()
threading.Thread.__init__(self)
self.threadId = threadId
def run(self):
print "running task"
doSomething(str(self.threadId))
/**************************************************************************
* jquery.themepunch.revolution.js - jQuery Plugin for Revolution Slider
* @version: 4.5.0 (23.04.2013)
* @requires jQuery v1.7 or later (tested on 1.9)
* @author ThemePunch
**************************************************************************/
function revslider_showDoubleJqueryError(e){var t="Revolution Slider Error: You have some jquery.js library include that comes after the revolution files js include.";t+="<br> This includes make eliminates the revolution slider libraries, and make it not work.";t+="<br><br> To fix it you can:<br>&nbsp;&nbsp;&nbsp; 1. In the Slider Settings -> Troubleshooting set option: <strong><b>Put JS Includes To Body</b></strong> option to true.";t+="<br>&nbsp;&nbsp;&nbsp; 2. Find the double jquery.js include and remove it.";t="<span style='font-size:16px;color:#BC0C06;'>"+t+"</span>";jQuery(e).show().html(t)}(function(e,t){function n(e){var t=[],n;var r=window.location.href.slice(window.location.
/********************************************
- THEMEPUNCH TOOLS Ver. 1.0 -
Last Update of Tools 22.01.2013
*********************************************/
/*! Hammer.JS - v1.0.5 - 2013-04-07
* http://eightmedia.github.com/hammer.js
*