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:
font_family JetBrainsMono Nerd Font | |
font_size 13.0 | |
window_padding_width 5 | |
background_opacity 0.98 | |
enable_audio_bell no | |
tab_bar_style powerline | |
# Colors - https://github.com/olimorris/onedarkpro.nvim | |
background #282c34 |
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH | |
# Path to your Oh My Zsh installation. | |
export ZSH="$HOME/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time Oh My Zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes |
-- 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 |