Quantcast
Channel: Recent Gists from danmactough
Browsing latest articles
Browse All 30 View Live

ThrustVPS hacked VPS postmortem. These are the unique, failed login attempts...

ip-addresses This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode...

View Article



ec2-desktop.md

ec2-desktop.mdOn your EC2 server:sudo apt-get update sudo apt-get install ubuntu-desktopReboot your serverOn your EC2 server:sudo apt-get install tightvncserver vncserver :1You will be prompted for a...

View Article

some git aliases

.bash_aliases This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode...

View Article

keybase.md

keybase.mdKeybase proofI hereby claim:I am danmactough on github.I am danmactough (https://keybase.io/danmactough) on keybase.I have a public key whose fingerprint is 30E1 D7AF E3AE E6FF BDD3 FAC5 EC34...

View Article

dnsmasq.md

dnsmasq.mdInstall Dnsmasq on OSXThis will allow any url having the non-existant TLD .dev to resolve to your locale machine.Install dnsmasq and run as a service$ brew update $ brew install dnsmasq #...

View Article


vm.js

vm.js This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode...

View Article

Supposedly, this will flush your dns cache on Mac OS X Mountain Lion and greater

flushdns This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode...

View Article

Image may be NSFW.
Clik here to view.

multistar-gmai.md

multistar-gmai.mdHow to enable multiple stars in GmailWhat?Gmail has a setting to enable multiple types of stars. Not "give this email 2 stars and this other email 1 star," but "give this email a gold...

View Article


ssh-purge-host

ssh-purge-host This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode...

View Article


nodeschool-prep.md

nodeschool-prep.mdNodeSchool - NationJS 2014Welcome and thank you for signing up for NodeSchool at NationJS 2014. To make this NodeSchool the best NodeSchool, there are a few things that you can do...

View Article

else.js

else.js This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode...

View Article

In any koa app, find the app root directory from any location.

resolve.js This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode...

View Article

What's using `process.nextTick`?

output This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode...

View Article


http://blog.mact.me/2015/05/15/so-you-want-to-move-your-homebrew-folder

movebrew This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode...

View Article

Not using this really clever bit

canvas-to-image.js This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden...

View Article


Setting up a gpu (nvidia) ec2 instance with ubuntu and electron for headless...

second-boot.sh This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode...

View Article

I needed to add a read-only collaborator to many repositories, and doing it...

add-collaborator.sh This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden...

View Article


Dining Philosophers

Cargo.toml This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode...

View Article

20nginx-https-redirect.config

20nginx-https-redirect.config This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals...

View Article

memory.js

memory.js This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode...

View Article

node-dc-thanks.md

node-dc-thanks.mdTweet helpGreat @NodeDC meetup @socialtables ty @NodeSource @Hired_HQ for sponsoringty @socialtables @NodeSource @Hired_HQ for sponsoring @NodeDCLinksUse these links! Sign up for Hired...

View Article


write.js

write.js This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode...

View Article


Bootstrap your DO infrastructure unsing Ansible without dynamic inventory...

do_boot2.sh This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode...

View Article

cognito-notes.md

cognito-notes.mdNotes on using Cognito with Serverlessevent.requestContext.identity.cognitoIdentityId should be the user idCognito User Pools are for handling user registration, authentication, and...

View Article

async_handle_request.js

async_handle_request.js This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden...

View Article


Image may be NSFW.
Clik here to view.

OS X Screencast to animated GIF

GIF-Screencast-OSX.mdOS X Screencast to animated GIFThis gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.InstructionsTo capture the video...

View Article

Move your entire music library from one directory to another

move-music.sh This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode...

View Article

fetch-callbackified

fetch-callbackified This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden...

View Article

tsconfig.json

tsconfig.json This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode...

View Article



Bash Basics

bashisms.mdManipulating Strings# safetyset -euo pipefail # root directory ROOT_DIR="$(cd $(dirname $0)/.. ; pwd)"# directory of this script CURRENT_DIR="$(cd $(dirname $0); pwd)"# null checks [...

View Article
Browsing latest articles
Browse All 30 View Live




Latest Images