Skip to content

Instantly share code, notes, and snippets.

View zamicol's full-sized avatar
🇺🇸

Zach Collier zamicol

🇺🇸
View GitHub Profile
Preamble? Yea, so the internet is the largest memetic organism in existence. Censorship of it warps the content into refined and simplistic controlled information.
The internet is a collection of millions of voices, some just being able to be heard after years of stifling. Worldwide freedom of speech is possible now...
Freedom of speech is a right easily ignored until it is threatened. Anyone can say sappy banal inspiration crap but you should do something about it.
http://www.reddit.com/r/fia is where the fight really at, go over and join them if you want this to really happen.
@zamicol
zamicol / onename.txt
Created March 29, 2016 17:03
One name verification
Verifying that +zachcollier is my blockchain ID. https://onename.com/zachcollier
@zamicol
zamicol / Zamicol onename
Created March 29, 2016 17:08
Onename verification for Zamicol
Verifying that +zamicol is my blockchain ID. https://onename.com/zamicol
@zamicol
zamicol / tmux-cheatsheet.markdown
Last active June 5, 2016 03:03 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

attach:

tmux a  (#)  (or at, or attach)
sudo tcpdump -i lo0 -s 0 -A
//lo0 is interface (ifconfig to see what your "localhost" interface is)
//-A to print packets in ASCII
var originalXhr; //Before jquery does it's processing.
$.ajax({
type: "POST",
url: link,
xhr: function () {
originalXhr = jQuery.ajaxSettings.xhr();
return originalXhr;
},
data: value,
@zamicol
zamicol / select2_ajax.js
Last active March 2, 2017 21:37
Simple Ajax with New Option for Select2 4
function initSelect2() {
$('.select2picker').select2({
ajax: {
url: "", //put the RUL here.
dataType: 'json',
delay: 50,
data: function(params) { // Build the search URL
return {
filter: params.term // Search term, in this case "filter".
Int is basically a int32 or int64 based on archetecture.
https://play.golang.org/p/r4JecLQ-Oo
@zamicol
zamicol / select2_ajax.js
Last active March 8, 2017 17:49
Select2 Ajax with new option and font awesome spinner.
// "use strict";
// Fast style
// .fast-spin {
// -webkit-animation: fa-spin .2s infinite linear;
// animation: fa-spin .2s infinite linear;
// }
function initSelect2() {
var $search = $('<span><i class="fa fa-circle-o-notch fast-spin"></i> Updating...</span>');
@zamicol
zamicol / Installation of Laravel on Apache on Debian and Ubuntu
Created December 7, 2014 20:32
Installation of Laravel on Apache on Debian and Ubuntu
After installing, make sure the permissions are proper
sudo chmod -R g+w storage/
sudo chown -R :www-data storage/
Then modify the .htaccess file under yourProjectName/public/.htaccess
RewriteBase /yourProjectName/
Then add an alias to the Apache conf
Alias /yourProjectName /var/www/whatever/yourProjectName/public