Skip to content

Instantly share code, notes, and snippets.

@vuonglab
vuonglab / windows notes
Last active June 21, 2020 06:48
Install notes
Make sure network discovery is turned on at home.
Enable UTC time
* Add RealTimeIsUniversal (DWORD) under HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation\
* Set value to 1
@vuonglab
vuonglab / fuchsia notes
Last active March 24, 2025 10:28
Download and build Fuchsia
Download Fuchsia source code (https://fuchsia.dev/fuchsia-src/development/source_code)
sudo apt-get install build-essential curl git python unzip
cd ~
curl -s "https://fuchsia.googlesource.com/fuchsia/+/master/scripts/bootstrap?format=TEXT" | base64 --decode | bash
Configure environment variables (https://fuchsia.dev/fuchsia-src/development/source_code)
Add to ~/.bash_aliases:
export PATH=$PATH:~/fuchsia/.jiri_root/bin
source ~/fuchsia/scripts/fx-env.sh
source ~/.bash_aliases
@vuonglab
vuonglab / etc_fstab
Created June 13, 2020 22:52
Mount a RAM file system under /tmp
tmpfs /tmp tmpfs nodev,nosuid,relatime,size=31G 0 0
@vuonglab
vuonglab / .ratpoisonrc
Last active January 16, 2022 00:48
Configuration file for ratpoison, my X window manager
set startupmessage 0
set border 0
# escape Super_L
definekey top Super_L readkey root
bind D prevscreen
bind d nextscreen
bind a exec ratpoison -c "echo $(date '+%a %b %d %Y %r %Z'; acpi)"
exec xterm
@vuonglab
vuonglab / .bash_aliases
Last active June 27, 2020 04:14
My Bash initialization script
#
# ~/.bash_aliases
#
PATH=$PATH:~/bin
export CDPATH=:$HOME # first colon = search current working directory first
export EDITOR=vim
if [ ! -d "/tmp/$USER/downloads" ]; then
mkdir -p "/tmp/$USER/downloads"
@vuonglab
vuonglab / kbdrate.service
Created June 13, 2020 03:34
Set short and high keyboard repeat rate
# goes in /etc/systemd/system/
# sudo systemctl enable kbdrate
# sudo systemctl start kbdrate
[Unit]
Description=Configure keyboard repeat rate in tty
[Service]
Type=oneshot
RemainAfterExit=yes
GRUB_TIMEOUT=0
GRUB_TERMINAL=console
@vuonglab
vuonglab / .vimrc
Last active June 27, 2020 23:02
vim configs
" expand tabs to 2 spaces
set tabstop=8 softtabstop=0 expandtab shiftwidth=2 smarttab
set backupdir=/tmp
set directory=/tmp
filetype plugin on
syntax on
"colorscheme ir_black
@vuonglab
vuonglab / .xinitrc
Last active March 19, 2021 19:20
X startup configs
xset b off # bell off
xset r rate 175 40 # delay, repeat rate
xset mouse 4 0 # 4 times default mouse acceleration speed
xset dpms 120 180 240 # standby, suspend, off in seconds
xrandr --output DP1-8 --auto --output DP1-1-8 --auto --right-of DP1-8
# /etc/xdg/awesome/rc.lua
# terminal = "x-terminal-emulator -fg cyan -bg black -geometry 256x128"
@vuonglab
vuonglab / .Xdefaults
Last active June 8, 2020 01:51
xterm configs
xterm*faceName: Monospace
xterm*faceSize: 12
xterm*background: black
xterm*foreground: cyan