Skip to content

Instantly share code, notes, and snippets.

@chadmaughan
chadmaughan / darcula.js
Created March 20, 2021 17:08
Jetbrains Darcula Blink Theme
t.prefs_.set('color-palette-overrides',["#363736", "#ee523e", "#b3ca63", "#ffcf7f", "#20a8ad", "#b393ba", "#57666a", "#b7c3d0", "#626566", "#ff5943", "#97c66f", "#ffcf7f", "#79b3c8", "#ae89fe", "#9aabb0", "#f9f9f4"]);
t.prefs_.set('foreground-color', "#b7c3d0");
t.prefs_.set('background-color', "#363736");
t.prefs_.set('cursor-color', '#d68a40');
@chadmaughan
chadmaughan / lds-ward-member-callings-as-csv-readme.txt
Last active January 31, 2017 05:04
Bookmarklet for downloading member callings in tabular format (CSV) from the LDS.org "Leader and Clerk Resources" section
Here's some instructions on how to create a Bookmarklet:
1) Copy the contents of the "lds-ward-member-callings-as-csv.min.js" file (make sure and get it all,
clicking the "Raw" button might help you copy it more easily).
2) In Chrome (other browsers should work), open the bookmark manager from the Bookmarks menu
(or ALT+COMMAND+B keyboard shortcut on a mac)
3) Right click in the "Organize" panel and select "Add Page"
4) Give the bookmark a "Name", and in the "URL" field, paste the contents copied from step 1
5) After logging in to LDS.org (while on any page) click on your bookmark (from the Bookmarks menu)
and your file will download!
@chadmaughan
chadmaughan / cron-robotic-inactivity-alert.sh
Last active August 17, 2016 23:02
OSX Cron job to alert employee of inactivity (for quick access http://bit.ly/e-cron)
*/30 * * * * say -v trinoids "Employee inactivity alert, notifying supervisor"
@chadmaughan
chadmaughan / cron-whisper-rick-roll.sh
Last active August 17, 2016 23:02
OSX Cron job to whisper Rick Astley lyrics (for quick access http://bit.ly/r-cron)
*/5 * * * * say -v whisper "Never gonna give you up, never gonna let you down. Never gonna run around and desert you. Never gonna make you cry, never gonna say goodbye. Never gonna tell a lie and hurt you"
@chadmaughan
chadmaughan / SSLPoke.java
Last active August 29, 2015 14:11
Super awesome class for verifying validity of included root CAs in the JDK (via Atlassian)
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
import java.io.*;
/**
* Establish a SSL connection to a host and port, writes a byte and
* prints the response. See
* http://confluence.atlassian.com/display/JIRA/Connecting+to+SSL+services
*/
public class SSLPoke {
@chadmaughan
chadmaughan / pre-commit.sh
Last active November 25, 2022 00:38
A git pre commit hook that runs the test task with the gradle wrapper
#!/bin/sh
# this hook is in SCM so that it can be shared
# to install it, create a symbolic link in the projects .git/hooks folder
#
# i.e. - from the .git/hooks directory, run
# $ ln -s ../../git-hooks/pre-commit.sh pre-commit
#
# to skip the tests, run with the --no-verify argument
# i.e. - $ 'git commit --no-verify'
@chadmaughan
chadmaughan / gitweb-text-code-download.js
Last active December 17, 2015 21:38
Reads a list of repositories from a gitweb TEXT page (gitweb/?a=project_index) and performs a 'git clone' or a 'git pull' on each repository
/*
* Reads a list of repositories from a gitweb TEXT page (gitweb/?a=project_index)
* and performs a 'git clone' or a 'git pull' on each repository
*
* Author: Chad Maughan
* Date: 5/24/13
*/
var http = require('http'),
fs = require('fs'),
path = require('path'),
@chadmaughan
chadmaughan / gitweb-html-code-download.js
Created May 29, 2013 17:31
Reads a list of repositories from a gitweb HTML page and performs a 'git clone' or a 'git pull' on each repository
/*
* Reads a list of repositories from a gitweb HTML page and performs a 'git clone' or a 'git pull' on each repository
* Useful when wanting to do a bulk download of code
*
* Author: Chad Maughan
* Date: 5/24/13
*/
var http = require('http'),
htmlparser = require('htmlparser2'),
fs = require('fs'),