Skip to content

Instantly share code, notes, and snippets.

View sarnobat's full-sized avatar


View GitHub Profile

Mac OS new profile setup

  • Whenver too much bloat accumulates in a profile, or you get a new machine.
  • Get from ~/computers.git/2022/mac/bin/2022/
  • These are ranked in a hybrid order of priority (i.e. annoyingness) x difficulty

SSH enable

Remote Desktop enable

Sudo Passwordless

sarnobat /
Last active May 17, 2024 23:01
Obscure Shell Syntax

Obscure Shell Syntax

  • Like irregular verbs in a foreign language, the most common primitives are optimized for brevity rather than consistency, so often are illogical and idiomatic (you have to "just memorize" them to get the benefit).


  • $'' - verbatim string, no interpretting (useful if you have filenames with non ASCII characters)

    • $"" - verbatim string, no interpretting (except locale)
sarnobat / crontab.conventions
Created May 9, 2023 23:37
Crontab coding standards, file layout conventions etc
(master version here: )
### 0) Header comment
General useful comments that will reduce the chance of jobs not working as expected.
## Characters to escape: %, $
// ==UserScript==
// @name testName
// @namespace anonDeveloper
// @description This script will automagically blah blah blah
// @include *
// @match https://*/jira/browse
// ==/UserScript==
// See private file for otheradditions
<script src="" type="text/javascript"></script>
<ul data-toc data-toc-headings="h2,h3,h4,h5"></ul>
public class Graphml2FileSystemStdin {
public static void main(String[] args) {
Multimap<String, String> parentToChildren = HashMultimap.create();
sarnobat / recruiters.txt
Last active July 14, 2023 21:13
Domains you can filter out to combat spam and unsolicited approaches
# Separate lines because GMail has a length limit
22ndstaffing OR abcscorp OR accurogroup OR acsicorp OR adroitresources OR adventglobal OR aesinc OR ageatiainc OR agreeya OR akraya OR alchemysolutions OR aloisstaffing OR amiseq OR ampcus OR apninc OR apolisrises OR applabsystems OR aptask OR arnamy OR askstaffing OR astiusa OR atsolutions OR avaconsulting OR axelon OR axiustek OR bayonesolutions OR bereangroup OR bullseyehires OR calibrocorp OR catstaffing-us OR chenoainc OR clearbridgetech OR compuvis OR consultingknights OR contech-it OR crossfireconsulting OR cynetsystems OR datapipertech OR deegit OR dewsoftware OR digitaldhara OR diverselynx OR eateam OR enterprisesolutioninc OR epchelp OR epro-consulting OR erostechnologies OR e-solutionsinc OR evergreentechnologies OR experis OR first-tek OR flextoninc OR fusionitinc OR ghktech OR gisbiztech OR gitallc OR greatlogicsinc OR gttit OR hanstaffing OR healthcarepartners OR hireitpeople OR honorvettech OR horizontalintegration OR ibainfotech OR iconsultus
sarnobat / url_param.js
Last active September 30, 2017 01:27
Get and Set URL parameter in javascript
<script type="text/javascript" src=""></script>
// Get the URL parameter
var argName = $.url().param('argName');
// Set the URL parameter
if (argName == null) {
history.pushState(null, null, '/?argName=defaultValue');