https://smallstep.com/blog/ssh-agent-explained/ https://gist.github.com/ryuheechul/494f4e6f08eaca34ef00ab8b238eca2a#ssh-server
To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
- Homebrew
- Mountain Lion -> High Sierra
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 characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CERT_ID='gdb-cert' # the name of the certificate used for signing | |
if ! security find-certificate -c "$CERT_ID" &>/dev/null; then | |
echo >&2 "> ❌ certificate($CERT_ID) not found" | |
echo "Here is a brief note on how to create one:" | |
echo | |
echo "1. Open Keychain Access" | |
echo "2. Open the menu item: Keychain Access -> Certificate Assistant -> Create a Certificate..." |
Here are the steps to installing and setting up GDB on Mac OS Sierra/High Sierra.
Run brew install gdb
.
On starting gdb, you will get the following error:
Unable to find Mach task port for process-id 2133: (os/kern) failure (0x5).
(please check gdb is codesigned - see taskgated(8))
To fix this error, follow the following steps:
I heard you like headless VMs on your Mac so I wrote this script for your launchd
s.
- Tested on Mac OS X 10.6.4 with VMware Fusion 2.0.5 and 3.1.1.
- A interactive user automatically logs into the system at startup. I had some issues trying to get this running without an interactive user logged in. I automatically log in for Airfoil Speakers anyway.
- Your virtual machines live in
/Virtual Machines
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 characters.
Learn more about bidirectional Unicode characters
# https://wiki.archlinux.org/index.php/Tmux#Start_tmux_on_every_shell_login | |
# https://stackoverflow.com/a/49134974 | |
# https://gist.github.com/theel0ja/3d3c1de607702b87292687d27f99141b | |
# If not running interactively, do not do anything | |
[[ $- != *i* ]] && return | |
# You can replace 0 with the session name you prefer such as "onLogin" (without parenthesis) | |
[[ -z "$TMUX" ]] && exec tmux new -A -s 0 |
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 characters.
Learn more about bidirectional Unicode characters
# Makefile | |
CC=gcc | |
CPPFLAGS=-MMD -D_XOPEN_SOURCE=500 `pkg-config --cflags sdl2 gtk+-3.0` | |
ERROR_CFLAiR=-Wall -Wextra -std=c99 -g | |
LDFLAGS= | |
LDLIBS=`pkg-config --libs sdl2 gtk+-3.0` -lSDL2_image -lm -export-dynamic -lm | |
SRC= line.c | |
DEP= ${SRC:.c=.d} | |
PRG= ${SRC:.c=} |
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 characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# # | |
# ~/.zshrc # | |
# # | |
# Auhtor: Ouwéis Moolna # | |
# # | |
################################################################################ | |
#==============================================================================# |
NewerOlder