I hereby claim:
- I am jeffcasavant on github.
- I am jeffcasavant (https://keybase.io/jeffcasavant) on keybase.
- I have a public key ASAgqJOqkH1KLlgppyrz3ENE0l8IWADJROMabFORT5dBbgo
To claim this, I am signing this object:
#! /usr/bin/env bash | |
if systemctl is-active --quiet transmission; then | |
VPN_USER_IP=$(su vpntest -c "curl -s icanhazip.com") | |
NORMAL_IP=$(curl -s icanhazip.com) | |
if [[ "$VPN_USER_IP" == "$NORMAL_IP" ]]; then | |
systemctl stop transmission sonarr radarr prowlarr lidarr readarr | |
email.sh "VPN down" "echo 'VPN is down, so we stopped transmission'" | |
else |
vim.g.python_host_prog = '/usr/bin/python2' | |
vim.g.python3_host_prog = '/usr/bin/python3' | |
local homedir = vim.loop.os_homedir() | |
local Plug = require 'usermod.vimplug' | |
Plug.begin(homedir .. '/.config/nvim/vimplug') | |
---- Functionality |
# General repo configuration | |
repo: | |
bindAddress: 0.0.0.0 | |
port: 8000 | |
# Where to store the logs, relative to where the repo is started from. Logs will be automatically | |
# rotated every day and held for 14 days. To disable the repo logging to files, set this to "-". | |
logDirectory: logs | |
# If true, the media repo will accept any X-Forwarded-For header without validation. In most cases | |
# this option should be left as "false". Note that the media repo already expects an X-Forwarded-For | |
# header, but validates it to ensure the IP being given makes sense. |
--- | |
kind: Ingress | |
apiVersion: networking.k8s.io/v1 | |
metadata: | |
name: matrix-media-repo | |
annotations: | |
cert-manager.io/cluster-issuer: letsencrypt-prod | |
kubernetes.io/ingress.class: nginx | |
nginx.ingress.kubernetes.io/proxy-read-timeout: '3600' | |
nginx.ingress.kubernetes.io/proxy-send-timeout: '3600' |
vim.g.python_host_prog = '/usr/bin/python2' | |
vim.g.python3_host_prog = '/usr/bin/python3' | |
local homedir = vim.loop.os_homedir() | |
local Plug = require 'usermod.vimplug' | |
Plug.begin(homedir .. '/.config/nvim/vimplug') | |
---- Functionality |
FUNCTION_NAME= | |
DISTRIBUTION_ID= | |
for region in $(aws --output text ec2 describe-regions | cut -f 3); do | |
for loggroup in $(aws --output text logs describe-log-groups --log-group-name "/aws/lambda/us-east-1.$FUNCTION_NAME" --region $region --query 'logGroups[].logGroupName'); do | |
echo $region $loggroup | |
done | |
for loggroup in $(aws --output text logs describe-log-groups --log-group-name "/aws/cloudfront/LambdaEdge/$DISTRIBUTION_ID" --region $region --query 'logGroups[].logGroupName'); do | |
echo $region $loggroup | |
done | |
done |
""" Plugins list | |
" Vundle required settings | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
""" Functionality | |
" Unicode menu | |
Plugin 'chrisbra/unicode.vim' |
#! /bin/bash | |
VUNDLE=~/.vim/bundle/Vundle.vim | |
if [[ ! -d "$VUNDLE" ]]; then | |
mkdir -p "$VUNDLE" | |
git clone https://github.com/VundleVim/Vundle.vim.git "$VUNDLE" | |
fi | |
vim +PluginInstall +qall | |
# vim +PluginUpdate +qall |
I hereby claim:
To claim this, I am signing this object:
int lengthOfLongestSubstring(char * s){ | |
int len = 0; | |
while (s[len] != '\0') { | |
len++; | |
} | |
int base_pos; | |
int pos; | |
int check_len = len > 95 ? 95 : len; |