I hereby claim:
- I am bcatubig on github.
- I am bcatubig (https://keybase.io/bcatubig) on keybase.
- I have a public key ASBnb33d8bf6_dOpQCwgLXGIQVBZPXqUAjx9-3JQiJ-t3Ao
To claim this, I am signing this object:
-- Pull in the wezterm API | |
local wezterm = require("wezterm") | |
local act = wezterm.action | |
local config = wezterm.config_builder() | |
config.color_scheme = "onedarkpro_onedark" | |
config.font = wezterm.font("JetBrainsMono Nerd Font", { weight = "Medium" }) | |
config.font_size = 16 | |
config.scrollback_lines = 20000 |
# Fix Colors | |
set -g default-terminal "screen-256color" | |
set -as terminal-features ",xterm-256color:RGB" | |
# easy reload config | |
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded." | |
# set window split | |
bind-key v split-window -h | |
bind-key b split-window |
I hereby claim:
To claim this, I am signing this object:
module bricks networking after resuming from sleep
either remove the blacklist file
/etc/modprobe.d
❯ sudo rm r8169_blacklist.conf
or run
# Works with Bash and ZSH | |
# Copy this into your ~/.bashrc or ~/.zshrc | |
# Install Lastpass cli -- https://github.com/lastpass/lastpass-cli | |
# Install sshpass | |
# OSX: $ brew install http://git.io/sshpass.rb | |
# Be sure to change <MYLASTPASS-PASSWORD-ID> in the install_keys() function | |
function install_keys (){ | |
echo "INFO: No SSH Key on server. Grabbing password from lastpass" | |
export SSHPASS=$(lpass show <MYLASTPASS-PASSWORD-ID> --password) | |
/usr/local/bin/sshpass -e ssh-copy-id $1 || return 255 |
#!/usr/bin/env python | |
import subprocess | |
from multiprocessing import Pool | |
from functools import partial | |
import argparse | |
import sys | |
from itertools import chain | |
def execute_playbook(ansible_string, pb): |
import subprocess | |
ps = [] | |
def main(): | |
for i in range(1,5): | |
p = subprocess.Popen("ansible all -i localhost, -c local -a 'date'", shell=True) | |
ps.append(p) | |
while True: | |
ps_status = [p.poll() for p in ps] | |
if all([x is not None for x in ps_status]): | |
break |
# C-b is not acceptable -- Vim uses it | |
set-option -g prefix C-a | |
bind-key C-a last-window | |
# Start numbering at 1 | |
set -g base-index 1 | |
# Allows for faster key repetition | |
set -s escape-time 0 |
#!/bin/bash | |
#13:16 $ ./check_memory.sh | |
#OK - Used: 197/3953 (4%);|'Memory Used'=197MB;3360;3755;4053 | |
#Swap Usage: 0/3905 (0%);|'Swap Used'=0MB;3319;3709;4005 | |
MEMTOTAL=$(free | awk '/Mem/ {printf("%d",$2/1024)}') | |
SWAPTOTAL=$(free | awk '/Swap/ {printf("%d", $2 / 1024)}') | |
# Get the memory usage in % |