Skip to content

Instantly share code, notes, and snippets.

@impaler
impaler / mount_smbfs.sh
Created October 17, 2023 21:26 — forked from natritmeyer/mount_smbfs.sh
How to mount and unmount a SMB share on Mac OS X (using mount_smbfs)
#Mounting the share is a 2 stage process:
# 1. Create a directory that will be the mount point
# 2. Mount the share to that directory
#Create the mount point:
mkdir share_name
#Mount the share:
mount_smbfs //username:password@server.name/share_name share_name/
#!/bin/bash
set -eo pipefail
echo "Deleting existing hosting releases"
SITE=$1
echo "Site: $SITE"
HEADER_AUTH="Authorization: Bearer "$(gcloud auth application-default print-access-token)"";
@impaler
impaler / gist:228f5ff4c44a4b006a32701fdcb0a5c3
Last active August 22, 2018 03:39 — forked from ctrl-freak/gist:9abb5aea0d89d7bd9df6a3d0ac08b73c
Android ADB `adb shell input keyevent` Codes
// http://stackoverflow.com/questions/7789826/adb-shell-input-events
adb shell input keyevent 82
0 --> "KEYCODE_0"
1 --> "KEYCODE_SOFT_LEFT"
2 --> "KEYCODE_SOFT_RIGHT"
3 --> "KEYCODE_HOME"
4 --> "KEYCODE_BACK"
5 --> "KEYCODE_CALL"
@impaler
impaler / mongo-autostart-osx.md
Created August 1, 2018 05:17 — forked from subfuzion/mongo-autostart-osx.md
mongo auto start on OS X

Install with Homebrew

brew install mongodb

Set up launchctl to auto start mongod

$ ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents

/usr/local/opt/mongodb/ is a symlink to /usr/local/Cellar/mongodb/x.y.z (e.g., 2.4.9)

@impaler
impaler / docker_remote_api
Created September 20, 2015 09:50 — forked from simonsdave/docker_remote_api
enabling docker remote API on Ubuntu 14.04 on GCE
* spin up a VM on GCE and
install docker (based on [these](https://docs.docker.com/installation/ubuntulinux/) instructions)
```bash
gcloud compute instances create dave --machine-type n1-standard-1 --image ubuntu-14-04
gcloud compute ssh dave
wget -qO- https://get.docker.com/ | sh
```
* to verify install is working