Skip to content

Instantly share code, notes, and snippets.

View mph-code's full-sized avatar
🤖
consuming mass amounts of information

Mateo mph-code

🤖
consuming mass amounts of information
View GitHub Profile
@mph-code
mph-code / obsidian-web-clipper.js
Created May 28, 2023 05:13 — forked from kepano/obsidian-web-clipper.js
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
@mph-code
mph-code / The Technical Interview Cheat Sheet.md
Created June 25, 2021 02:24 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@mph-code
mph-code / rw-rootfs
Created April 2, 2021 21:58 — forked from DennisLfromGA/rw-rootfs
A script that asks to make the root filesystem read-writable for subsequent changes and additions by the user.
#!/bin/sh -e
##!! PLEASE USE THIS SCRIPT WITH CAUTION - AND AT YOUR OWN RISK !!##
##!! IT HAS BEEN KNOWN TO CAUSE RESETS AND WIPE DATA ON SOME CHROMEBOXES !!##
APPLICATION="${0##*/}"
ANSWER=''
SUDO=''
USAGE="
$APPLICATION [no options]
@mph-code
mph-code / README.md
Created March 18, 2021 04:14 — forked from smiley/README.md
How to make an automatic "stream's live" notification for your Discord server

Making an automatic Twitch -> Discord notification (using IFTTT)

So you went live and you want everyone to know. Here's how you do it:

Part 1 - Register on IFTTT

Go to https://ifttt.com/ and create an account (if you don't already have one)

Part 2 - Make a Discord Webhook

  • Find the Discord channel in which you would like to send Tweets.
  • In the settings for that channel, find the Webhooks option and create a new webhook. Note: This URL should be kept private. It allows anyone to write messages to that specific channel using that specific URL. Keep it safe!
@mph-code
mph-code / README.md
Created August 5, 2020 22:18 — forked from NSProgrammer/README.md
Integrating Twitter Network Layer (TNL) with Twitter Image Pipeline (TIP)
@mph-code
mph-code / youtube-dl.md
Created April 29, 2020 01:48
Using youtube-dl to download courses from Pluralsight

Download courses from learning sites with youtube-dl

You can download whole courses from an array of tutorial sites with the CLI tool youtube-dl. In the example further down I'm using my Pluralsight account to get videos from a course at their site. Here is a list of all supported sites that you can download from with this tool

The flags you have to supply may vary depending on which site you make a request to.

You can get a free 3 month trial to Pluralsight by signing up for free to Visual Studio Dev Essentials

Installation

@mph-code
mph-code / 0readme.md
Created March 23, 2020 01:03 — forked from mdamien/0readme.md
404 link detector with scrapy

List all the broken links on your website

Requirements:

python3 and scrapy (pip install scrapy)

Usage

  • scrapy runspider -o items.csv -a site="https://yoursite.org" 1spider.py
  • python3 2format_results.py
@mph-code
mph-code / selenium_with_python.rst
Created March 18, 2020 15:25 — forked from baijum/selenium_with_python.rst
Selenium with Python
#!/bin/bash
checkExisting(){
echo "Checking if already existing device on file..."
while read fileLine; do
if [ "$line" = "$fileLine" ]; then
echo "[WARNING] Device already initialized on this system. Nothing to do here"
@mph-code
mph-code / socketconnect.js
Created November 24, 2019 22:48 — forked from aloncarmel/socketconnect.js
Implement socket.io inside chrome extension or other internal JS files using jquery.
//Socket server connect to listen to data.
$.getScript('http://yoursocketioserver/socket.io/socket.io.js',function() {
socket = io.connect('http://lyoursocketioserver');
socket.on('connect', function(){
socket.on('message', function (data) {