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:
#!/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 % |
# 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 |
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
#!/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): |
Citrix completely fucked their Linux users by not testing any of their software. Any version past 13.8 does not work for my use case.
Version: 13.8 https://www.citrix.com/downloads/citrix-receiver/legacy-receiver-for-linux/receiver-for-linux-138.html
# List of plugins | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
set -g @plugin 'tmux-plugins/tmux-pain-control' | |
set-option -g mouse on | |
set-option -g prefix C-a | |
bind-key C-a last-window | |
set -g base-index 1 |
source ~/antigen.zsh | |
# Load the oh-my-zsh's library. | |
antigen use oh-my-zsh | |
# Bundles from the default repo (robbyrussell's oh-my-zsh). | |
antigen bundle git | |
antigen bundle pip | |
antigen bundle command-not-found | |
antigen bundle docker |
# List of plugins | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
set -g @plugin 'tmux-plugins/tmux-pain-control' | |
set -g @plugin 'tmux-plugins/tmux-battery' | |
set -g @plugin 'arcticicestudio/nord-tmux' | |
set -g @plugin 'nhdaly/tmux-better-mouse-mode' | |
# C-b is not acceptable -- Vim uses it | |
set-option -g prefix C-a | |
bind-key C-a last-window |