Skip to content

Instantly share code, notes, and snippets.

View paulomcnally's full-sized avatar
:octocat:
JS

Paulo McNally paulomcnally

:octocat:
JS
View GitHub Profile
@paulomcnally
paulomcnally / lily58-keyboard.org
Created August 11, 2020 23:33 — forked from braun-steven/lily58-keyboard.org
Lily58 Pro Parts List
@dannote
dannote / final-cut-pro-trial-reset.swift
Last active May 8, 2024 03:08
Final Cut Pro X trial reset
#!/usr/bin/swift
import Foundation
let path = URL(fileURLWithPath: NSString(string: "~/Library/Application Support/.ffuserdata").expandingTildeInPath)
let data = try! NSData(contentsOf: path) as Data
let dictionary = try! NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(data) as! NSDictionary
let mutableDictionary = dictionary.mutableCopy() as! NSMutableDictionary
for (key, value) in mutableDictionary {
@hendrikswan
hendrikswan / .eslintrc
Last active September 29, 2020 09:18
Packages and build config for Build Cross Platform React Native Apps with Exponent and Redux
{
"extends": "airbnb/base",
"plugins": [
"react"
],
"env": {
"node": true,
"jasmine": true,
},
"rules": {
@amosrivera
amosrivera / cd-alias.sh
Last active August 29, 2015 14:18
Cd && ls every time you cd into a directory.
# source: http://unix.stackexchange.com/a/20413
# prevent loading the alias if it's not an interactive shell
[ -z "$PS1" ] && return
function cd {
builtin cd "$@" && ls -F
}
➜ v0.12 git:(v0.12.0-release) ✗ diff -urN out/doc/api /tmp/api
diff -urN out/doc/api/_toc.html /tmp/api/_toc.html
--- out/doc/api/_toc.html 2015-02-24 14:18:33.000000000 -0800
+++ /tmp/api/_toc.html 2015-02-24 14:13:09.000000000 -0800
@@ -85,6 +85,7 @@
<li><a href="string_decoder.html">String Decoder</a></li>
<li><a href="timers.html">Timers</a></li>
<li><a href="tls.html">TLS/SSL</a></li>
+<li><a href="tracing.html">Tracing</a></li>
<li><a href="tty.html">TTY</a></li>
@pulkitsinghal
pulkitsinghal / common_models_MyModel.js
Last active January 5, 2016 13:57
Fetch user for remote methods in loopback v2.8.5
var loopback = require('loopback');
module.exports = function(MyModel) {
//remote method
MyModel.importProducts = function(storeConfigId, storeId, cb) {
//cb(null, sound + ' ' + sound + ' ' + sound);
var ctx = loopback.getCurrentContext();
console.log(loopback.getCurrentContext());
@edasque
edasque / gist:bd8aa4087c843e31e38d
Created August 30, 2014 22:31
Phonegap / Cordova Logcat - filtering
adb logcat CordovaActivity:V CordovaWebView:V CordovaWebViewClient:V IceCreamCordovaWebViewClient:V CordovaLog:V *:S
@daniellevass
daniellevass / android_material_design_colours.xml
Last active March 26, 2024 15:48
Android Material Design Colours
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- google's material design colours from
http://www.google.com/design/spec/style/color.html#color-ui-color-palette -->
<!--reds-->
<color name="md_red_50">#FFEBEE</color>
<color name="md_red_100">#FFCDD2</color>
<color name="md_red_200">#EF9A9A</color>
@JamesMGreene
JamesMGreene / gitflow-breakdown.md
Last active May 3, 2024 12:32
`git flow` vs. `git`: A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@23maverick23
23maverick23 / font_awesome.rb
Last active January 30, 2022 11:38
Jekyll: Font Awesome icons Liquid tag
##
# The MIT License (MIT)
#
# Copyright (c) 2014 Ryan Morrissey
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is