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/sh | |
# | |
#.Distributed under the terms of the GNU General Public License (GPL) version 2.0 | |
# | |
# script for sending updates to cloudflare.com | |
#.based on Ben Kulbertis cloudflare-update-record.sh found at http://gist.github.com/benkulbertis | |
#.and on George Johnson's cf-ddns.sh found at https://github.com/gstuartj/cf-ddns.sh | |
#.2016-2017 Christian Schoenebeck <christian dot schoenebeck at gmail dot com> | |
# CloudFlare API documentation at https://api.cloudflare.com/ | |
# |
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
choco outdated -r | ConvertFrom-Csv -Delimiter '|' -Header 'Package name', 'Current version', 'Available version', 'Pinned?' | Format-Table |
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/sh | |
# Reboots Plusnet Hub One | |
routerip="192.168.1.254" | |
pass="<PASSWORD>" | |
# Call index page, store the output, then parse out whatever is needed | |
page=$(curl -Ls "http://$routerip/index.cgi?active_page=9148" -H 'Cookie: rg_cookie_session_id=' -H 'Content-Type: application/x-www-form-urlencoded' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' -H 'Cache-Control: max-age=0' -H 'DNT: 1' --data 'active_page=9121' --cookie-jar cookies.txt) | |
posttoken=$(echo $page |grep post_token |awk 'BEGIN { FS = "\"post_token\" value=\"" } ; {print $2}'|awk 'BEGIN { FS = "\"" } ; {print $1}'|xargs) | |
requestid=$(echo $page |grep request_id |awk 'BEGIN { FS = "\"request_id\" value=\"" } ; {print $2}'|awk 'BEGIN { FS = "\"" } ; {print $1}'|xargs) |
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
git status --porcelain=2 | awk '{if($2==".T") {print "git checkout " $NF}}' | sh |
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" encoding="UTF-16"?> | |
<!-- | |
Pre-requisites: (see https://superuser.com/questions/745318/how-to-start-a-program-when-another-one-is-started) | |
Start and enter secpol.msc into the Run box | |
Navigate to Local Policies/Audit Policy | |
Double Click Audit process tracking and enable Success | |
--> | |
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> | |
<RegistrationInfo> | |
<Date>2019-09-30T12:39:02.4100122</Date> |
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" encoding="UTF-16"?> | |
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> | |
<RegistrationInfo> | |
<Date>2019-08-22T13:32:01.0996741</Date> | |
<Author>.\Ammaar.Limbada</Author> | |
<URI>\Ammaar.Limbada\Empty Standby List Scheduled Task</URI> | |
</RegistrationInfo> | |
<Triggers> | |
<TimeTrigger> | |
<Repetition> |
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
# Client Bridged / Client Mode / RelayD and IGMPProxy (It works) | |
# RelayD is to redirect packages and IGMP is for redirect IGMP packages | |
# Our network is 192.168.1.0/24 | |
# Steps: | |
# Configure WAN as static | |
# We should edit our wan iface and put static IP | |
uci set network.wan='interface' | |
uci set network.wan.proto='static' | |
uci set network.wan.ipaddr='192.168.1.239' # Main Network IP |
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
# Subtitle track number is usually the same for a whole series and usually for all encodes from a specific place | |
# Use this first to ascertain the track number | |
# find . -iname '*.mkv' -maxdepth 1 -exec sh -c "ffprobe -hide_banner -i '{}' 2>&1 | grep Subtitle | cut -d':' -f2 | cut -d'(' -f1 " \; | |
find . -iname '*.mkv' -maxdepth 1 -exec basename {} .mkv \; | xargs -I {} mkvextract tracks '{}.mkv' ${SUBTITLE_TRACK_NUMBER}:'{}.srt' |
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
ffprobe -hide_banner -i $mkvFile 2>&1 | grep -i subtitle | awk '{print $2}' | awk -F':' '{ print substr($2,1,1) }' |
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
<NotepadPlus> | |
<UserLang name="LogFile" ext="log"> | |
<Settings> | |
<Global caseIgnored="yes" /> | |
<TreatAsSymbol comment="no" commentLine="no" /> | |
<Prefix words1="no" words2="no" words3="no" words4="no" /> | |
</Settings> | |
<KeywordLists> | |
<Keywords name="Delimiters">[(0])0</Keywords> | |
<Keywords name="Folder+"></Keywords> |