Skip to content

Instantly share code, notes, and snippets.

@seeker
seeker / AutoHotkey.ahk
Created June 21, 2012 11:06
Toggle selected window between transparent / opaque
; Toggle selected window between transparent / opaque (alt + shift + t)
n=0
!+t::
WinGetActiveTitle, T
if n=0
{
WinSet, Transparent, 222, %T%
n=1
Exit
@seeker
seeker / NET recompile.bat
Created June 21, 2012 11:18
Force a .NET recompile, instead of wating for it to run in the background
C:
cd %WINDIR%\Microsoft.NET\Framework\
for /d %%D IN (*) DO .\%%D\ngen.exe executeQueuedItems
cd %WINDIR%\Microsoft.NET\Framework64\
for /d %%D IN (*) DO .\%%D\ngen.exe executeQueuedItems
pause
@seeker
seeker / Eye char roll.au3
Created July 18, 2012 19:24
Script to automate stats rolling when creating a new avatar in E.Y.E: Divine Cybermancy
Opt("MouseCoordMode",0) ; Coordiantes relative to window
Opt("PixelCoordMode",0) ; Coordiantes relative to window
; Script to roll stats when creating a avatar in E.Y.E Divine Cybermancy
;
; Set game resolution to 1600x900 and windowed mode for the script to work,
; or correct the cordinates
; 1235, 183 STR
; 1235, 205 PSI
@seeker
seeker / autohotkey.ahk
Created September 30, 2012 09:58
Toggle all windows between semi-transparent / opaque
n=0
!+t::
Titles := GetWindows()
if n=0
{
loop, parse, Titles, "`n"
{
if(A_LoopField != "Start" and A_LoopField != "iTunes") ;don't mess up the start button, also iTunes does not like transparency
{
@seeker
seeker / RaidTime filter.au3
Created October 21, 2014 17:54
Save your ignored items on raidtime.net
Local $windowHandle = WinActivate ("RaidTime")
If $windowHandle == 0 then
MsgBox ( 0, "Ooops", "Could not find RaidTime tab or window")
Exit
EndIf
; add items to filter here and separate with |
; no leading or trailing spaces
@seeker
seeker / Logger.xml
Created August 7, 2016 19:52
Eclipse SLF4J Logger template
<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="false" context="java" deleted="false" description="Create SLF4J logger" enabled="true" name="logger">private static final Logger LOGGER = LoggerFactory.getLogger(${enclosing_type}.class);</template></templates>
@seeker
seeker / update-check.sh
Last active August 22, 2016 06:34
Check for updates using apt
#!/bin/sh
sudo apt-get update
sudo apt-get upgrade --dry-run
@seeker
seeker / remove-proxmox-nag.sh
Created October 25, 2018 18:04
Remove the Proxmox nag dialog
#!/bin/sh
sed -i.bak "s/data.status !== 'Active'/false/" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
#!/bin/sh
echo 'Installing dependencies...'
sudo apt install python3-pip python3-dev python3-pkgconfig libssl-dev openssl libacl1-dev libacl1 build-essential -y
echo 'Installing borg backup system wide...'
sudo pip3 install borgbackup
@seeker
seeker / gist:ca0776146bac9e8db5af24928fadd566
Created June 13, 2023 08:37
Move uncommitted changes to another device
# Use the below at your own risk, as you may lose changes with incorrect resets (or it will require digging in the reflog to recover commits).
# WIP_feature-branch contains a single commit with uncommited changes
# WIP branch needs to be exactly one commit ahead of the fetaure branch
git checkout feature-branch
git reset --hard origin/WIP_feature-branch
git reset --soft origin/feature-branch
git reset HEAD