Skip to content

Instantly share code, notes, and snippets.

View zisra's full-sized avatar
🪨
Kicking rocks

zisra

🪨
Kicking rocks
  • USA
  • 01:00 (UTC -05:00)
View GitHub Profile
const rows = document.querySelectorAll('#dataGridRight table tbody tr.listCell');
const result = [];
rows.forEach(row => {
const cells = row.querySelectorAll('td');
const title = cells[0].textContent.trim();
if(!cells[2]) return;
// claim_daily_login
const res = await fetch("https://gateway.venge.io/?request=request_ads_coin", {
"headers": {
"accept": "*/*",
"accept-language": "en-US,en;q=0.9",
"content-type": "application/x-www-form-urlencoded",
"sec-fetch-mode": "cors",
"sec-fetch-site": "same-site"
},
"referrer": "https://venge.io/",
function getNumber(el) {
const value = el.querySelector('[data-e2e="video-views"]').textContent;
if (value.endsWith("K")) {
return parseInt(value.replace("K", "")) * 1_000;
} else if (value.endsWith("M")) {
return parseInt(value.replace("M", "")) * 1_000_000;
}
}
echo -e "
127.0.0.1 marriott.com
" | sudo tee -a /etc/hosts >/dev/null
@zisra
zisra / eloCalculator.ts
Last active October 23, 2023 01:19
Calculate ELO
const K_FACTOR = 20;
const RATING_SCALING = 400;
interface Player {
isWin: boolean;
elo: number;
}
interface Result {
firstPlayer: Player;
const lessonUUID = window.location.pathname.split("/")[2];
const sleep = (m) => new Promise((r) => setTimeout(r, m));
fetch(
`https://api.garbanzo.io/api/assignment/${lessonUUID}?localized_date_time=2023-09-14%2011:31:06`,
{
headers: {
authorization: localStorage.getItem("auth._token.local"),
},
method: "GET",
@zisra
zisra / googleClassroom.js
Created September 9, 2023 11:39
Remove Google Classroom classes
window.onload = () => {
const blackList = [
"Math",
"Science",
];
const observer = new MutationObserver((mutationsList) => {
for (const mutation of mutationsList) {
if (mutation.type === "childList" && mutation.addedNodes.length > 0) {
const matchingElements = Array.from(
@zisra
zisra / weather.ino
Last active August 11, 2023 14:39
Weather arduino
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#include <WiFiClientSecure.h>
#include <Arduino_JSON.h>
#include <LedControl.h>
#include <NTPClient.h>
#include <WiFiUdp.h>
int latitude = 48.83;
int longitude = 10.09;
@zisra
zisra / elementRegex.md
Last active June 5, 2023 14:44
A regex that removes a specific HTML element from a string

]*&gt;([\s\S]*?)&lt;\/element-name&gt;

@zisra
zisra / workbench.colorCustomizations.json
Created April 28, 2023 18:51 — forked from jacklorusso/workbench.colorCustomizations.json
A list of all Visual Studio Code customizable colors, grouped by UI region. Copy and paste into User Settings (comments are allowed) to tweak an existing theme or work on your own.
"workbench.colorCustomizations": {
// Contrast Colors - The contrast colors are typically only set for high contrast themes. If set, they add an additional border around items across the UI to increase the contrast.
"contrastActiveBorder": "",
"contrastBorder": "",
// Base Colors
"focusBorder": "",
"foreground": "",
"widget.shadow": "",
"selection.background": "",
"descriptionForeground": "",