Skip to content

Instantly share code, notes, and snippets.

@Gesugao-san
Gesugao-san / get_links_from_site.js
Last active May 5, 2024 21:26
Get all the src and href attributes of a site, insert into console or make markbooklet
this.document.querySelectorAll('[class^="member"],[class^="container"],[class^="clickable"],[data-list-item-id^="members"]')[0];
this.document.querySelectorAll('[class^="userInfoBody"]')[0].innerText.split('\n');
@Gesugao-san
Gesugao-san / dump.js
Last active May 5, 2024 21:26
Dump table content from website to local machine (csv).
(() => {
return console.log("Moved to https://github.com/GesuDatasGContactsProject/dump_html_table");
})();
@0xdevalias
0xdevalias / music-apis-and-dbs.md
Last active May 5, 2024 21:25
A collection of music APIs, databases, and related tools
diff -U 3 -w -d -r -x .git -x Binaries -x Intermediate -- "a/RootMotionExtractor/RootMotionExtractor.uplugin" b/RootMotionExtractor/RootMotionExtractor.uplugin
--- "a/RootMotionExtractor/RootMotionExtractor.uplugin" 2023-04-09 11:17:42.466226109 -0700
+++ b/RootMotionExtractor/RootMotionExtractor.uplugin 2023-04-09 16:44:40.272197835 -0700
@@ -10,7 +10,7 @@
"DocsURL": "",
"MarketplaceURL": "com.epicgames.launcher://ue/marketplace/content/4b450f82f56040338a4d5744b3eda4f9",
"SupportURL": "http://puglifestudio.com/discord",
- "EngineVersion": "4.27.0",
+ "EngineVersion": "5.0.0",
"CanContainContent": false,
@umardx
umardx / Pi3_as_WiFi_AP_Bridge.md
Last active May 5, 2024 21:24
Using a Raspberry Pi 3 as a Wifi access point and bridge

The specificity of my setup, is that the Raspberry won’t be a router but a bridge. DHCP is thus delegated to the main ADSL router and all devices connected to the AP will appear on the same network than other devices. The instructions below are based on a fresh Raspbian lite install so that it can be reproduced easily.

Install the required packages :

$ sudo apt-get install -y bridge-utils hostapd

To create a bridge, we need to enable ip_forward in the kernel, for that, edit /etc/sysctl.conf and remove comment (#) from the following line :

Ideias para projetos em PHP
Famosos:
Facebook
Yahoo!
Wikipedia
WordPress
Joomla
Tumblr
MailChimp
@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);
@Pagliacii
Pagliacii / neovim-as-merge-tool.md
Last active May 5, 2024 21:23
Using Neovim as a merge tool

git

Using diffview.nvim

# ~/.gitconfig
[merge]
  tool = diffview
[mergetool]
  prompt = false
@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)) {