Skip to content

Instantly share code, notes, and snippets.

View 9kopb's full-sized avatar
💎
xyu.foundation

9kopb 9kopb

💎
xyu.foundation
View GitHub Profile
{
"meta": {
"theme": "elegant"
},
"basics": {
"name": "Thomas Davis",
"label": "Web Developer",
"image": "https://avatars0.githubusercontent.com/u/416209?s=460&u=38f220a2c9c658141804f881c334c594eb1642ac&v=4",
"summary": "I'm a full stack web developer who can build apps from the ground up. I've worked mostly at startups so I am used to wearing many hats. I am a very product focused developer who prioritizes user feedback first and foremost. I'm generally very flexible when investigating new roles. ",
"website": "https://lordajax.com",
#
# Monitor file $1 for changes
# Send an alert emai to $2 if file $1 changes
# usage: inotify_email_watcher.sh /var/log/messages your.name@domain.com
if [ -z "$2" ]; then
echo "Usage: inotify_email_watcher.sh"
exit 1
fi
# if the file exists
if [ -f $1 ] || [ -d $1 ]; then
@9kopb
9kopb / gist_to_github_repo.md
Created August 3, 2022 09:36 — forked from ishu3101/gist_to_github_repo.md
Transfer a gist to a GitHub repository

Transfer a gist to a GitHub repository

clone the gist

git clone https://gist.github.com/ishu3101/6fb35afd237e42ef25f9

rename the directory

mv 6fb35afd237e42ef25f9 ConvertTo-Markdown

change the working directory to the newly renamed directory

cd ConvertTo-Markdown

addEventListener("fetch", (event) => {
event.respondWith(
handleRequest(event.request).catch(
(err) => new Response(err.stack, { status: 500 })
)
);
});
async function handleRequest(request) {
const { pathname, searchParams, host } = new URL(request.url);
@9kopb
9kopb / torrc
Created March 17, 2022 21:40 — forked from Nill-R/torrc
Minimal /etc/tor/torrc
SOCKSPort 9050
ExcludeNodes {ru}
ExcludeExitNodes {ru},{kz},{by},{cn},{kg},{tj},{uz},{ir}
Log notice file /var/log/tor/notices.log
@9kopb
9kopb / fresh.sh
Created March 17, 2022 21:39 — forked from ec0type/fresh.sh
#!/bin/bash
macchanger -s eth0
macchanger -r eht0
echo "## Add" >> /etc/tor/torrc
echo "## " >> /etc/tor/torrc
echo "##" >> /etc/tor/torrc
echo "ExitNodes {nl},{pa},{ru}" >> /etc/tor/torrc
echo "StrictExitNodes 1" >> /etc/tor/torrc
@9kopb
9kopb / form_fill.js
Created September 13, 2018 23:35 — forked from elmarcoh/form_fill.js
Form fill Bookmarklet with Chilean RUT
//Caution when minifiyng this file: the modulus operator in getRut must have spaces around it, otherwise
//Chrome throws an error, and the damn thing won't work
var auto =
{
names: 'Steve Buscemi Catherine Keener Dermot Mulroney Danielle Zerneck James LeGros Rica Martens Peter Dinklage Kevin Corrigan Hilary Gilford Robert Wightman Tom Jarmusch Michael Griffiths Matthew Grace Ryan Bowker Francesca DiMauro',blurb: 'phpBB is a free, open source Internet community application, with outstanding discussion forums and membership management. Written in the PHP scripting language, and making use of the popular MySQL database, phpBB is a standard among web hosting companies throughout the world, and is one of the most widely-used bulletin board packages in the world. phpBB short-circuits the need for you to be a web development master in order to create and manage massive online communities',password: 'secret',fillerup: function()
{
var all_inputs = document.getElementsByTagName('input');var all_selects = documen
@9kopb
9kopb / fiddle.css
Created March 16, 2018 17:07 — forked from anonymous/fiddle.css
Create or test Firebase tokens (source: http://jsfiddle.net/9kopb/n8cads5v/)
label, button {
display: block;
margin-top: 8px;
}
body > fieldset {
float: left;
min-width: 250px;
margin: 10px;
}
@9kopb
9kopb / fiddle.css
Created March 16, 2018 17:07 — forked from anonymous/fiddle.css
Create or test Firebase tokens (source: http://jsfiddle.net/9kopb/n8cads5v/)
label, button {
display: block;
margin-top: 8px;
}
body > fieldset {
float: left;
min-width: 250px;
margin: 10px;
}
Open the console to see the output of this example.