Skip to content

Instantly share code, notes, and snippets.

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 — 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:
@jakesyl
jakesyl / git-compressing-and-deltas.md
Created Sep 11, 2015 — forked from matthewmccullough/git-compressing-and-deltas.md
Git, Compression, and Deltas - An explanation
View git-compressing-and-deltas.md

Git Compression of Blobs and Packfiles.

Many users of Git are curious about the lack of delta compression at the object (blob) level when commits are first written. This efficiency is saved until the pack file is written. Loose objects are written in compressed, but non-delta format at the time of each commit.

A simple run though of a commit sequence with only the smallest change to the image (in uncompressed TIFF format to amplify the observable behavior) aids the understanding of this deferred and different approach efficiency.

The command sequence:

Create the repo:

@jakesyl
jakesyl / twitter.html
Created Sep 3, 2015
Mass unfollow on twitter!
View twitter.html
Mass unfollow on twitter:
$('.button-text.unfollow-text').trigger('click');
View gist:b9073865c8b82dcdaa9d
{'peers': 'Xp\xef\xa6\xc8\xd5\x05\x01U\xec\xc8\xd5\xc7:Wx\xeeWI\x80\x7f9\xc8\xd5R\xe4\xf1 \xc8\xd5\xbd\x13\x93\x19\x1a\xe1\xb9,km\xc8\xd5\xa2\xde\x1b\xc7\xc8\xd52\xbb\xe1\xe6\x1a\xe1\xb2\xfc\xd0\xe9\xa9\xcc\xb9\x15\xd9\x06\xc9\x07\x18\x83t\x10\xd3\x00\xc0\xf1\xc0\xe2\x1a\xed\x05\xbd\x8c\xf6\x1a\xea\x05\x87\xb8L\xc8\xd5yb\xe1\x9a\xc8\xd5h\xe9Lq\xc8\xd52\xa9d7\xc8\xd5CD\x94\x86l\xed\x94\xfb\xd0C\xcf\x08\xb2\xa4\xa6\x9c\x13\x88E\xa5\xe0\x04\xc8\xd5\xc3\x9ay\x8a\xc8\xd5m\xac\nM}+\xc6\x07>[\xeeNI\x81S"\xc8\xd5\xc3F&\xbc\xc0*\xd43\x96\xb8\xc8\xd5K\x8c\xd8W\xe5\xdaP\xff\x0b\xc6\x1b\x19\x05\xba\xf7\xcc\xe4\x99.\x92\x82\xd9\xc8\xd5\\\xf8\x80\r\xc8\xd5\xb9\x15\xd8\xbf\xdf\xf4O\x8d\xa0M\xf3^\xcf\xf4I6\xeeL\xc3\x9aCk]ER\xf2\xea\xbd#\'Ld_\x98\x1a\xe1\xb9\x1f\xac\xe6\x1bQ>\xd2\xcc\x81]F\xbc\xa5\x19g\xc8\xd5PG\x81t\xe3\xc2%\xbb\x07F\x1bW\xcf\xf4P\xe9\xee\x9f\xaeXbn\xc8\xd5H\x81\x93\x1c\xda+O\x8d\xabG\x81 O\x8d\xad\xa3G\xecO\x8d\xabDrq', 'interval': 1800, 'complete': 3323, 'incomplete': 143}
View gist:80379468538732b934d4
if "d14:failure" or "your client is outdated, please upgrade" in r.text:# TODO add errors
View gist:7b4e75a53aec4423f4fd
218ce7e65966efad824911d779f20d1e