Skip to content

Instantly share code, notes, and snippets.

Huy Tran htr3n

Block or report user

Report or block htr3n

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
htr3n / cloudSettings
Last active Jan 28, 2020
VSCode/Codium settings
View cloudSettings
htr3n /
Created Aug 19, 2019
Debian/Ubuntu-specific termite installation script
#!/usr/bin/env sh
sudo apt-get install -y \
git \
g++ \
libgtk-3-dev \
gtk-doc-tools \
gnutls-bin \
valac \
intltool \
htr3n /
Created Jun 19, 2019
Installing and setting a working Ubuntu box

Software Management

Ubuntu/Linux Tools

APT (Ubuntu's Advanced Packaging Tool)

# installing a package
sudo apt install zsh


ssh-keygen -t rsa -b 4096 -C ""


  • Windows PowerShell was built upon .NET and only worked on Windows
  • PowerShell Core is open sourced and built on .NET Core 2.x, work on Windows, Linux, macOS, ARM
htr3n /
Last active May 20, 2019
Creating RAM disk in macOS


diskutil erasevolume HFS+ 'RAM Disk' `hdiutil attach -nobrowse -nomount ram://XXXXX`

where XXXXX is the size of the RAM disk in terms of memory blocks.


htr3n /
Last active May 20, 2019
Firefox Quantum optimization


  • Set to False
  • Set security.dialog_enable_delay to 0
  • Set network.prefetch-next to False (Only on slow internet connections)
  • Set browser.newtabpage.activity-stream.feeds.telemetry to false
  • Set browser.newtabpage.activity-stream.telemetry to false
  • Set to false
  • Set toolkit.telemetry.archive.enabled to false
  • Set toolkit.telemetry.bhrPing.enabled to false
htr3n /
Last active Apr 22, 2019
Python -- traverse a folder
import os
for dirname, dirnames, filenames in os.walk('.'):
# print path to all subdirectories first.
for subdirname in dirnames:
print(os.path.join(dirname, subdirname))
# print path to all filenames.
for filename in filenames:
print(os.path.join(dirname, filename))
htr3n / gulpfile.js
Last active Jan 27, 2019
Gulp 4 configuration SASS, PostCSS, autoprefixer, cssnano, sourcemaps
View gulpfile.js
const gulp = require('gulp');
const sass = require('gulp-sass');
const postcss = require('gulp-postcss');
const autoprefixer = require('autoprefixer');
const cssnano = require('cssnano');
const sourcemaps = require('gulp-sourcemaps');
const log = require('fancy-log');
const sassSourceFile = 'assets/scss/hyde-hyde.scss';
const outputFolder = 'static/css';
class HelloWorld {
public String hello(){
return "Hello World!";
package io.github.htr3n.springjdbcsimple.entity;
public class Customer {
private Integer id;
private String name;
private String email;
public Integer getId() {
return id;
You can’t perform that action at this time.