- htttp://www.hugovmonteiro.net
- https://orcid.org/0009-0006-7405-6746
- hvmonteiro
- https://buymeacoffee.com/hvmonteiro
- https://dev.to/hvmonteiro
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 | |
USERID="12345" | |
TRACKERS_FILE="/tmp/showrss.info" | |
TRANSMISSION_BIN="/storage/.kodi/addons/service.downloadmanager.transmission/bin/transmission-remote" | |
TRACKERS_LIBFILE="/var/media/storage/backups/get-showrss-info.data" | |
curl -s 'http://showrss.info/user/${USERID}.rss?magnets=true&namespaces=true&name=null&quality=null&re=null' | grep -o '<enclosure url="[^"]*' | grep -o '[^"]*$' > "$TRACKERS_FILE" | |
#sed 's/&/\\&/g;s/;/\\;/g' | |
touch "$TRACKERS_LIBFILE" |
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/sh | |
# Originaly based on script https://community.wd.com/t/guide-auto-removal-of-downloads-from-transmission-2-82/93156 | |
# adapted for OpenELEC Kodi | |
# port, username, password | |
SERVER="9091 --auth transmission:transmission" | |
# use transmission-remote to get torrent list from transmission-remote list | |
# use sed to delete first / last line of output, and remove leading spaces |
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
'Outlook VB Macro to Unread, CleanUp Folder & subFolders | |
' and Archive Selected items | |
Private Sub CleanUpAllFolders() | |
Dim objExpl As Explorer | |
Set objExpl = ActiveExplorer | |
objExpl.CommandBars.ExecuteMso ("ThreadCompressFolderRecursive") | |
End Sub |
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
[global_config] | |
enabled_plugins = TerminalShot, LaunchpadCodeURLHandler, APTURLHandler, Logger, MavenPluginURLHandler, LaunchpadBugURLHandler | |
title_font = Sans 10 | |
title_inactive_fg_color = "#ffffff" | |
title_transmit_bg_color = "#494949" | |
title_use_system_font = False | |
[layouts] | |
[[default]] | |
[[[child1]]] | |
parent = window0 |
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 | |
# | |
# Description: This script will setup a customized user console in Linux | |
# based on my gists (https://gist.github.com/hvmonteiro) | |
# - .bashrc | |
# - .jshintrc | |
# - .LS_COLORS | |
# - .lessfilter | |
# - .config/terminator/config | |
# - .ssh/config |
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
echo '<h1>hello, world</h1>' |firefox "data:text/html;base64,$(base64 -w 0 <&0)" |
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 mdview { | |
markdown "$1" | lynx -stdin | |
} |
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
# Copy/paste directly into bash shell or source a file with the function below: | |
# --- cut here --- | |
is_tcp_port_active () { | |
if [ "$1" == "" -o "$2" == "" ]; then | |
echo -e "\n usage: is_tcp_port_active <hostname> <port>\n" | |
return 1 | |
fi | |
HOST=$1; | |
PORT=$2; | |
echo "$HOST:$PORT"; |
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
const download = require('electron-download'); | |
var downloadVersion = '1.4.15'; | |
if (process.argv > 2) { | |
var downloadVersion = process.argv[2]; | |
console.log('Using specified version', downloadVersion, '...'); | |
} else { | |
console.log('Version', process.argv[2], 'using default', downloadVersion, '...'); | |
} |
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
# | |
# WARNING: This configuration file is only suitable for usage in development environments on private networks, | |
# as it supresses and works around most information messages about SSH related security issues! | |
# | |
# Always authenticate with user 'root' | |
Host * | |
User root | |
# Automatically add remote host keys |
NewerOlder