Skip to content

Instantly share code, notes, and snippets.

View ChlodAlejandro's full-sized avatar
🐢
adoring this turtle

Chlod Aidan Alejandro ChlodAlejandro

🐢
adoring this turtle
View GitHub Profile
@ChlodAlejandro
ChlodAlejandro / mcafa.verno
Last active February 5, 2018 16:04
MentionChlod App for Android Version Number
4
@ChlodAlejandro
ChlodAlejandro / Dynamic Sidebar.html
Created June 25, 2018 15:00
A sidebar that will automatically snap to the top of the window to prevent being scrolled past. This is good for navigational menus that you want next to the content.
<!DOCTYPE html>
<html>
<head>
<title>Dynamic Sidebar Test</title>
<meta charset="utf-8">
<script>
var sidebarBounds;
function startup() {
window.scrollTo(0, 0);
ship = FerroStack
version = 1.7.2
description =
type = VAB
size = 3.52419806,45.4556885,4.06939316
steamPublishedFileId = 0
persistentId = 1382574565
rot = 0,0,0,0
missionFlag = Squad/Flags/hexagonCircles
vesselType = Debris
@ChlodAlejandro
ChlodAlejandro / dbserver-autorate.js
Last active December 5, 2019 12:29
A way to automatically rate teachers and staff on the DBServer.
/**
================= [HOW TO USE] =================
0. Obviously, go to the DBServer and login.
1. Open your Inspector using Ctrl + Shift + I
2. Open the "Console" tab in the inspector.
3. Copy all of the code in the bottom document.
4. Paste it in the input box of the console.
5. Run the code by pressing Enter (at the bottom
@ChlodAlejandro
ChlodAlejandro / PAGASABulletinScraper.js
Last active May 14, 2020 10:50
Scrapes the PAGASA Severe Weather Bulletin webpage and turns it into a usable JavaScript object.
"use strict";
/**
*
* PAGASA Severe Weather Bulletin Scraper
*
* @author Chlod Alejandro <chlod@chlod.net>
* @license Apache-2.0
* @copyright Copyright 2020 Chlod Alejandro
*
@ChlodAlejandro
ChlodAlejandro / ssh-gen.sh
Last active February 14, 2022 13:11
Generate an SSH key, delegate a subdirectory for it, and add it to your SSH agent. Uses ED25519.
#!/bin/bash
echo : Configure
echo
echo -n "Subpath: "
read SSHK_DIR < /dev/tty
echo -n "Comment: "
read SSHK_COM < /dev/tty
echo
if [ -z "$SSHK_DIR" ]
@ChlodAlejandro
ChlodAlejandro / ssh-gen.bat
Created January 16, 2021 07:55
Generate an SSH key, delegate a subdirectory for it, and add it to your SSH agent. Uses ED25519.
@echo off
echo : Configure
echo.
set /p SSHK_DIR="Subpath: "
set /p SSHK_COM="Comment: "
echo.
if "%SSHK_DIR%" == "" (
goto INVALID
)
@ChlodAlejandro
ChlodAlejandro / meetsack.js
Last active February 26, 2021 04:56
Get all Google Meet meeting attendees and given join times
if (window.gm_members == null)
window.gm_members = {};
var check = () => {
const now = Math.floor(Date.now() / 1000);
const curList = [];
document.querySelectorAll(".ZjFb7c").forEach(e => {
if (curList.includes(e.innerText))
return;
curList.push(e.innerText);
@ChlodAlejandro
ChlodAlejandro / template.html
Created January 31, 2021 02:15
Baseline HTML file.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Website</title>
@ChlodAlejandro
ChlodAlejandro / OpenGraph template.html
Last active January 31, 2021 03:17
OpenGraph meta tags for HTML pages.
<title>{title}</title>
<meta name="twitter:card" content="summary"/>
<meta name="twitter:creator" content="ChlodAlejandro"/>
<meta name="twitter:image" content="{image}"/>
<meta name="og:title" property="og:title" content="{title}" />
<meta name="og:description" property="og:description" content="{description}" />
<meta name="description" content="{description}">
<meta name="og:image" property="og:image" content="{image}"/>