Skip to content

Instantly share code, notes, and snippets.

View obokaman-com's full-sized avatar
🛠️
Starting, again

Albert Garcia obokaman-com

🛠️
Starting, again
View GitHub Profile
@obokaman-com
obokaman-com / n8n-token-analysis-by-openai-workflow.json
Last active March 28, 2024 19:12
n8n workflow to conduct a token analysis using OpenAI, based on Coingecko API information
{
"meta": {
"instanceId": "14a4579496eca8e63f6eac9a77d91fb8519619f23d5dabe63f5fc41397c8344e"
},
"nodes": [
{
"parameters": {},
"id": "d36d80c2-95e1-4ede-9189-d5a3d5fb9087",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
@obokaman-com
obokaman-com / How to avoid Twitter suggestions muting some internal keywords.md
Last active December 23, 2022 13:21
A helpful script to automatically add some words to your "muted words" settings on Twitter

How to avoid annoying suggestions on Twitter

Just follow these steps:

const delayMs = 500; // change this if you feel like its running too fast
@obokaman-com
obokaman-com / start_ngrok_update_cloudflare.sh
Created December 4, 2020 19:32
Script to start ngrok, copy the generated URL to clipboard and update a remote Cloudflare worker with the public ngrok url
#!/usr/bin/env bash
echo "=========== START LOCAL HTTP / HTTPS TUNNEL AND UPDATE YOUR REMOTE DEV DOMAIN TO POINT IT ==========="
printf "\n"
# Start NGROK in background
echo "⚡️ Starting ngrok"
ngrok http 8080 > /dev/null &
# Wait for ngrok to be available
while ! nc -z localhost 4040; do
@obokaman-com
obokaman-com / start_ngrok_telegram_bot.sh
Last active April 12, 2024 08:21
A bash script to start Ngrok in background, and send ngrok URL to a Telegram Bot automatically, copying the remote URL to clipboard
#!/usr/bin/env bash
# Start NGROK in background
echo "⚡️ Starting ngrok"
ngrok http 8080 > /dev/null &
# Wait for ngrok to be available
while ! nc -z localhost 4040; do
sleep 1/5 # wait Ngrok to be available
done
@obokaman-com
obokaman-com / notion-to-my-domain-cloudflare-worker.js
Last active October 8, 2020 09:58
A small modification to fruition.com script to allow having different SEO titles & descriptions depending on the path
/* CONFIGURATION STARTS HERE */
/* Step 1: enter your domain name like fruitionsite.com */
const MY_DOMAIN = 'cryptoadvisor.club';
/*
* Step 2: enter your URL slug to page ID mapping
* The key on the left is the slug (without the slash)
* The value on the right is the Notion page ID
*/
const SLUG_TO_PAGE = {
for branch in `git branch -r --merged | grep origin | grep -v '>' | grep -v master`;do echo -e `git show --format="%ci %cr -- %an <%ae>\t" $branch | head -n 1` \\t$branch; done | sort -r
@obokaman-com
obokaman-com / list-old-branches-by-date.sh
Created April 4, 2019 21:19
List all branches, ordered by oldes ones
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr -- %an <%ae>\t" $branch | head -n 1` \\t$branch; done | sort -r