Skip to content

Instantly share code, notes, and snippets.

View jlcvp's full-sized avatar

Leonardo "Leu" Pereira jlcvp

View GitHub Profile
@jlcvp
jlcvp / youtubeshortsremover.js
Last active November 13, 2023 19:44
[Greasemonkey] Remove youtube shorts section
// ==UserScript==
// @name Youtube Shorts close button
// @include https://youtube.com
// @version 1
// @grant GM_addStyle
// ==/UserScript==
setInterval(() => {
// find all elements by tag name
@jlcvp
jlcvp / 98_1.json
Created July 27, 2023 18:34
98_1.json
This file has been truncated, but you can view the full file.
{
"imageInfo": {
"type": "CHS",
"name": "98_1",
"format": "PC1200K",
"hash": "0ea62268e4ae09bf398e82f3200c0d8f",
"checksum": 124363079,
"cylinders": 80,
"heads": 2,
"trackDefault": 15,
@jlcvp
jlcvp / otxserver-new-463-gist-1.lua
Created September 26, 2017 13:36
otxserver-new-463-gist-1
-- Internal Use
STONE_SKIN_AMULET = 2197
ITEM_STORE_INBOX = 26052
GOLD_POUNCH = 26377
-- No move items with actionID 8000
-- Players cannot throw items on teleports if set to true
local blockTeleportTrashing = true
@jlcvp
jlcvp / GVT AutoLogin.js
Created July 28, 2015 19:50
Powerbox GVT GreaseMonkey Login form fill script
// ==UserScript==
// @name autoLoginGVTModem
// @namespace autoLoginGVTModem
// @include http://192.168.25.1/0.1/gui/
// @version 1
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @grant GM_addStyle
// ==/UserScript==
/*- The @grant directive is needed to work around a major design
private void setListeners(View rootView) {
if(rootView instanceof ViewGroup) {
ViewGroup vg = ((ViewGroup)rootView);
for (int i = 0; i < vg.getChildCount(); i++) {
setListeners(vg.getChildAt(i));
}
}
else
{
@jlcvp
jlcvp / Decoder.java
Last active August 29, 2015 14:23
ZXing Decoder Snippet
package com.example.leonardo.zxing;
import android.graphics.Bitmap;
import com.google.zxing.BarcodeFormat;
import com.google.zxing.BinaryBitmap;
import com.google.zxing.ChecksumException;
import com.google.zxing.FormatException;
import com.google.zxing.LuminanceSource;
import com.google.zxing.MultiFormatReader;
@jlcvp
jlcvp / PostDrain
Last active August 29, 2015 14:04
/*
The MIT License (MIT)
Copyright (c) 2014 sinfonier-project
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
/*
The MIT License (MIT)
Copyright (c) 2014 sinfonier-project
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