Skip to content

Instantly share code, notes, and snippets.

View sdmgeek's full-sized avatar
:octocat:
I may be slow to respond.

sdmgeek

:octocat:
I may be slow to respond.
View GitHub Profile
#!/bin/bash
# 請在所有的 apt-get install 後面補上 -y
sudo apt-get install software-properties-common
if ! grep -q "ansible/ansible" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
sudo apt-add-repository -y ppa:ansible/ansible
fi
@sdmgeek
sdmgeek / Preferences.sublime-settings
Last active June 30, 2016 19:17 — forked from chenjenping/Preferences.sublime-settings
sublime setting 2016/6/20
{
"auto_complete": true,
"auto_indent": true,
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Oceanic Next Color Scheme/Oceanic Next.tmTheme",
"default_encoding": "UTF-8",
"detect_indentation": true,
"draw_indent_guides": true,
"draw_white_space": true,
@sdmgeek
sdmgeek / brew-perms.sh
Created June 30, 2016 18:29 — forked from jaibeee/brew-perms.sh
Configure homebrew permissions to allow multiple users on MAC OSX. Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
#!/bin/sh
# Configure homebrew permissions to allow multiple users on MAC OSX.
# Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
# allow admins to manage homebrew's local install directory
chgrp -R admin /usr/local
chmod -R g+w /usr/local
# allow admins to homebrew's local cache of formulae and source files
chgrp -R admin /Library/Caches/Homebrew
@sdmgeek
sdmgeek / gulpfile.js
Last active June 13, 2016 18:37 — forked from JeffreyWay/Gulpfile.js
npm, gulp, browserify setting for react using babel
var gulp = require('gulp');
var browserify = require('browserify');
var babelify = require('babelify');
var source = require('vinyl-source-stream');
gulp.task('browserify', function() {
return browserify('./js/app.js').transform(babelify, {presets: ["es2015", "react"]})
.bundle()
.pipe(source('bundle.js'))
.pipe(gulp.dest('js'));