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 — forked from tevino/codesign-gdb.sh
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
@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

@Wes974
Wes974 / upload-github-release-asset.sh
Created June 10, 2018 03:07 — forked from stefanbuck/upload-github-release-asset.sh
Script to upload a release asset using the GitHub API v3.
#!/usr/bin/env bash
#
# Author: Stefan Buck
# License: MIT
# https://gist.github.com/stefanbuck/ce788fee19ab6eb0b4447a85fc99f447
#
#
# This script accepts the following parameters:
#
# * owner
@Wes974
Wes974 / encrypted-git-repo.md
Created January 27, 2018 22:49
Transparent Git Encryption

Transparent Git Encryption

This document has been modified from its [original format][m1], which was written by Ning Shang (geek@cerias.net). It has been updated and reformatted into a [Markdown][m2] document by [Woody Gilk][m3] and [republished][m4].

Description

When working with a remote git repository which is hosted on a third-party storage server, data confidentiality sometimes becomes