This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# change monitor brightness each hour | |
1 * * * * /home/chris/bin/polybar/monitor_brightness redshift |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'httparty' | |
@coins = { :bitcoin => "BTC", :ethereum => "ETH" } | |
@currency = 'USD' | |
@api_key = 'XXXX' | |
@request_url = "https://pro-api.coinmarketcap.com/v1/cryptocurrency/quotes/latest?slug=#{@coins.keys.join(",")}" | |
@headers = { | |
"Accepts" => "application/json", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install -y autoconf build-essential libgnutls28-dev libtasn1-6-dev libx11-dev libxcursor1 libxcursor1 libxrandr-dev libxcursor-dev libxcursor-dev nettle-dev pkg-config | |
[ ! -d "rdesktop" ] && git clone https://github.com/rdesktop/rdesktop.git | |
cd rdesktop/ | |
git checkout -b v1.8.6 | |
[ ! -f "configure" ] && ./bootstrap | |
# autoconf | |
./configure --disable-credssp --disable-smartcard | |
make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PS3="Choice: " | |
USERS=$(ls | grep -v instagram-scraper) | |
MENU="stats download_all download_new "$USERS | |
function download_user { | |
echo "downloading instagram.com/$1" | |
#~/.local/bin/instalooter user $1 $1 | |
~/.local/bin/instagram-scraper @.instagram-credentials $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :ssl do | |
desc 'Generate Wildcard CSR' | |
task :csr do | |
domain = ask_with_default('Domain Name', '*.mydomain.com') | |
email = ask_with_default('Email address', 'admin@mydomain.com') | |
subj = "/emailAddress=#{email}/CN=#{domain}/C=US/ST=XXX/L=XXX/O=XXX" | |
# do not want * in directory names |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://www.backblaze.com/blog/what-smart-stats-indicate-hard-drive-failures/ | |
ATTRIBUTES=" 5|187|188|197|198" | |
for DRIVE in `ls /dev/sd[a-z]`; do | |
COUNT=$(sudo smartctl -A $DRIVE | grep -E "$ATTRIBUTES" | grep -v " 0$" | wc -l) | |
echo "" | |
echo $DRIVE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Topics.Topics where | |
import Data.Maybe | |
import Text.Printf (printf) | |
import XMonad | |
import XMonad.Actions.DynamicWorkspaceGroups | |
import XMonad.Actions.TopicSpace | |
import XMonad.Actions.GridSelect | |
import XMonad.Prompt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install WSL (Windows Linux Subsystem) | |
https://docs.microsoft.com/en-us/windows/wsl/install-win10 | |
Windows drives accessible under /mnt | |
https://docs.microsoft.com/en-us/windows/wsl/faq | |
Install Sabnzbd | |
sudo apt install sabnzbdplus | |
Install Sonarr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
case $1 in | |
config) | |
echo "graph_category network" | |
echo "graph_title Speedtest" | |
echo "graph_args --base 1000 -l 0" | |
echo "graph_vlabel DL / UL" | |
echo "graph_scale no" | |
echo "down.label Download" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set blink-matching-paren on | |
set completion-ignore-case on | |
set completion-map-case on | |
set completion-query-items 30 | |
set editing-mode vi | |
set show-all-if-ambiguous on | |
set visible-stats on | |
# need to set up/down arrows to search in both modes | |
set keymap vi-command |
NewerOlder