Skip to content

Instantly share code, notes, and snippets.

@ptantiku
ptantiku / .tmux.conf
Created August 28, 2019 06:33
tmux in vim mode
# use C-a, since it's on the home row and easier to hit than C-b
set-option -g prefix C-a
unbind-key C-a
bind-key C-a send-prefix
set -g base-index 1
# vi is good
set-window-option -g mode-keys vi
@ptantiku
ptantiku / setup-python3.8-via-ppa.sh
Last active April 14, 2023 12:31
Setup Python3.8 in Ubuntu Xenial (16.04 LTS). The python version was fixed at Python 3.5.1
#!/bin/sh
# install PPA
sudo add-apt-repository ppa:deadsnakes/ppa
# update and install
sudo apt update
sudo apt install python3.8 python3.8-dev python3.8-venv
# setup alternatives
@ptantiku
ptantiku / setup-mahidol-vpn-for-ubuntu.md
Last active April 12, 2020 23:42
Setting up Mahidol VPN on Ubuntu

Setting up Mahidol VPN on Ubuntu

  • Mahidol VPN is Juniper Pulse VPN
  • Ubuntu network connection is managed by Network Manager

Normal Steps

sudo apt install openconnect libopenconnect5 network-manager-openconnect network-manager-openconnect-gnome
@ptantiku
ptantiku / generateBunfig.ts
Last active April 5, 2024 04:46
Generate Bunfig.toml by using scope and token from .npmrc
#!/usr/bin/env bun
import Bun from 'bun';
/**
* Main function
* @return {Promise<void>} nothing
*/
async function main() {
// open and read inFile

Keybase proof

I hereby claim:

  • I am ptantiku on github.
  • I am ptantiku (https://keybase.io/ptantiku) on keybase.
  • I have a public key ASCODTlqSstH-SUanGcawDf0u8AaH1tDQql7OLHtg0hktwo

To claim this, I am signing this object: