This gist was moved to its own repo to allow contributions: https://github.com/danguita/osx-for-developers. Feel free to pull request!
This file contains hidden or 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 characters.
Learn more about bidirectional Unicode characters
| # this can be any application server, not just Unicorn/Rainbows! | |
| upstream redmine_unicorn { | |
| # fail_timeout=0 means we always retry an upstream even if it failed | |
| # to return a good HTTP response (in case the Unicorn master nukes a | |
| # single worker for timing out). | |
| # for UNIX domain socket setups: | |
| server unix:/home/service/shared/socket/redmine/unicorn.sock fail_timeout=0; | |
| # for TCP setups, point these to your backend servers |
This file contains hidden or 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 characters.
Learn more about bidirectional Unicode characters
| You need a passphrase to unlock the secret key for | |
| user: "keybase.io/danguita <danguita@keybase.io>" | |
| 4096-bit RSA key, ID B230171421E2D6FE, created 2014-10-08 | |
| Please publicly post the following Gist, and name it keybase.md: | |
| ### Keybase proof | |
| I hereby claim: |
This file contains hidden or 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 characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Lord Of The Rings | |
| * | |
| * $FreeBSD: src/usr.bin/calendar/calendars/calendar.lotr,v 1.2 2003/10/09 00:31:48 grog Exp $ | |
| */ | |
| #ifndef _calendar_lotr_ | |
| #define _calendar_lotr_ | |
| 01/05 Fellowship enters Moria |
As described on the Docker Machine SSH reference, the docker-machine CLI invokes the standard OpenSSH client so we can use the common SSH tunneling syntax here. The following command will forward port 3000 from the default machine to localhost on your host computer's loopback interface. Using 0.0.0.0 as bind_address will make it bind to all interfaces:
$ docker-machine ssh default -L 0.0.0.0:3000:localhost:3000So, the container running at machine's port 3000 can be reached through localhost:3000 or any of your interfaces' IP (i.e. 192.168.1.10:3000). That'd be useful to access your containerized services from other devices in your LAN.
Guides:
- https://stephentanner.com/restoring-grub-for-an-encrypted-lvm.html
- https://askubuntu.com/questions/719409/how-to-reinstall-grub-from-a-liveusb-if-the-partition-is-encrypted-and-there-i
- https://help.ubuntu.com/community/Grub2/Installing
cryptsetup luksOpen /dev/sdb3 home_sdb3
vgchange -ay
lvscan
This file contains hidden or 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 characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # | |
| # Script to kickstart my main production machine (Arch Linux). | |
| # | |
| # Author: David Anguita <david@davidanguita.name> | |
| # | |
| # Run me with: | |
| # | |
| # $ ./kickstart-arch.sh |
This file contains hidden or 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 characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # | |
| # Script to install my main production machine (Arch Linux). | |
| # | |
| # Author: David Anguita <david@davidanguita.name> | |
| # | |
| # Run me with: | |
| # | |
| # # ./install-arch.sh |
OlderNewer
