Skip to content

Instantly share code, notes, and snippets.

View elliotberry's full-sized avatar
🌍
online

ɛʟʟɨօȶ b =^._.^= ∫ elliotberry

🌍
online
View GitHub Profile
@chriskjaer
chriskjaer / gulpfile.js
Last active October 12, 2024 17:15
Gulp recipe: Jade, Sass, Livereload and static server
var gulp = require('gulp'),
gutil = require('gulp-util'),
sass = require('gulp-sass'),
csso = require('gulp-csso'),
uglify = require('gulp-uglify'),
jade = require('gulp-jade'),
concat = require('gulp-concat'),
livereload = require('gulp-livereload'), // Livereload plugin needed: https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei
tinylr = require('tiny-lr'),
express = require('express'),
@orioltf
orioltf / osx_automount_nfs.md
Created April 29, 2014 15:07 — forked from L422Y/osx_automount_nfs.md
#TERMINAL: OSX automount

I have spent quite a bit of time figuring out automounts of NFS shares in OS X...

Somewhere along the line, Apple decided allowing mounts directly into /Volumes should not be possible:

/etc/auto_master (see last line):

#
# Automounter master map
#

+auto_master # Use directory service

@marcelaraujo
marcelaraujo / gist:9a9fe07c5a4bcaea8c06
Created October 1, 2015 03:22
MacOS disable services
System process daemons that are system-wide provided by mac os x are described by launchd preference files that can be showed with the command:
$ sudo ls -all /System/Library/LaunchDaemons/
Third party process daemons that are system-wide provided by the administrator are described by preference files that can be showed with the command:
$ sudo ls -all /Library/LaunchDaemons/
Launch Agents that are per-user provided by mac os x usually loaded when the user logs in. Those provided by the system can be found with:
$ sudo ls -all /System/Library/LaunchAgents/
Launch Agents that are per-user provided by the administrator and usually loaded when the user logs in. Those provided by the system can be found with:
@lucianghinda
lucianghinda / kill-adobe-creative-cloud.sh
Created March 13, 2017 08:47
Kill all Adobe Processes
#!/bin/bash
ps axuwww | grep Adobe --exclude='grep' | awk '{print $2}' | xargs sudo kill -9
@varenc
varenc / pet-snippet.toml
Last active July 22, 2025 03:34
description
[[Snippets]]
Description = "my personal snippets. Relies on many of my own functions. If you're interested in pmset/disabling assertions, see: https://gist.github.com/varenc/627f6be2a5ec9d52dab3cf0d157be62f"
Output = ""
Tag = []
command = ""
[[Snippets]]
Description = "start dev file syncer. uses fswatch to know when to run rsync. does not sync .git file. Sort like a write-through cache network file system with only eventual consistency guarantees."
Output = ""
@mattscilipoti
mattscilipoti / gist:bd357b2413b1d0213afe95be5c4dc2a6
Created January 3, 2018 16:16
git: clean up local branches that have been deleted remotely
# 1. saves possible branches to file, opens in editor
# 2. remove branches you don't want to delete from the list and save.
git fetch --prune && git branch --no-color --merged | egrep -v "(^\*|master)" > /tmp/merged-branches && vi /tmp/merged-branches && xargs git branch -d < /tmp/merged-branches
@MattyBonBon
MattyBonBon / brew-install-kali-tools.sh
Last active November 26, 2024 09:26
Script to install kali tools that are already included in homebrew
#
# Created from crossmatching katoolin listing & brew search
# to execute:
# $ sh "/path/to/file"
#
echo "Checking for 🍺..."
if test ! $(which brew); then
echo "Installing homebrew (🍺)..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@Veticus
Veticus / aboutdismac.sh
Last active November 29, 2022 03:29
Playing with "About Dis Mac" by mjk
#!/bin/bash
# This is almost a copy of "About Dis Mac" by mjk. I just made minor changes to make it work with the current beta 3 of OS X 10.14.1.
# Unfortunately i cannot find the original source of this wonderfull collection of functions. But it deserves to be preserved.
function write_header () {
local h="$@"
printf "%s\n" "####################"
printf "%s\n" "${h}"
printf "%s\n" "####################"
@brycied00d
brycied00d / backup-restic.sample.conf
Last active August 25, 2023 03:44
backup-restic.sh - My generap-purpose script to backup a system, balancing simplicity with configurability.
# This is an example file, with example values.
#export RESTIC_PASSWORD=apassword
#export RESTIC_REPOSITORY=b2:bucket:path
#export B2_ACCOUNT_ID=12345
#export B2_ACCOUNT_KEY=abcdefg
#restic_backup /etc
#restic_backup /root
#restic_backup /var