See https://github.com/traefikturkey/onvoy/tree/master/proxmox for latest versions of the proxmox install scripts!
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
/** | |
* EXAMPLE: https://developers.google.com/calendar/api/quickstart/apps-script | |
* @see https://developers.google.com/calendar/api/v3/reference/events/list | |
* | |
* | |
* Sun rise and set API: https://sunrise-sunset.org/api | |
* | |
*/ | |
function populateCalSunRiseNSet() { |
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 | |
#sudo systemctl start bluetooth.service | |
connect() { | |
bluetoothstatus=`bluetooth | cut -c 13-` | |
if [ "$bluetoothstatus" == "off" ]; then | |
bluetooth on |
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
// ==UserScript== | |
// @name YouTube - Hide Live Chat By Default | |
// @namespace https://gist.github.com/lbmaian/94824cef728917a53d3c6e6ea885469c | |
// @downloadURL https://gist.github.com/lbmaian/94824cef728917a53d3c6e6ea885469c/raw/youtube-hide-livechat.user.js | |
// @updateURL https://gist.github.com/lbmaian/94824cef728917a53d3c6e6ea885469c/raw/youtube-hide-livechat.user.js | |
// @version 0.14 | |
// @description Hide live chat by default on live streams | |
// @author lbmaian | |
// @match https://www.youtube.com/* | |
// @exclude https://www.youtube.com/embed/* |
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 | |
# Based on script by | |
# Ian Thiele | |
# icthiele@gmail.com | |
# Which can be found here https://www.mythtv.org/wiki/H264_commercial_remover_and_remuxer | |
# | |
# Uses mythcommflag and mkvmerge to cut commercials out of h.264 encoded ts files | |
# Puts cut video into the workdir | |
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
# Flash the image onto a USB stick. | |
# - Replace `/path/to/xubuntu.iso` with the appropriate ISO image. | |
# - Replace `sdX` with the appropriate device node. | |
sudo dd if=/path/to/xubuntu.iso of=/dev/sdX conv=fdatasync status=progress bs=1M | |
# Boot into the USB stick and run the installer. | |
# You might need to boot into the PC's UEFI settings to do so. | |
# Make sure the install medium is botted in UEFI mode! | |
# On the new installation, run the following installers. |
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
function listen_soma() { | |
local playlist=$1 | |
local -a stations=('defcon' 'lush' 'fluid' 'poptron' 'subursbofgoa' 'beatblender' 'bootliquor' 'illstreet' 'thistle' 'metal' 'covers' 'cliqhop' 'dubstep' '7soul' 'seventies' 'u80s' 'reggae' 'secretagent' 'thetrip' 'sonicuniverse' 'bagel' 'indiepop' 'digitalis' 'folkfwd' 'n5md' 'groovesalad' 'synphaera' 'vaporwaves' 'deepspaceone' 'spacestation' 'dronezone' 'brfm' 'sf1033' 'scanner' 'sfinsf' 'missioncontrol' 'live' 'specials' 'gsclassic') | |
if [[ " ${stations[*]} " =~ " ${playlist} " ]]; then | |
mplayer -playlist "http://soma.fm/"${playlist}".pls" | |
else | |
echo "station not in stationlist: ${stations[*]}." | |
fi | |
} |
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 | |
# Automatically skips songs you dont like | |
# Skipping a song decreases its score | |
# Playing it for >15 seconds increases it | |
# Songs are skipped randomly based on their score | |
# Location of database file | |
DBFILE=~/scripts/database |
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
#!/usr/bin/env bash | |
#------------------------------------------------------# | |
# This script was tested on Ubuntu 20.04 and newer # | |
# # | |
# This script cleans up the SQLite database, plaintext # | |
# files and uploaded files # | |
#------------------------------------------------------# | |
#-------------------------------------------------------------------------------------# |
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 | |
# get public IP, send Telegram notification if it changes from previous result | |
# run with cron | |
# */5 * * * * ~/myip.sh >/dev/null 2>&1 | |
# requires https://github.com/dschep/ntfy and a Telegram bot | |
file1="/tmp/ip1.txt" | |
file2="/tmp/ip2.txt" | |
touch $file2 |