This file contains hidden or 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
# kubectl convenience aliases | |
# requires https://github.com/cykerway/complete-alias | |
## base | |
alias k="kubectl" | |
complete -F _complete_alias k | |
## attach | |
alias katt="kubectl attach" | |
complete -F _complete_alias katt | |
alias katti="kubectl attach --stdin --tty" |
This file contains hidden or 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
<?xml version="1.0" ?> | |
<!DOCTYPE nvidia_smi_log SYSTEM "nvsmi_device_v10.dtd"> | |
<nvidia_smi_log> | |
<timestamp>Mon Mar 11 18:53:20 2019</timestamp> | |
<driver_version>410.78</driver_version> | |
<cuda_version>10.0</cuda_version> | |
<attached_gpus>1</attached_gpus> | |
<gpu id="00000000:04:00.0"> | |
<product_name>Quadro P2000</product_name> | |
<product_brand>Quadro</product_brand> |
This file contains hidden or 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
import yaml | |
from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter | |
VERSION = '0.1.0' | |
# Docker image, arch, variant, os | |
ARCH_LIST = [ | |
('arm', 'arm', 'v6', 'linux'), | |
('armhf', 'arm', 'v7', 'linux'), |
This file contains hidden or 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
import time | |
from json import dumps | |
from requests import Session | |
PLEX_URL = 'http://plex.asdf.asdf:32400' | |
PLEX_LATENCY_METRIC_ID = 2 | |
CACHET_URL = 'https://status.asdf.asdf' | |
CACHET_API_KEY = 'asdfasdfasdf' |
This file contains hidden or 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 | |
echo "[" | |
du -bs "$@" | awk '{if (NR!=1) {printf ",\n"};printf " { \"directory_size_bytes\": "$1", \"path\": \""$2"\" }";}' | |
echo | |
echo "]" |
This file contains hidden or 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
<h1>Countdown Clock</h1> | |
<div id="clockdiv"> | |
<div> | |
<span class="days"></span> | |
<div class="smalltext">Days</div> | |
</div> | |
<div> | |
<span class="hours"></span> | |
<div class="smalltext">Hours</div> | |
</div> |
This file contains hidden or 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
____ _ _ ____ _ | |
| _ \(_)_ __| |_ _ _ / ___|__ _ (_)_ _ _ __ | |
| | | | | '__| __| | | | | / _` || | | | | '_ \ | |
| |_| | | | | |_| |_| | |__| (_| || | |_| | | | | | |
|____/|_|_| \__|\__, |\____\__,_|/ |\__,_|_| |_| | |
|___/ |__/ | |
__________________________________________________ | |
General Information |
This file contains hidden or 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
10.0.10.3 - - [19/Dec/2017:21:56:34 -0800] "GET /get_current_activity_instance?rating=6.8&transcode_width=&stream_bitrate=2579&bandwidth=5681&optimized_version=0&audio_bitrate_mode=&parent_rating_key=8092&rating_key=8094&platform_version=3.0&thumb=%2Flibrary%2Fmetadata%2F8094%2Fthumb%2F1511830907&title=Don%27t+Be+Afraid+of+the+Dark&video_codec_level=31&tagline=&transcode_hw_decode=&audio_sample_rate=44100&user_rating=&platform=Samsung&stream_video_ref_frames=3&location=wan&transcode_container=&audio_channel_layout=stereo&subtitle_codec=&is_home_user=0&transcode_hw_encode_title=&stream_container_decision=direct+play&audience_rating=&full_title=American+Horror+Story+-+Don%27t+Be+Afraid+of+the+Dark&ip_address=98.207.160.3&subtitles=0&stream_subtitle_language=&channel_stream=0&video_bitrate=2579&is_allow_sync=0&stream_video_bitrate=2579&summary=Ally%2C+Ivy+and+Oz+meet+the+new+neighbors.+Kai+runs+for+city+council.+Detective+Samuels+investigates+a+murder.+A+blackout+terrorizes+Ally.&stream_audio_decision=direct+pla |
This file contains hidden or 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
root@netbox:/opt# ln -sfn netbox-2.1.5/ netbox | |
root@netbox:/opt# cd netbox | |
root@netbox:/opt/netbox# ./upgrade.sh | |
Running NetBox upgrade as root, press any key to continue or ^C to cancel | |
Cleaning up stale Python bytecode (find . -name "*.pyc" -delete)... | |
Updating required Python packages (pip3 install -r requirements.txt --upgrade)... | |
Requirement already up-to-date: cffi>=1.8 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 1)) | |
Requirement already up-to-date: cryptography>=1.8 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 2)) | |
Requirement already up-to-date: Django>=1.11 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 3)) | |
Requirement already up-to-date: django-cors-headers>=2.0 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 4)) |
This file contains hidden or 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 | |
mkdir /opt/filebot || echo "You need to run this script as a user with write permissions to /opt" && exit 1 | |
cd /opt/filebot | |
/bin/sh -xu <<< "$(curl -fsSL https://raw.githubusercontent.com/filebot/plugins/master/installer/portable.sh)" |