Skip to content

Instantly share code, notes, and snippets.

View dannyvassallo's full-sized avatar

Dan Vassallo dannyvassallo

View GitHub Profile
dannyvassallo /
Last active March 23, 2021 18:10 — forked from jdhom/
Mistel Barocco MD600 Programming and Firmware

Mistel Barocco MD600 RGB Split Keyboard

keyboard firmware

What I remap

CapsLock is RCTRL    ... i do this on all keyboards
FN CapsLock is RCTRL ... was accidently toggling capslock with fn+capslock
LCTRL is FN ... arrow/pg/home on right half, FN+arrow I now prefer on ALL keyboards... so nice
dannyvassallo / cloudSettings
Last active January 10, 2019 16:25 — forked from StevePotter/cloudSettings
Visual Studio Code Settings Sync Gist
dannyvassallo /
Last active April 27, 2017 20:50
Get all postgres functions and triggers

List all functions

SELECT  proname, prosrc
FROM    pg_catalog.pg_namespace n
JOIN    pg_catalog.pg_proc p
ON      pronamespace = n.oid
WHERE   nspname = 'public';
Intern$ ls ~/.cocoapods/repos/master/Specs/
require "csv"
require "insta_scrape"
def appendRowToCsv(row)"instagram_posts.csv", "a+",) do |csv|
csv << row
# create headers
/* This work is licensed under Creative Commons GNU LGPL License.
Version: 0.9
Author: Stefan Goessner/2006
function xml2json(xml, tab) {
var X = {
toObj: function(xml) {
dannyvassallo /
Last active August 17, 2016 19:08
create a permanent alias

#Permanent alias

In terminal run the following (pick your poison, editors are separated by the 'or' operator):

nano ~/.bash_profile || subl ~/.bash_profile || atom ~/.bash_profile

Add the following line to your .bash_profile but change goto_sites and the path to your own:

dannyvassallo / mandolisschedule.js
Created June 30, 2016 16:51
check if availability is today
<script type="text/javascript">
var ESTdateTime = '',
calDate = '',
unavailableDays = [];
function convertToServerTimeZone(){
var offset = -5.0,
clientDate = new Date(),
utc = clientDate.getTime() + (clientDate.getTimezoneOffset() * 60000),
dannyvassallo /
Created June 24, 2016 20:47
remove wp version from your assets

#Remove WP Version from assets

Add this to your functions.php

If you can't update it, the My Custom Functions plugin by Arthur "Berserkr" Gareginyan will work even on a managed wordpress setup.

dannyvassallo /
Last active June 3, 2016 00:00
Because I keep reiterating this and it may help some students.

#Don't Add Your node_modules to git / github. ####Follow the instructions to not do this.

First and foremost you should be initializing NPM with npm init when you start a new node project. If you aren't doing this now, you need to start immediately.

Secondly, you should be installing your node packages for your project using npm install <package name> --save If you aren't doing this now, you need to start immediately.

Now -- Follow these steps to make git ignore your node_modules folder.