Skip to content

Instantly share code, notes, and snippets.

View garrappachc's full-sized avatar
🐧
I use arch btw

Michał Garapich garrappachc

🐧
I use arch btw
View GitHub Profile
@garrappachc
garrappachc / noAds.js
Last active May 8, 2020 20:28
tf2center adblock fix
// ==UserScript==
// @name noads.js
// @namespace https://gist.githubusercontent.com/Garrappachc/ed61cb22e160cc2a6ac247b352950161/raw/44d44f12be88148a1cbc14617e205cacbb1035b3/noAds.js
// @description TF2Center adblock fix
// @include https://tf2center.com/lobbies
// @require https://gist.github.com/raw/2620135/checkForBadJavascripts.js
// @version 2
// @run-at document-start
// @grant GM_addStyle
// ==/UserScript==
~ lsusb -d 1532:0060 -v
Bus 002 Device 014: ID 1532:0060 Razer USA, Ltd
Couldn't open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
~ ls -lah /dev/input/by-id/
razem 0
drwxr-xr-x 2 root root 220 07-31 13:07 .
drwxr-xr-x 4 root root 560 07-31 13:07 ..
lrwxrwxrwx 1 root root 10 07-31 10:27 usb-04d9_USB_Keyboard-event-kbd -> ../event15
lrwxrwxrwx 1 root root 10 07-31 10:27 usb-04d9_USB_Keyboard-if02-event-mouse -> ../event16
lrwxrwxrwx 1 root root 9 07-31 10:27 usb-04d9_USB_Keyboard-if02-mouse -> ../mouse1
lrwxrwxrwx 1 root root 10 07-30 13:19 usb-150427026602_Lenovo_EasyCamera_200901010001-event-if00 -> ../event12
lrwxrwxrwx 1 root root 10 07-31 10:27 usb-FiiO_DigiHug_USB_Audio-event-if00 -> ../event14
lrwxrwxrwx 1 root root 10 07-31 13:07 usb-Razer_Razer_Lancehead_Tournament_Edition-event-mouse -> ../event17
@garrappachc
garrappachc / proxy.conf.json
Created February 10, 2020 11:53
proxy.conf.json
{
"/api": {
"target": "https://api.tf2pickup.pl",
"logLevel": "debug",
"changeOrigin": true,
"pathRewrite": {
"^/api": ""
}
},
"/socket.io": {