Skip to content

Instantly share code, notes, and snippets.

View raymelon's full-sized avatar
📺
vibe coding

Raymel Francisco raymelon

📺
vibe coding
View GitHub Profile
if (new URLSearchParams(window.location.search).get('portal')) {
// <create start portal>
// Create portal group to contain all portal elements
const startPortalGroup = new THREE.Group();
startPortalGroup.position.set(SPAWN_POINT_X, SPAWN_POINT_Y, SPAWN_POINT_Z);
startPortalGroup.rotation.x = 0.35;
startPortalGroup.rotation.y = 0;
// Create portal effect
This file has been truncated, but you can view the full file.
[
{
"profile": {
"isPrivate": false,
"isVerified": false,
"followRatio": "1/40",
"location": "",
"name": "Jagari Karthik-167-M-040",
"isBlueVerified": false,
"biography": "",
@raymelon
raymelon / YahooPrices.gs
Created November 10, 2024 11:45 — forked from fcfort/YahooPrices.gs
Google App Scripts for querying Yahoo! finance API ticker prices
var _ = Underscore.load();
/*
* Queries Yahoo finance API for historical prices for a given list of tickers
*
* @param {Array} tickers A list of tickers
* @param {Date} date Date to query for. Must be a date the markets were open
* @return A map of ticker to adjusted close prices
*/
@raymelon
raymelon / semantic-commit-messages.md
Created September 12, 2024 01:06 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@raymelon
raymelon / how_to_get_telegram_chat_id.md
Created August 8, 2024 18:33 — forked from nafiesl/how_to_get_telegram_chat_id.md
How to get Telegram Bot Chat ID

How to get Telegram Bot Chat ID

Create a Telegram Bot and get a Bot Token

  1. Open Telegram application then search for @BotFather
  2. Click Start
  3. Click Menu -> /newbot or type /newbot and hit Send
  4. Follow the instruction until we get message like so
    Done! Congratulations on your new bot. You will find it at t.me/new_bot.
    
@raymelon
raymelon / windows-update-services-permission-denied-FIX.md
Created July 18, 2024 19:06
windows-update-services-permission-denied-FIX

From https://learn.microsoft.com/en-us/answers/questions/487105/unable-to-set-in-automatic-the-windows-update-at-s

Steps to return wuauserv Registry Permissions to normal:

  1. Activate the default Administrator account (net user administrator /active:yes) and sign in with it
  2. Run Regedit with administrator rights
  3. Navigate to Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wuauserv
  4. Right click on wuauserv and go to Permissions
  5. Click on Advanced
  6. Click on "Change" to change the Owner to Administrator and click Apply (SYSTEM is the default owner)
@raymelon
raymelon / google-form-to-tg.gs
Created July 13, 2024 12:51 — forked from HirbodBehnam/google-form-to-tg.gs
A google script to send submitted form results to a telegram bot
// Inspired by https://github.com/Iku/Google-Forms-to-Discord
const BOT_API = "YOUT_BOT_API";
const CHAT_ID = "CHAT_ID";
function onSubmit(e) {
var form = FormApp.getActiveForm();
var allResponses = form.getResponses();
var latestResponse = allResponses[allResponses.length - 1];
var response = latestResponse.getItemResponses();
var result = "";
@raymelon
raymelon / disable_verification_scripts_on_git_commit.bash
Last active January 23, 2024 10:08
disable verification scripts on git commit (like lint-staged and husky)
git commit -m "commit message" --no-verify
# use --no-verify flag
#
# lint-staged: https://github.com/lint-staged/lint-staged
# husky: https://github.com/typicode/husky
#
# example of lint-staged on package.json:
#
# {
@raymelon
raymelon / publickey-git-error.markdown
Created December 16, 2023 14:20 — forked from adamjohnson/publickey-git-error.markdown
Fix "Permission denied (publickey)" error when pushing with Git

"Help, I keep getting a 'Permission Denied (publickey)' error when I push!"

This means, on your local machine, you haven't made any SSH keys. Not to worry. Here's how to fix:

  1. Open git bash (Use the Windows search. To find it, type "git bash") or the Mac Terminal. Pro Tip: You can use any *nix based command prompt (but not the default Windows Command Prompt!)
  2. Type cd ~/.ssh. This will take you to the root directory for Git (Likely C:\Users\[YOUR-USER-NAME]\.ssh\ on Windows)
  3. Within the .ssh folder, there should be these two files: id_rsa and id_rsa.pub. These are the files that tell your computer how to communicate with GitHub, BitBucket, or any other Git based service. Type ls to see a directory listing. If those two files don't show up, proceed to the next step. NOTE: Your SSH keys must be named id_rsa and id_rsa.pub in order for Git, GitHub, and BitBucket to recognize them by default.
  4. To create the SSH keys, type ssh-keygen -t rsa -C "[email protected]". Th