Skip to content

Instantly share code, notes, and snippets.

Trung trungie

Block or report user

Report or block trungie

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View patch-edid.rb
# Create display override file to force Mac OS X to use RGB mode for Display
# see
require 'base64'
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay`
staltz /
Last active Oct 22, 2019
The introduction to Reactive Programming you've been missing
balupton /
Last active Oct 21, 2019
Convert XPS to PDF on Linux and Mac using bash

Convert XPS to PDF on Linux and Mac

  1. Download this file

  2. chmod +x ./xps2pdf.bash

  3. To convert a particular xps file: ./xps2pdf.bash thefile.xps

  4. To convert all xps files in the current working directory: ./xps2pdf.bash *.xps

staringispolite / asciiputsonglasses
Last active Oct 16, 2019
Ascii art sunglasses meme
View asciiputsonglasses
Puts on glasses:
( •_•)>⌐■-■
Takes off glasses ("mother of god..."):
( •_•)>⌐■-■
bhenerey / ideal
Created May 23, 2012
ideal ops checklist
View ideal

In a perfect world, where things are done well, not just quickly, I would expect to find the following when joining the company:


  • Accurate / up-to-date systems architecture diagram

  • Accurate / up-to-date network diagram

  • Out-of-hours support plan

  • Incident management plan

# Script to remove GPG key from git-crypt
# It will re-initialize git-crypt for the repository and re-add all keys except
# the one requested for removal.
# Note: You still need to change all your secrets to fully protect yourself.
# Removing a user will prevent them from reading future changes but they will
# still have a copy of the data up to the point of their removal.
wsargent /
Last active Sep 9, 2019
Docker cheat sheet

JProfiler with Docker



DockerFile should have JProfiler installation.

RUN wget <JProfiler file location> -P /tmp/ && \
  tar -xzf /tmp/<JProfiler file> -C /usr/local && \
  rm /tmp/<JProfiler file>
import android.content.Context;
import android.content.SharedPreferences;
import android.text.TextUtils;
import android.util.Log;
You can’t perform that action at this time.