Skip to content

Instantly share code, notes, and snippets.

# ~/.tmux.conf
# : << EOF
# https://github.com/gpakosz/.tmux
# (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license,
# without any warranty.
# Copyright 2012— Gregory Pakosz (@gpakosz).
# /!\ do not edit this file
# instead, override settings in ~/.tmux.conf.local, see README.md
# ~/.config/starship.toml
[conda]
disabled = true
[battery]
full_symbol = "🔋"
charging_symbol = "🔌"
discharging_symbol = "⚡"
@tungpun
tungpun / http-benchmark.md
Created December 15, 2023 03:46 — forked from denji/http-benchmark.md
HTTP(S) Benchmark Tools / Toolkit for testing/debugging HTTP(S) and restAPI (RESTful)
@tungpun
tungpun / google-cloud-cli-pod.yaml
Last active November 29, 2023 10:33
google-cloud-cli-pod.yaml
apiVersion: v1
kind: Pod
metadata:
name: google-cloud-cli
namespace: test
labels:
app: google-cloud-cli
spec:
containers:
- image: gcr.io/google.com/cloudsdktool/google-cloud-cli:latest
apiVersion: v1
kind: Pod
metadata:
name: test
labels:
app: test
spec:
containers:
- image: ubuntu
command:
apiVersion: v1
kind: Pod
metadata:
labels:
run: my-pod
name: my-pod
spec:
containers:
- image: amazon/aws-cli
name: my-aws-cli
A32
AAA
AAS
AAT
AAV
ABB
ABC
ABI
ABR
ABS
@tungpun
tungpun / Preferences.sublime-settings -- User
Created March 14, 2018 10:10
Sublime Text 3's settings
{
"always_show_minimap_viewport": true,
"auto_complete_function_params": "required",
"auto_complete_triggers":
[
{
"characters": ".",
"selector": "source.python"
}
],
@tungpun
tungpun / ohyeahfw.py
Last active November 16, 2015 14:52
A simple wrapper of iptables....
#!/usr/bin/python2.7
"""
A wrapper of IPTables
"""
import os
D_IP = '0.0.0.0'
def basic_color(code):
@tungpun
tungpun / gist:29660f3e9450be3d1b4f
Last active September 3, 2015 15:05
NLP - first assignment
import re
def standalize(paragraph):
paragraph = paragraph.strip()
paragraph = re.sub(r'([,/;!?.(){}:=@#$%^&*\[\]<>\-\+])', r' \1 ', paragraph)
while paragraph.find(' ') != -1:
paragraph = paragraph.replace(' ', ' ')
return paragraph