View ww3_slide_helper.akh
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
; This modifies the behavior after slide, helps to continue sprinting after sliding. | |
; You can still press crouch manually while sliding to keep crouched after slide. | |
; You need to edit the key of slide (mine is LAlt) and maybe Space to jump ?. | |
; This is AutoHotkey v2 syntax | |
; All the close stuff is made to let Steam detect when the "game" has exit, which is the autohotkey process handle now. | |
~LAlt::{ | |
If (GetKeyState("LAlt", "P") && GetKeyState("CapsLock", "P") && WinActive("ahk_exe WW3-Win64-Shipping.exe")){ | |
Sleep 200 | |
Send "{Space down}" |
View asseto_corsa_x360_settings.txt
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
Speed Sensitivity=80% | |
Steering Speed=100 | |
Gamma=2.4 | |
Filter=0.82 | |
Deadzone=0.23 |
View visitors.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 | |
# gives you accounting for unique visitors | |
cat $1 | cut -d" " -f1 | sort | uniq | wc -l |
View userChrome.css
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
hbox.titlebar-buttonbox { | |
appearance: none !important; | |
} | |
toolbarbutton.titlebar-button { | |
border-radius: 0px !important; | |
min-height: 45px !important; | |
} |
View f4_close_windows_and_logout_kde_plasma
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 | |
xdotool getwindowfocus getwindowname | \ | |
grep "Plasma" && \ | |
qdbus org.kde.ksmserver /KSMServer logout 1 0 1 || \ | |
xdotool getwindowfocus windowclose |
View thread_kill.py
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 ctypes | |
def terminate_thread(thread): | |
"""Terminates a python thread from another thread. | |
:param thread: a threading.Thread instance | |
""" | |
if not thread.is_alive(): | |
return |
View compare_images.py
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 io | |
from PIL import Image | |
import numpy as np | |
def countDiff(img1, img2): | |
s = 0 | |
if img1.size != img2.size or img1.getbands() != img2.getbands(): | |
return -1 |
View ssh-persistent-tunnel.service
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
#Template SystemD service for a auto healing (reverse) SSH tunnel. | |
#Place this to /etc/systemd/system/ folder. | |
#Edit all values inside <> | |
#/etc/systemd/system/ssh-persistent-tunnel.service | |
#Edit the ports, remote user+host, and the key file. | |
#In the authorized_keys file on the other system, use something like this: | |
#<restrict,command="echo 'No Commands Allowed.'",port-forwarding,permitopen="localhost:22",permitlisten="localhost:5000"> | |
[Unit] | |
Description=SSH Persistent Tunnel |
View steam_launch_params_for_games_without_admin
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
; Steam launch params do not works if you don't include %command%, which represents the original launch arguments, ie: steam://rungameid/391540/ | |
; If you remove the "" quotes and the start, you can't remove original cmd screen. That's why we use cmd + start, when cmd returns start, closes becase /C | |
cmd /min /C "set __COMPAT_LAYER=RunAsInvoker && start "" %command%" |
View javascript_bottom_alert.js
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
window.onscroll = function() { | |
// @var int totalPageHeight | |
var totalPageHeight = document.body.scrollHeight; | |
// @var int scrollPoint | |
var scrollPoint = window.scrollY + window.innerHeight; | |
// check if we hit the bottom of the page | |
if(scrollPoint >= totalPageHeight) |
NewerOlder