Skip to content

Instantly share code, notes, and snippets.

View Wes974's full-sized avatar
🏫
Learning

Ouwéis Wes974

🏫
Learning
  • Reunion Island
View GitHub Profile
@Wes974
Wes974 / dnsmasq OS X.md
Created November 21, 2021 00:56 — forked from ogrrd/dnsmasq OS X.md
Setup dnsmasq on OS X

Never touch your local /etc/hosts file in OS X again

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.

Requirements

Install

@Wes974
Wes974 / codesign-gdb.sh
Created October 5, 2020 14:49
Signing gdb on macOS with codesign
#!/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..."
@Wes974
Wes974 / setupdb.md
Created April 15, 2020 23:37 — forked from danisfermi/setupdb.md
Setup gdb on Mac OS Sierra/High Sierra

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:

@Wes974
Wes974 / README.markdown
Created March 10, 2020 22:01 — forked from jasoncodes/README.markdown
Run VMware Fusion headless at Mac OS system startup

Run VMware Fusion headless at Mac OS system startup.

I heard you like headless VMs on your Mac so I wrote this script for your launchds.

Assumptions

  • 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
@Wes974
Wes974 / tmux_on_login.sh
Created March 8, 2020 18:47 — forked from theel0ja/tmux_on_login.sh
Tmux on shell login
# 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
# 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=}
@Wes974
Wes974 / .zshrc
Last active October 24, 2019 18:42
my configurations files
################################################################################
# #
# ~/.zshrc #
# #
# Auhtor: Ouwéis Moolna #
# #
################################################################################
#==============================================================================#
@Wes974
Wes974 / README.md
Created June 25, 2018 14:45 — forked from agnoster/README.md
My ZSH Theme

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark