Skip to content

Instantly share code, notes, and snippets.

View NLKNguyen's full-sized avatar

Nikyle Nguyen NLKNguyen

View GitHub Profile
@NLKNguyen
NLKNguyen / common-source-code.flt
Created July 12, 2023 00:41
WinMerge common File Filters to compare source code folders that contain C#, JS projects
## WinMerge is a free folder/file comparison tool for Windows https://winmerge.org/
## This is a directory/file filter for WinMerge to only compare certain files
name: common-source-code
desc: lets through common files for ASP.NET / JS projects
## This is an exclusive filter (it lets through only matching files)
def: exclude
## Filters for including filenames begin with f:
@NLKNguyen
NLKNguyen / Docker-Without-Root.md
Created June 24, 2019 23:58
Ubuntu 18.04 Setting Up Docker to Use Without Root Privileges

Install Docker

I still use docker.io which is now considered an old version, so you probably want to use the recommended Docker CE (Community Edition) instead. More info here:https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-using-the-repository

At this point, most docker commands including docker ps require sudo permission, and this should be avoided. Next section addresses this.

Post Install

Run these commands. Some are straight from Docker's docs: https://docs.docker.com/install/linux/linux-postinstall/

@NLKNguyen
NLKNguyen / install.sh
Created February 14, 2017 10:38
Install Hadoop on Ubuntu 16.04
# Copy line by line and paste to an interactive shell
# Update system
sudo apt-get update && sudo apt-get dist-upgrade
# Install Java
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-7-jdk
@NLKNguyen
NLKNguyen / Snapshot and Span.md
Last active April 26, 2016 02:57
Visual Studio Extension Recipes

Given: SnapshotPoint snapshotPoint

Get: ITextSnapshot which the snapshotPoint refers to

ITextSnapshot snapshot = snapshotPoint.Value.Snapshot;

Given: SnapshotPoint snapshotPoint

# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@NLKNguyen
NLKNguyen / instruction.md
Created September 28, 2015 21:32
Tomcat Setup

From Professional Java for Web Applications page 24

Configure Tomcat for first use

Add user

In file: $TOMCAT_HOME/conf/tomcat-users.xml

Add in between <tomcat-users> and </tomcat-users>

@NLKNguyen
NLKNguyen / Instruction.md
Last active September 18, 2015 21:49
JAVA: Up & Running on Ubuntu

#Install Java 8 (Oracle JDK)

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java8-set-default

# Check
java -version
@NLKNguyen
NLKNguyen / ElapsedTime.cpp
Created August 15, 2015 21:42
Qt Snippets
// Measure Elapsed Time in Nanoseconds
// #include <QElapsedTimer>
QElapsedTimer timer;
qint64 nanoSec;
timer.start();
/* ... some activity ... */
@NLKNguyen
NLKNguyen / Installation.md
Created July 25, 2015 16:09
Work with Gradle on Ubuntu
sudo add-apt-repository ppa:cwchien/gradle
sudo apt-get update
sudo apt-get install gradle
@NLKNguyen
NLKNguyen / Installation.md
Last active September 6, 2023 11:20
Work with PlantUML on Ubuntu

Require java

Install Graphviz

$ sudo apt-get install graphviz

Download plantuml.jar

Store in for example ~/java/plantuml.jar