Skip to content

Instantly share code, notes, and snippets.

Avatar

Jake Sylvestre jakesyl

View GitHub Profile
View gist:bedeb91ed4301c6776f8dbe40661419d
lsof -nti:NumberOfPort | xargs kill -9
@jakesyl
jakesyl / rescuetime.md
Last active Jul 7, 2020
Rescuetime Post-commit hook setup
View rescuetime.md

Enabling global rescuetime commit hooks

  1. Enable git templates: git config --global init.templatedir '~/.git-templates'
  2. Create a directory for global hooks: mkdir -p ~/.git-templates/hooks
  3. Download your post commit hook from here
  4. Move the commit hook: mv /path/to/post-commit ~/.git-templates/hooks/.
  5. Make sure your system has permission to execute the file: chmod -R a+x ~/.git-templates/hooks
View broken.md

Wasabi: b768041f25b9e37b547f84029fb2536fc3b094ca8db59088fce44903db269ea6 Wasabi: 6f757373191bbf2a375d99d09150b4b098cd2c7586036deb1310467aaefe34b6 Wasabi: b994a9cbdc20e971207bde4f800b9ce99dba35478a2a997bc48e7f9f80bd2d02 Basic transaction: 2f17c08654e518f3ee46dd1438b58ef52b772e8cbc446b96b123d680a80bc3f7 Address reuse: 0f7bf562c8768454077f9b5c6fe0c4c55c9a34786ad7380e00c2d8d00ebf779d Block reward: 2157b554dcfda405233906e461ee593875ae4b1b97615872db6a25130ecc1dd6 Input merges + address reuse: b527350146e2a37aff219a63bbf9b8e10f9ba12ab32aa4a70d680742917a281f Aggregation: e979d30a933c8c3e4e512b3812a74f483a9073957e860236ff103b819a1eaf15

View keybase.md

Keybase proof

I hereby claim:

  • I am jakesyl on github.
  • I am jakesyl (https://keybase.io/jakesyl) on keybase.
  • I have a public key whose fingerprint is 47F5 21AA A8C0 4F8C 5BF0 E33A F715 0134 F53E 357C

To claim this, I am signing this object:

@jakesyl
jakesyl / vultr-coreos-bootstrap.sh
Created Oct 16, 2019 — forked from janeczku/vultr-coreos-bootstrap.sh
Cloud-config for CoreOS IPXE deployment on Vultr. Provisioning etcd, fleet, private network and docker compatible firewall. #tags: foo, bar
View vultr-coreos-bootstrap.sh
#!/bin/bash
# Cloud-config for CoreOS IPXE deployment on Vultr
##################################################
# This cloud-config bootstraps CoreOS on /dev/vda and provisions:
# - private ip-address on eth1
# - etcd on private network
# - fleet on private network
# - basic firewall (docker compatible)
# - SSHd security hardening
##################################################
View gist:1b3c5cf1c0ca4c1997841ab63e7cba85
Jakes-MacBook-Pro:DefinitelyTyped jakesylvestre$ git checkout patch-1
Branch 'patch-1' set up to track remote branch 'patch-1' from 'origin'.
Switched to a new branch 'patch-1'
Jakes-MacBook-Pro:DefinitelyTyped jakesylvestre$ git pull
Already up to date.
Jakes-MacBook-Pro:DefinitelyTyped jakesylvestre$ npm run test
> definitely-typed@0.0.3 test /private/tmp/DefinitelyTyped
> node node_modules/types-publisher/bin/tester/test.js --run-from-definitely-typed
View gist:74682713378a0c2c86d598997c7a7a7b
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
import {
createDropdown,
addToolbarToDropdown
} from '@ckeditor/ckeditor5-ui/src/dropdown/utils';
export default class MergeFields extends Plugin {
static get pluginName() {
return 'mergeFields';
}
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.
You can’t perform that action at this time.