Skip to content

Instantly share code, notes, and snippets.

View kenjij's full-sized avatar
👨‍💻
Hacking away...

Ken J. kenjij

👨‍💻
Hacking away...
View GitHub Profile
@kenjij
kenjij / gist:9015841
Created February 15, 2014 07:48
Configure time zone in Ubuntu (interactive)
sudo dpkg-reconfigure tzdata
@kenjij
kenjij / gist:9015956
Created February 15, 2014 08:05
Configure time zone in Ubuntu (non-interactive)
sudo sh -c 'echo "America/Los_Angeles" > /etc/timezone'
sudo dpkg-reconfigure --frontend noninteractive tzdata
@kenjij
kenjij / hosts-ubuntu
Last active August 29, 2015 14:05
Hosts file on Ubuntu
127.0.0.1 localhost
127.0.1.1 myhostname
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
@kenjij
kenjij / gist:4e6e3eaa602c47722ce7
Last active August 29, 2015 14:05
Self signing an SSL Certificate
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
@kenjij
kenjij / gist:fd572a372096d47b3e41
Last active August 29, 2015 14:22
Installing RVM in OS X
# Install Homebrew; this will prompt you to install Xcode Command Line Developer Tools
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Agree to Xcode license; necessary for fresh install
$ sudo xcodebuild -license
# Install RVM
$ \curl -sSL https://get.rvm.io | bash -s stable
@kenjij
kenjij / textmate-fontsmoothing.sh
Created August 22, 2015 03:24
Font smoothing control in TextMate
# Change settings below if font renderings appear to thin or bold.
# 0: Always disabled.
# 1: Always enabled.
# 2: Disabled for dark themes.
# 3: Disabled for dark themes on high-DPI displays (default).
# Generaly, set the value to 1 if renderings appear too thin
defaults write com.macromates.TextMate.preview fontSmoothing 1
# Reset to default
@kenjij
kenjij / update.sh
Last active February 16, 2016 06:38
Create New Host from Ubuntu Backup Image
# Better to be root
sudo bash
# Change IP address (static)
nano /etc/network/interfaces
# Update hostnames
nano /etc/hostname
nano /etc/hosts
@kenjij
kenjij / build.sh
Created November 17, 2016 18:53
Compiling Reactjs/JSX using Babel
# Usage:
# - Install npm
# - Configure package.json
# - Place source code in "src/"
# - Outputs to "app.js"
npm run build
@kenjij
kenjij / slack_formatting.md
Created December 28, 2016 08:58
Slack message formatting to be used with their API

Slack Message Formatting Reference

Text Formatting

Basic Styles

Making a *bold statement.*
Emphasis with _italic text._
Let's ~strike out~ post this message.
@kenjij
kenjij / CHANGELOG.md
Created December 29, 2016 09:12
A change log template

1.0.0 / Unreleased

Added

  • Version followed by release date.
  • Maintain "Unreleased" version in draft in preparation for release.
  • "Added" section for new features added.
  • MAJOR increment in semantic versioning would mean incompatible changes.

Changed