Skip to content

Instantly share code, notes, and snippets.

View nguyen0096's full-sized avatar
๐Ÿ”
Actively looking for job

Nguyen DN nguyen0096

๐Ÿ”
Actively looking for job
  • Persefoni
  • Viet Nam
  • 21:56 (UTC +07:00)
View GitHub Profile
start-at-login = false
after-login-command = []
after-startup-command = ['exec-and-forget sketchybar']
exec-on-workspace-change = ['/bin/bash', '-c',
'sketchybar --trigger aerospace_workspace_change FOCUSED_WORKSPACE=$AEROSPACE_FOCUSED_WORKSPACE PREV_WORKSPACE=$AEROSPACE_PREV_WORKSPACE'
]
enable-normalization-flatten-containers = true
enable-normalization-opposite-orientation-for-nested-containers = true
@nguyen0096
nguyen0096 / having-multiple-jdk-macos.md
Created August 14, 2025 13:04 — forked from gramcha/having-multiple-jdk-macos.md
Managing multiple Java versions in MacOS

Installing different versions of open jdk through Homebrew(assuming already installed) and already having Java 8.

We need to install a tool called jenv - Java version manager which is similar to nvm(nodeJs version manager).

brew install jenv

Export the jenv path to .bash_profile or .zshrc - whatever you are using. I am using .zshrc

@nguyen0096
nguyen0096 / latest-protobuf-ubuntu-18-04.md
Created January 17, 2021 04:09 — forked from diegopacheco/latest-protobuf-ubuntu-18-04.md
How to Install Latest Protobuf on Ubuntu 18.04
sudo apt-get install autoconf automake libtool curl make g++ unzip -y
git clone https://github.com/google/protobuf.git
cd protobuf
git submodule update --init --recursive
./autogen.sh
make
make check
sudo make install
sudo ldconfig

ServiceNow - Jelly scripting cheatsheet

UI Page consists of jelly, client script and processing script. UI Macro has the jelly script only (but client script can be injected in jelly script) Usages:

  • Open as a page using URI https://<instance_name>.service-now/<ui_page_name>.do
  • Open as a modal using client script (UI action, client script, etc) (see snippet 1)
// Snippet 1
var gm = new GlideModal('UI_dialog_name');
gm.setTitle('Show title');