Skip to content

Instantly share code, notes, and snippets.

View Scrxtchy's full-sized avatar

Scratch Scrxtchy

View GitHub Profile
@Scrxtchy
Scrxtchy / index
Last active August 29, 2015 14:25
GarryMod
<?php
// A Steam API Key is required so as to be able to contact steam and get a users profile image and name
// You can get a Steam API Key by visiting http://steamcommunity.com/dev/apikey
// Don't worry about the web address, it won't have any effect so just type in any web site
// Once you have your steam API Key simply paste the key below. (Make sure the quotation marks are still there or else it won't work)
$SteamAPIKey = "";
// Don't edit any of the PHP stuff here or else you may break the script
@Scrxtchy
Scrxtchy / acapela_DL_Button.user.js
Created October 17, 2015 15:50
acapela download | Press Listen to get URL
// ==UserScript==
// @name Acapela DL Button
// @namespace Scratch
// @description Puts in a direct link download button
// @include https://acapela-box.com/AcaBox/index.php
// @version 1
// @grant none
// ==/UserScript==
@Scrxtchy
Scrxtchy / rgb.ahk
Created January 17, 2016 07:26
Inputs Hex values into windows colour picker
;It's pretty spaghetti
hex2r(CR)
{
H := InStr(CR, "0x") ? CR : (InStr(CR, "#") ? "0x" SubStr(CR, 2) : "0x" CR)
r:= (H & 0xFF0000) >> 16
return r
}
hex2g(CR)
{
H := InStr(CR, "0x") ? CR : (InStr(CR, "#") ? "0x" SubStr(CR, 2) : "0x" CR)
@Scrxtchy
Scrxtchy / 1-backgroundScriptsAPIBridge.js
Last active March 18, 2016 10:35
Bing Translator API Bridge
if (window.browser !== undefined) {
(function () {
Object.defineProperty(window, "chrome", {
get: delayInitchrome,
configurable: true,
enumerable: true
});
function delayInitchrome() {
var wrapchrome = Object.defineProperties({}, {
steam.styles
{
colors
{
// colors section can include colors in "R G B A" form, or references to already defined colors;
// it can also include just general settings controls can pull from for extra customization
// FORMAT THE FOLLOWING VALUES TO SET YOUR CUSTOM COLOURS!
baseBackground="27 27 27 255"
@Scrxtchy
Scrxtchy / read.md
Last active August 12, 2016 21:33
tu.sh

#tu.sh Bascially it's a bunch of spaghetti I made in an afternoon.
It will only shutdown the server and update when the new build is publically avaliable.

##Usage ./tu.sh Check for a force update file
./tu.sh online Check build id with lastest public version

##Setup It requires jq, this is on apt-get or whatever, but not the required versions, download it from github

@Scrxtchy
Scrxtchy / selectionToPercentF.jsx
Created May 24, 2016 12:21
Photoshop region to percentageOfOne as float
str = activeDocument.selection.bounds.toString();
str = str.replace(/ px/g,""); //" px"要らないので削除
array = str.split(","); //","で分割
var w = app.activeDocument.width.toString().replace(' px', '');
var h = app.activeDocument.height.toString().replace(' px', '');
str = parseFloat(array[0] /w) + "f," + // x
parseFloat(array[1] /h) + "f," + // y
parseFloat((Number(array[2]) ).toString() /w)+ "f," + //width
parseFloat((Number(array[3]) ).toString() /h)+ "f"; //height
[{
executables: {
win32: ["100orange.exe"]
},
name: "100% Orange Juice"
}, {
executables: {
win32: ["20xx.exe"]
},
name: "20XX"
@Scrxtchy
Scrxtchy / vitawavetype.md
Last active July 22, 2017 10:22
PSVita m_waveType

Gallery View

<_m_waveType>0</m_waveType> <_m_waveType>0</m_waveType>

<_m_waveType>1</m_waveType> <_m_waveType>1</m_waveType>

<_m_waveType>2</m_waveType> &lt;_m_waveType&gt;2

@Scrxtchy
Scrxtchy / vitawavetype.gallery.md
Last active September 14, 2021 05:17
PSVita m_waveType Gallery