Skip to content

Instantly share code, notes, and snippets.

@HamousOnWheels
HamousOnWheels / reviveWacom.bat
Last active March 30, 2022 01:49
(BAT version) Reset crashed Wacom drivers
echo Reset crashed Wacom drivers and restore settings automatically (since they can get lost on stopping the service).
echo Tested with driver version 6.3.27-2. Run as admin. Restart your painting app after running the script.
cd %USERPROFILE%\Documents
"C:\Program Files\Tablet\Wacom\32\PrefUtil.exe" /backup WBackup.wacomprefs
net stop WTabletServicePro
net start WTabletServicePro
"C:\Program Files\Tablet\Wacom\32\PrefUtil.exe" /restore WBackup.wacomprefs
@phosphoer
phosphoer / BuildDefinition.cs
Last active July 22, 2024 19:52
Create build definition assets in Unity and build multiple platforms / builds with different scenes at once with the click of a button!
// The MIT License (MIT)
// Copyright (c) 2024 David Evans @festivevector
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF O
@Adam--
Adam-- / back key.bat
Created April 8, 2016 14:08
Windows batch files for useful Android ADB commands. Replace [device] with your device as listed from "adb devices" or remove the -s [device] entirely.
adb -s [device] shell input keyevent 4
@graphitemaster
graphitemaster / gist:f8e6666c48fbedf6e554
Last active October 7, 2024 07:07
Engine achievements
Achievement Engine/Game Why it's bad
storing world space positions in gbuffer STALKER, F.E.A.R. Depth buffer can be used to derive position saving a lot of memory bandwidth
uploaded texture upside down Various engines, mostly Quake derived. Difficult to debug with tools like apitrace, nsight, pix, renderdoc, etc
@Zehkul
Zehkul / Convert Script – README.md
Last active December 7, 2025 16:33
Script to quickly convert and crop videos from within mpv

#README:

This script for mpv intends to offer the fastest and simplest way to convert parts of a video—while you’re watching it and not really more work intensive than making a screenshot. A short demonstration: https://d.maxfile.ro/omdwzyhkoa.webm

##Installation:

You need:

  • yad (at least 0.26) (AUR)
@desandro
desandro / bower-logo.md
Last active December 30, 2021 23:11
Bower logo

In addition to awesome docs #228, Bower deserves a proper logo. See below for sketches. I'm curious if you think any of these are worth me putting more effort into.


Take a look at Yeoman right now.

Screen Shot 2013-02-19 at 4 43 10 PM

The other two entities have awesome logos. Bower's got to represent.

@opdude
opdude / SplitSpriteSheet.jsx
Created October 3, 2012 10:45
Photoshop script that splits a image up into squares and save the output to files
function callAction(xMax, yMax, width, height, origDoc)
{
var count = 0;
for(var y = 0; y < yMax; y++)
{
for (var x=0; x <xMax; x++) {
SelectAndCopy(x * width, y * height, width, height);
PasteToNewDocument(width, height);
SaveImage(count, origDoc);
CloseDoc();
@endolith
endolith / Has weird right-to-left characters.txt
Last active November 29, 2025 14:02
Unicode kaomoji smileys emoticons emoji
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶