Skip to content

Instantly share code, notes, and snippets.

View janasco's full-sized avatar
💭
I may be slow to respond.

Jaymar Anasco janasco

💭
I may be slow to respond.
View GitHub Profile
@janasco
janasco / clouflare-worker-static-page-backblaze.js
Created October 26, 2023 08:41 — forked from maltechx/clouflare-worker-static-page-backblaze.js
Host a static page on Backblaze and distribute it via Cloudflare and their Workers.
// Imprved the script from this blog https://www.grahn.io/posts/2020-02-08-s3-vs-b2-static-web-hosting/
// Backblaze Url
const baseURL = "https://f000.backblazeb2.com/file/yourbucket"
addEventListener('fetch', event => {
event.respondWith(handleRequest(event))
})
async function handleRequest(event) {
@janasco
janasco / AnyDesk-Reset.cmd
Created August 3, 2023 09:46
AnyDesk Reset
@echo off & setlocal enableextensions
title Reset AnyDesk
reg query HKEY_USERS\S-1-5-19 >NUL || (echo Please Run as administrator.& pause >NUL&exit)
chcp 437
call :stop_any
del /f "%ALLUSERSPROFILE%\AnyDesk\service.conf"
del /f "%APPDATA%\AnyDesk\service.conf"
copy /y "%APPDATA%\AnyDesk\user.conf" "%temp%\"
rd /s /q "%temp%\thumbnails" 2>NUL
xcopy /c /e /h /r /y /i /k "%APPDATA%\AnyDesk\thumbnails" "%temp%\thumbnails"
@janasco
janasco / README.md
Last active August 18, 2023 14:24 — forked from marcpinet/README.md
Activate Sublime Text 4 Build 4152 and below for ever (also maybe above, but not yet tried)

Activate Sublime Text (for ever)

  1. Go to https://hexed.it/
  2. Click Open File in the top left corner and select sublime_text.exe
  3. Press CTRL + F or on the Search for bar in the left panel and look for: 80 78 05 00 0f 94 C1
  4. Now in the editor, click on the first byte (80) and start replacing each byte by: C6 40 05 01 48 85 C9
  5. Finally, in the top left corner again, click on Save as and replace the old executable file with the newly created one.

Enjoy an Unlimited User License!

@janasco
janasco / Gmail data into Sheet with Google Apps Script
Created February 3, 2023 06:34 — forked from davemoz/Gmail data into Sheet with Google Apps Script
Google Apps Script to pull data from transaction emails in Gmail, and insert into Spreadsheet
/*
* This Google Apps Script works by simply scraping info from transaction emails
* sent to your Gmail account.
* My credit cards are Capital One, Chase, and Bank of America so the email-scraping
* regexes will need to change to work with the format of your emails.
*
* Once installed, you'll need to set a monthly trigger to run the createMonthlySheet()
* function, but then it will run automatically and sort your transactions into monthly sheets.
*
* Any reference to the getActiveSpreadsheet() method will create a new sheet
### Keybase proof
I hereby claim:
* I am jaymaranasco on github.
* I am janasco (https://keybase.io/janasco) on keybase.
* I have a public key whose fingerprint is 4AA4 3CFA C472 ED99 A17B CA57 89BB 44D5 D156 8A28
To claim this, I am signing this object: