Skip to content

Instantly share code, notes, and snippets.

View desilinguist's full-sized avatar

Nitin Madnani desilinguist

View GitHub Profile
huytd /
Last active May 16, 2024 20:39
Wordle in less than 50 lines of Bash


How to use:


Or try the unlimit mode:

romanhaa /
Last active June 14, 2024 12:43
macOS settings
# reset with: defaults delete -g <FEATURE>
# dock
# position
defaults write "orientation" -string "right"
# icon size
defaults write "tilesize" -int "36"
sdagley / RipOff-McAfee
Last active April 1, 2021 17:09
Based on V2 by adam_scheblein@mcafee.comUpdated launchctl calls to use bootout instead of unloadRemoves Privileged HelperTool added with ENS 10.7.1Terminates McAfee Agent Status Monitor when unloading launch items
## version 2.0
## Author: Adam Scheblein, McAfee IT
## E-Mail:
## version 2.1 mods by Steve Dagley <@sdagley Jamf Nation/Twitter/MacAdmins Slack>
## Updated launchctl calls to use bootout instead of unload
steven2358 /
Last active June 23, 2024 18:17
FFmpeg cheat sheet
kylemcdonald / nginx.conf
Created June 4, 2017 21:19
nginx config for port forwarding to a Jupyter instance on localhost.
user www-data;
worker_processes auto;
pid /run/;
## based on
events {
worker_connections 1024;
gruber / Battery Test — Safari.scpt
Last active January 18, 2021 17:35
A simple test to load a series of web pages in Safari repeatedly until the battery runs out.
on run
set imessage_id to "" -- leave blank to skip sending periodic iMessage progress updates, put your iMessage ID here to get updates as the script runs
set delay_seconds to 5 -- Don't set to 0, it runs too fast. 0.75 is a good setting for "go fast".
set computer_name to do shell script "scutil --get ComputerName"
set os_version to do shell script "sw_vers -productVersion"
set os_build to do shell script "sw_vers -buildVersion"
set _uptime to do shell script "uptime"
set url_list to {"", "", "", "", "", "
willfurnass /
Last active April 19, 2023 15:00
(Son of) Grid Engine tips and tricks

Random Grid Engine tips and tricks

The following work with Son of Grid Engine (SGE) 8.1.9 as configured on the University of Sheffield's ShARC and Iceberg clusters.

Jobs with dependancies

You can use the -hold_jid <<job-name or job-name>> option to make jobs run only when other jobs have finished, rather than having jobs start and sit waiting for other tasks to complete.

AbeEstrada / gist:83bf4e359f02be2ea41fceccd1d82c38
Created December 2, 2016 03:57
MacBook Pro 2016 15" Touch Bar Kernel Panic
Anonymous UUID: 704F6787-1C66-4D63-3838-CE1E576A94BF
Thu Dec 1 20:33:33 2016
*** MCA Error Report ***
CPU Machine Check Architecture Error Dump (CPU: Intel(R) Core(TM) i7-6920HQ CPU @ 2.90GHz, CPUID: 0x506E3)
CATERR detected! No MCA data found.
*** Device Tree ***
kaishin-r / sublime-text-3-cloud-drive-sync
Created February 19, 2016 09:48
Sync Sublime Text 3 Settings via iCloud Drive
# Create a directory named "Sublime Text 3 Sync" under iCloud Drive
mkdir ~/Library/Mobile\ Documents/com~apple~CloudDocs/SubLime\ Text\ 3\ Sync
# Enter Sublime Text 3's directory
cd ~/Library/Application\ Support/Sublime\ Text\ 3/
# Move "Installed Packages" directory to iCloud Drive and make a link
mv Installed\ Packages/ ~/Library/Mobile\ Documents/com~apple~CloudDocs/SubLime\ Text\ 3\ Sync/
ln -s ~/Library/Mobile\ Documents/com~apple~CloudDocs/SubLime\ Text\ 3\ Sync/Installed\ Packages
codeinthehole /
Created February 2, 2016 21:21
Terraform config for an EC2 instance with a replaceable EBS volume
DEVICE=/dev/$(lsblk -n | awk '$NF != "/" {print $1}')
FS_TYPE=$(file -s $DEVICE | awk '{print $2}')
# If no FS, then this output contains "data"
if [ "$FS_TYPE" = "data" ]
echo "Creating file system on $DEVICE"