Skip to content

Instantly share code, notes, and snippets.

Jake Sylvestre jakesyl

Block or report user

Report or block jakesyl

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View configParse.py
import ConfigParser
import os
def ConfigSectionMap(section, Config):
dict1 = {}
options = Config.options(section)
for option in options:
try:
dict1[option] = Config.get(section, option)
View gist:1dce0fea587fe979a0ce
git filter-branch --tree-filter "find . -name '*.php' -exec sed -i -e \
's/originalpassword/newpassword/g' {} \;"
View threadTest.py
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))
View jquery.themepunch.revolution.min.js
/**************************************************************************
* 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.
View jquery.themepunch.plugins.min.js
/********************************************
- 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
*
@jakesyl
jakesyl / cloud9.js
Created Dec 21, 2015
Cloud 9 Welcome Messages
View cloud9.js
var messages = [
"It's better up here.",
"Happy coding!",
"Everything as you left it.",
"Give some love to your colleague on the left!",
"Thank you Ada Lovelace!",
"Feel the power of a full IDE &mdash; in the cloud.",
"Code for the cloud, in the cloud",
"Out with the old, in with the new",
"POST /desktop/era",
@jakesyl
jakesyl / notifications.blade.php
Created Dec 19, 2015 — forked from agarwa13/notifications.blade.php
Laravel 5.1 Blade File that allows us to conveniently notify our users along with any response. Note we are using notifyjs to prettify our notifications.
View notifications.blade.php
<script src="{{asset('/vendor/notifyjs/notify.min.js')}}"></script>
<script>
$(document).ajaxComplete(function(event, xhr, settings){
$( ".log" ).text( "Triggered ajaxComplete handler." );
console.log(xhr.responseText);
response = $.parseJSON(xhr.responseText);
// Check for Notifications and Display Them
if(response.hasOwnProperty('notifications')){
for(var i=0; i< response.notifications.length; i++){
View apache2.conf
root@prod:/etc/apache2# cat apache2.conf
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.4/ for detailed information about
# the directives and /usr/share/doc/apache2/README.Debian about Debian specific
# hints.
#
#
# Summary of how the Apache 2 configuration works in Debian:
# The Apache 2 web server configuration in Debian is quite different to
View php.ini
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
You can’t perform that action at this time.