Skip to content

Instantly share code, notes, and snippets.

View trietphm's full-sized avatar
🍄
1 Up

Triet Pham trietphm

🍄
1 Up
View GitHub Profile
@quangIO
quangIO / wezterm.lua
Last active April 26, 2026 02:45
My wezterm config with tmux-like bindings
local wezterm = require 'wezterm'
local act = wezterm.action
local config = {}
if wezterm.config_builder then
config = wezterm.config_builder()
end
config.color_scheme = 'Catppuccin Mocha'
config.colors = {
@mtyurt
mtyurt / ansible-vim-goto-role-tasks.vim
Last active August 26, 2025 14:07
With pearofducs/ansible-vim plugin installed, following mapping behaves like `gf`, navigates to role under cursor's tasks/main.yml file. Ideal to be used in playbooks
" vim-plug example
call plug#begin('~/.vim/plugged')
Plug 'pearofducks/ansible-vim'
call plug#end()
let g:ansible_goto_role_paths = './roles,../_common/roles'
function! FindAnsibleRoleUnderCursor()
if exists("g:ansible_goto_role_paths")
let l:role_paths = g:ansible_goto_role_paths
@johnfedoruk
johnfedoruk / clamd-setup.md
Last active April 15, 2026 10:54
Setting up ClamAV

ClamAV Setup Notes

Context

ClamAV can be used in a few different ways. Most importantly, it provides the ability to scan files in realtime (on-access) or to scan the file system periodically.

I tried configuring ClamAV to both perform on-access virus scanning and to perform nightly full filesystem scanning. Using the on-access option did not prove to be very useful, however a scheduled full system scan seems to be of value.

Here is my story.

@jfcherng
jfcherng / st4-changelog.md
Last active February 26, 2026 10:28
Sublime Text 4 changelog just because it's not on the official website yet.
@cpappen
cpappen / hosts
Created December 7, 2017 19:23
shit list block for pi-hole
0.0.0.0 api.ad.xiaomi.com
0.0.0.0 api.admob.xiaomi.com
0.0.0.0 api.d.xiaomi.com
0.0.0.0 a.stat.xiaomi.com
0.0.0.0 tracking.miui.com
0.0.0.0 cdn.ad.xiaomi.com
0.0.0.0 data.mistat.xiaomi.com
0.0.0.0 e.ad.xiaomi.com
0.0.0.0 globalapi.ad.xiaomi.com
0.0.0.0 new.api.ad.xiaomi.com
@ageis
ageis / systemd_service_hardening.md
Last active April 29, 2026 14:26
Options for hardening systemd service units

security and hardening options for systemd service units

A common and reliable pattern in service unit files is thus:

NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
DevicePolicy=closed
ProtectSystem=strict
@fernandoaleman
fernandoaleman / fix-libv8-mac.txt
Created May 5, 2016 15:14
Fixing libv8 and therubyracer on Mac
brew tap homebrew/versions
brew install v8-315
gem install libv8 -v '3.16.14.13' -- --with-system-v8
gem install therubyracer -- --with-v8-dir=/usr/local/opt/v8-315
bundle install