Skip to content

Instantly share code, notes, and snippets.

View brra's full-sized avatar

brra brra

  • Sweden
View GitHub Profile
@mathiasbynens
mathiasbynens / appify
Created November 12, 2010 13:46 — forked from subtleGradient/appify
appify — create the simplest possible Mac app from a shell script
#!/bin/bash
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF
appify v3.0.1 for Mac OS X - http://mths.be/appify
Creates the simplest possible Mac app from a shell script.
Appify takes a shell script as its first argument:
`basename "$0"` my-script.sh
@varenc
varenc / pet-snippet.toml
Last active July 18, 2024 04:05
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"
command = ""
tag = []
output = ""
[[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."
command = "fswatch -0 --exclude \"\\.git\" --exclude \"\\.xml\" --exclude \"___\" -o /Users/chris/Documents/workspace/lingt_chris_dev_rsync_checkout/myproject | xargs -0 -n 1 -I {} rsync --progress --exclude '*.pyc' --exclude '*.git' --recursive ~/workspace/lingt_chris_dev_rsync_checkout/myproject dev@dev.server:/home/user/webapps/dev_chris/myproject"
tag = []
@vraravam
vraravam / fresh-install-of-osx.sh
Last active July 9, 2024 14:19
Steps to get "up and running" with new Mac OSX
This script has been moved here: https://github.com/vraravam/dotfiles
Test
@jmk2142
jmk2142 / .eslintrc.json
Last active August 22, 2020 14:45
MSTU5013 Sync-Settings
{
"parserOptions": {
"ecmaVersion": 6
},
"plugins": ["html"],
"settings": {
"html/html-extensions": [".html", ".tag"]
}
}

"Knowledge is powerful, be careful how you use it!"

A collection of inspiring lists, manuals, cheatsheets, blogs, hacks, one-liners, cli/web tools, and more.

@dineshbhagat
dineshbhagat / configure-iterm2.sh
Last active June 21, 2023 17:50
Shell script to configure iterm2 with oh-my-z, nerd font, powerlevel10k
brew install zsh;
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)";
cd $ZSH/custom/plugins;
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git && git clone https://github.com/zsh-users/zsh-autosuggestions && git clone https://github.com/zsh-users/zsh-completions;
# from now on your default shell is zsh, customize by editing ~/.zshrc file
brew tap homebrew/cask-fonts;
brew install --cask font-hack-nerd-font;
brew install coreutils
cd ~/Desktop;
@OleksandrKucherenko
OleksandrKucherenko / configureMyMac.sh
Last active June 29, 2024 08:53
Pre-configure My mac
#!/usr/bin/env bash
set -x # uncomment to debug
# required for Homebrew
xcode-select —-install
sudo xcodebuild -license accept
# install https://brew.sh/
which brew || (/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" )
@DonRichards
DonRichards / multithread_rsync.sh
Created March 20, 2020 22:15
Multi-thread Rsync. Don't forget to $ chmod +x multithread_rsync.sh and change the paths & server. And then run it like: $ ./multithread_rsync.sh
#!/usr/bin/env bash
# RSYNC /usr/local/bin/rsync
RSYNC_PROG=$(which rsync)
# Note the important use of --relative to use relative paths so we don't have to specify the exact path on dest
RSYNC_OPTS="-aP --numeric-ids --progress --human-readable --exclude=.git --relative --compress"
export RSYNC_RSH="ssh -T -c aes128-ctr -o Compression=no -x"