Skip to content

Instantly share code, notes, and snippets.

View kevinmichaelchen's full-sized avatar

Kevin Chen kevinmichaelchen

View GitHub Profile
ryo-ARAKI / starship.toml
Last active May 24, 2024 22:34
Starship configuration file
# ~/.config/starship.toml
full_symbol = "🔋"
charging_symbol = "🔌"
discharging_symbol = ""
threshold = 30
style = "bold red"
bobbytables /
Created February 18, 2017 15:49
Protocol Buffer build script for multiple folders
#!/usr/bin/env bash
# This script is meant to build and compile every protocolbuffer for each
# service declared in this repository (as defined by sub-directories).
# It compiles using docker containers based on Namely's protoc image
# seen here:
set -e
Rich-Harris /
Last active May 20, 2024 09:50
Please include a repro

Please include a repro

You probably arrived here because of a curt message in response to an issue you filed on a repo that I contribute to. Sorry about that (particularly if you filed the issue long ago and have been waiting patiently for a response). Let me explain:

I work on a lot of different open source projects. I really do like building software that makes other people's lives easier, but it's crazy time-consuming. One of the most time-consuming parts is responding to issues. A lot of OSS maintainers will bend over backwards to try and understand your specific problem and diagnose it, to the point of setting up new test projects, fussing around with different Node versions, reading the documentation for build tools that we don't use, debugging problems in third party dependencies that appear to be involved in the problem... and so on. I've personally spent hundreds of hours of my free time doing these sorts of things to try and help people out, because I want to be a responsible maintainer and I

bmhatfield / .profile
Last active May 6, 2024 22:27
Automatic Git commit signing with GPG on OSX
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running.
# Add the following to your shell init to set up gpg-agent automatically for every shell
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then
source ~/.gnupg/.gpg-agent-info
jumanjiman /
Last active February 1, 2024 14:27
hardening script for an alpine docker container
# Copyright 2020 Paul Morgan
# License: GPLv2 (
set -x
set -e
# Docker build calls this script to harden the image during build.
# NOTE: To build on CircleCI, you must take care to keep the `find`
# command out of the /proc filesystem to avoid errors like:
audibleblink / Swift.sublime-build
Created December 13, 2014 22:26
Swift Build System for Sublime Text
// Tested on Yosemite with Xcode6
// This only works if `swift` from
// your shell starts the Swift REPL
"cmd": ["swift", "$file"],
"selector": "source.swift"
davegurnell / anorm.scala
Last active August 14, 2023 16:42
A short guide to Anorm
To run a query using anorm you need to do three things:
1. Connect to the database (with or without a transaction)
2. Create an instance of `anorm.SqlQuery` using the `SQL` string interpolator
3. Call one of the methods on `SqlQuery` to actually run the query
osipov / gist:c2a34884a647c29765ed
Created July 21, 2014 19:12
Install Scala and SBT using apt-get on Ubuntu 14.04 or any Debian derivative using apt-get
sudo apt-get remove scala-library scala
sudo wget
sudo dpkg -i scala-2.10.4.deb
sudo apt-get update
sudo apt-get install scala
sudo dpkg -i sbt.deb
sudo apt-get update
sudo apt-get install sbt
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 29, 2024 15:29
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
twasink / Description
Created June 6, 2012 11:55
Spring, Hibernate, HSQLDB and automatically creating tables
An example of using Spring and Hibernate together to automatically create a HSQLDB in-memory database for testing hibernate mappings.