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
Because PowerMizer settings in NVIDIA X Server Settings doesn't persist across sessions, | |
attempts to overclock can become a nuisance. | |
The following documents the three CLI settings to modify the Preferred Mode as desired: | |
# Auto: | |
nvidia-settings -a [gpu:0]/GPUPowerMizerMode=2 | |
# Adaptive: | |
nvidia-settings -a [gpu:0]/GPUPowerMizerMode=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
http://onhub.here/api/v1/status | |
http://onhub.here/api/v1/diagnostic-report | |
http://onhub.here/api/v1/welcome-mat | |
http://onhub.here/api/v1/connected-devices | |
http://onhub.here/api/v1/get-attestation-information | |
http://onhub.here/api/v1/get-endorsement-information |
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 EscapeURL() { | |
# Escape the given URL and return it. | |
param ( | |
[Parameter()] | |
[string] $URL_To_Escape | |
) | |
return [uri]::EscapeDataString($URL_To_Escape) | |
} |
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
for f in *.mp4; do ffmpeg -vn -acodec copy $f.aac -i $f; done |
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
# Credit for script to Sebastian Piskorski on Stack Overflow: | |
# https://stackoverflow.com/a/39622947/563231 | |
du -a | cut -d/ -f2 | sort | uniq -c | sort -nr |
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
/* Ctrl+Right Mouse button loops holding down Right Mouse button until either W or S are pressed. | |
Useful with certain boring Minecraft activities that have a person standing still and holding Right Mouse | |
for extended periods. Moving forward or backwards (W or S respectively) will stop the loop. | |
Replacing "RButton" with "LButton" will change Right Mouse held down with Left Mouse. | |
*/ | |
^RButton:: |
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
DebugLogger(logText, debugLevel:="DEBUG") { | |
; Debug logging functionality for AutoHotkey (AHK). | |
; Creates one log file per day, and appends date/time to each log line. | |
; Uses debug levels: DEBUG, INFO, WARNING, ERROR, CRITICAL. | |
FormatTime, CurrentDate,, yyyy-MM-dd | |
FormatTime, CurrentDateTime,, yyyy-MM-dd hh:mm:ss | |
IfNotExist, .\log\ | |
FileCreateDir, .\log\ |
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
Public Const vbDoubleQuote As String = """" 'represents 1 double quote (") | |
Public Const vbSingleQuote As String = "'" 'represents 1 single quote (') |
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 columnLetterToNumber(letter) As Long | |
' Convert a given column letter into the corresponding column number. | |
columnLetterToNumber = Range(letter & 1).Column | |
End Function |
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
import os | |
__location__ = os.path.realpath( | |
os.path.join(os.getcwd(), os.path.dirname(__file__))) | |
f = open(os.path.join(__location__, 'example.jpg')) |
NewerOlder