Skip to content

Instantly share code, notes, and snippets.

View dsculptor's full-sized avatar

Mayank Raj dsculptor

View GitHub Profile
# File: docker-compose.yml
# A minimal docker-compose stack to have adguardhome running on a machine with docker installed.
version: "3.9"
volumes:
adguard:
services:
adguard:
restart: always

Quick Reference to manage npm, nodejs

1. Install n & nodejs-v17.latest

Best Method: use n. Its lovely & bootstraps itself as an npm pkg without npm.

function ubuntu-install-nodejs-17() {
 echo "Installing nodejs via n in /usr/local/bin with /usr/local/n as cache folder"

Keybase proof

I hereby claim:

  • I am dsculptor on github.
  • I am dsculptor (https://keybase.io/dsculptor) on keybase.
  • I have a public key ASAg8IwSEPLXbju8eFWM2yqaD4TPLxFrAPWJfu3RomWsNAo

To claim this, I am signing this object:

@dsculptor
dsculptor / transmit-iterm-patch.applescript
Last active September 1, 2021 08:33 — forked from johnfmorton/TransmitOpenTerminal.txt
Use Transmit 5 to open in iTerm (instead of Terminal.app). Ref: https://library.panic.com/transmit5/open-in-terminal/
-- Run the following cmd to make Transmit marry iterm2 as its Terminal partner:
-- defaults write com.panic.Transmit OpenTerminalScriptPath ~/transmit-iterm-patch.applescript
on openTerminal(location, remoteHost, serverPort)
-- Prepare sshCmd and cmd:
set sshCmd to ""
set cmd to "cd \"" & location & "\""
if ((count of remoteHost) is greater than 0) then
set sshCmd to "ssh " & remoteHost