View RedirectWellKnownFolders.ps1
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
$username=( ( Get-WMIObject -class Win32_ComputerSystem | Select-Object -ExpandProperty username ) -split '\\' )[1] | |
$newPath = "D:\$($username)" | |
$key1 = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" | |
$key2 = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" | |
set-ItemProperty -path $key1 -name Desktop "$($newPath)\Desktop" | |
set-ItemProperty -path $key2 -name Desktop "$($newPath)\Desktop" | |
set-ItemProperty -path $key1 -name Pictures "$($newPath)\Pictures" | |
set-ItemProperty -path $key2 -name Pictures "$($newPath)\Pictures" | |
set-ItemProperty -path $key1 -name "My Pictures" "$($newPath)\Pictures" | |
set-ItemProperty -path $key2 -name "My Pictures" "$($newPath)\Pictures" |
View backup_sd.sh
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 | |
#Usage bash <(curl -Ls https://gist.githubusercontent.com/maciekish/dc1f9372916eacf06efe10aa6e9469cd/raw) | |
if [ `whoami` != 'root' ] | |
then | |
echo "You must be root to do this." | |
exit | |
fi | |
if [ -z "$1" ] |
View script-ending
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
M104 S0 | |
M140 S0 | |
G92 E1 | |
G1 E-1 F300 | |
G28 X0 Y0 | |
G1 X0 Y350 F9000; | |
G91 ;relative positioning | |
G1 Z50; move up | |
G90 ;absolute positioning | |
M106 P0 S0 |
View plexupgrade.sh
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
pkg=${pkg/\/share/""}#!/bin/bash | |
# crontab -e as admin on Qnap. | |
# https://gist.github.com/maciekish/a6e3dc65523c2b25ff312b8f7689fd1c/ | |
pkg=$(find /share/Media/plexmediaserver* | head -n 1) | |
localpkg=${pkg/\/share/""} | |
docker=$(which docker) | |
if [ -f "$pkg" ] | |
then |
View bigpicture.ahk
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
#SingleInstance, Force | |
#NoTrayIcon | |
;-----------------------------ABOUT------------------------------- | |
; This script switches audio devices and launches Big Picture Mode | |
;-----------------------------HOW TO------------------------------ | |
;- 1) Download NirCmd and run as admin to install to Win dir. - | |
;- http://nircmd.nirsoft.net/setdefaultsounddevice.html - | |
;- 2) Change Device names below to match your playback devices. - | |
;- 3) Change Steam path below to match where Steam is installed. - | |
;----------------------------------------------------------------- |
View Anet+A6_settings.inst.cfg
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
[general] | |
version = 4 | |
name = Anet A6_settings | |
definition = custom | |
[metadata] | |
setting_version = 5 | |
type = definition_changes | |
[values] |
View resetXcode.sh
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 | |
killall Xcode | |
xcrun -k | |
xcodebuild -alltargets clean | |
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache" | |
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang.$(whoami)/ModuleCache" | |
rm -rf ~/Library/Developer/Xcode/DerivedData/* | |
rm -rf ~/Library/Caches/com.apple.dt.Xcode/* | |
open /Applications/Xcode.app |
View InstallSendPdfToEvernote
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
tell application "Finder" | |
try | |
set appPath to (path to application "Evernote" as text) | |
on error | |
display dialog "Couldn't find Evernote. Is it installed?" | |
end try | |
try | |
set libPath to (path to library folder from user domain as text) | |
set newFolder to make new folder at libPath with properties {name:"PDF Services"} |
View alternative
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
[Aerowinx Precision Simulator - Layouts] | |
[Version 10.0.0] | |
[Layout 1] | |
title=Takeoff/Landing | |
screenX=0 | |
screenY=22 | |
screenW=1920 | |
screenH=1000 | |
dividerUpperX=0.7713542 |
NewerOlder