Skip to content

Instantly share code, notes, and snippets.

@Gesugao-san
Gesugao-san / borderless-table.html
Last active July 14, 2021 09:08 — forked from rgoj/borderless-table.html
Examples of creating a table without borders
<!-- STARTING POINT: A simple table that will have borders -->
<table>
<tbody>
<tr>
<td>Column One</td>
<td>Column One</td>
</tr>
<tr>
<td>Content of column one</td>
@Gesugao-san
Gesugao-san / node-folder-structure-options.md
Created July 31, 2021 17:04 — forked from lancejpollard/node-folder-structure-options.md
What is your folder-structure preference for a large-scale Node.js project?

What is your folder-structure preference for a large-scale Node.js project?

0: Starting from Rails

This is the reference point. All the other options are based off this.

|-- app
|   |-- controllers
|   |   |-- admin
@Gesugao-san
Gesugao-san / Github Webhook Tutorial.md
Created August 1, 2021 12:16 — forked from jagrosh/Github Webhook Tutorial.md
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
@Gesugao-san
Gesugao-san / Windows-10-custom-theme-fix-color-after-login.md
Created August 11, 2021 14:56 — forked from ahmetozer/Windows-10-custom-theme-fix-color-after-login.md
Fix for custom theme color issue after logged in windows

If you install custom theme on your system you might suffer from each login for the re appliying your theme.
To fixing delete Default Colors folder on HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\ path on regedit. Now I hope you not able to get same issue on your computer.

@Gesugao-san
Gesugao-san / list_remotes.cmd
Last active August 18, 2021 08:29
This script will loop through subdirs in current dir and log it's git remotes to log file.
@ECHO OFF
CLS
ECHO ******************
ECHO Moved to: https://github.com/Gesugao-san/list_remotes
ECHO ******************
PAUSE
EXIT /B %ERRORLEVEL%
@Gesugao-san
Gesugao-san / Open in WBM (v1).js
Last active October 14, 2021 15:44
Chrome Bookmarklet — Open in WBM (ver. 1)
javascript:(function(){ window.open('https://web.archive.org/save/'+location.href); })();
// Inspiration by:
// https://caiorss.github.io/bookmarklet-maker/
// https://mrcoles.com/bookmarklet/
// License: MIT 2021 Gesugao-san
@Gesugao-san
Gesugao-san / Open in WBM (v2).js
Last active May 5, 2024 21:23
Chrome Bookmarklet — Open in WBM (ver. 2)
javascript: (function() {
var debugOn = false;
if (debugOn) console.log("[\"WayBack Mashine\" (WBM) bookmarklet][log]\nStatus: script starts executing.");
const URLsFilter = ["www.", "http://", "https://"];
const WBMsites = ["https://web.archive.org/save/", "https://web.archive.org/save"];
if (!WBMsites.includes(this.document.location.href)) {
console.log("[WBM bookmarklet][log]\nUser is not on WBM. Target acquired.\nActions:\n1. Copying to current URL to clipboard.\n2. Opening WBM.\nTo second step, click on me on WBM page!");
var targetWBM_HTML = document.createElement("textarea");
targetWBM_HTML.textContent = location.href;
document.body.appendChild(targetWBM_HTML);
@Gesugao-san
Gesugao-san / Open in WBM (v3).js
Last active May 5, 2024 21:22
Chrome Bookmarklet — Open in WBM (ver. 3)
javascript: (function() {
var debugOn = false;
let checkBoxesIDS = ["capture_outlinks", "capture_all", "capture_screenshot", "wm-save-mywebarchive", "email_result"];
const userLocation = this.document.location.href;
check();
function check() {
if (debugOn) console.log("[\"WayBack Mashine\" (WBM) bookmarklet][log]\nStatus: script starts executing.");
const URLsFilter = ["www.", "http://", "https://"];
const WBMsites = ["https://web.archive.org/save/", "https://web.archive.org/save"];
if (!WBMsites.includes(userLocation)) {
@Gesugao-san
Gesugao-san / bookmarklet-runner.js
Created October 25, 2021 08:13 — forked from fredr/bookmarklet-runner.js
A bookmarklet that will inject an external script in the browser. (minify, uri encode and add to the href prefixed with "javascript:" in your bookmark)
(function() {
var script = document.createElement('script');
script.async = 1;
script.src = '<url to script>';
document.getElementsByTagName('body')[0].appendChild(script);
})();
@Gesugao-san
Gesugao-san / Open_in_y2mate.js
Last active October 25, 2021 14:48
Open Youtube video in Y2mate and autosave it in best quality
javascript: (function() {
console.log("[\"Y2mate\" bookmarklet][log]\nStatus: script starts executing.");
const YoutubeSites = ["https://www.youtube.com/", "https://youtu.be/"];
if (!WBMsites.includes(this.document.location.href)) {}
return false;
})();