Skip to content

Instantly share code, notes, and snippets.

@albertobissacco
albertobissacco / InstagramPrivateApiEndpointURLS.json
Last active August 2, 2024 01:40
Instagram Private API Endpoint URLs
{
"profile": {
"infoBasicFromUsername": {
"type": "rest",
"param": "username",
"url": "https://www.instagram.com/${param}/?__a=1&__d=1"
},
"infoFromUsername": {
"type": "rest",
"param": "username",
@albertobissacco
albertobissacco / midjourney-bookmarklet.js
Last active November 5, 2023 20:25
Add links to download images (.webp). Use this bookmarklet on https://midjourney.com/showcase/recent/
const gridNodes = document.querySelectorAll("[role=gridcell]");
gridNodes.forEach( node => {
const imgNode = node.querySelector("img[data-job-id]");
const webpLink = createLink(imgNode.src, ".webp↗", imgNode.dataset.jobId);
node.appendChild(webpLink);
});
function createLink(url,text,title) {
const lnk = document.createElement("a");
@albertobissacco
albertobissacco / iss-docking.js
Created January 5, 2022 14:12 — forked from ggerganov/iss-docking.js
Automatic ISS Docking in Javascript
// Auto-pilot for docking with the International Space Station
//
// The program uses Artificial Intelligence and Decision Trees (i.e. basic kinematics and a bunch of if statements)
// to perform docking with the ISS from any starting position.
//
// To use it:
// - open the SpaceX simulation website: https://iss-sim.spacex.com/
// - open the Developer's console and paste the contents of this file
//
// Demo: https://youtu.be/jWQQH2_UGLw
11111 abacus
11112 abdomen
11113 abdominal
11114 abide
11115 abiding
11116 ability
11121 ablaze
11122 able
11123 abnormal
11124 abrasion
@albertobissacco
albertobissacco / apps_install.sh
Created November 23, 2020 23:08 — forked from brunofbrito/apps_install.sh
Install my macOS apps with homebrew, cask and mas-cli
#!/bin/sh
echo Install all AppStore Apps at first!
read -p "Press any key to continue... " -n1 -s
echo '\n'
echo Installing Homebrew...
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo Installing Brew favorites...
brew tap homebrew/cask-fonts
@albertobissacco
albertobissacco / Gemfile
Created June 25, 2020 10:59 — forked from dhh/Gemfile
HEY's Gemfile
ruby '2.7.1'
gem 'rails', github: 'rails/rails'
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data
# Action Text
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra'
gem 'okra', github: 'basecamp/okra'
# Drivers
# Google_Product_Taxonomy_Version: 2019-07-10
Animals & Pet Supplies
Animals & Pet Supplies > Live Animals
Animals & Pet Supplies > Pet Supplies
Animals & Pet Supplies > Pet Supplies > Bird Supplies
Animals & Pet Supplies > Pet Supplies > Bird Supplies > Bird Cage Accessories
Animals & Pet Supplies > Pet Supplies > Bird Supplies > Bird Cage Accessories > Bird Cage Bird Baths
Animals & Pet Supplies > Pet Supplies > Bird Supplies > Bird Cage Accessories > Bird Cage Food & Water Dishes
Animals & Pet Supplies > Pet Supplies > Bird Supplies > Bird Cages & Stands
Animals & Pet Supplies > Pet Supplies > Bird Supplies > Bird Food
openssl rand -base64 24
@albertobissacco
albertobissacco / piTemp.sh
Created May 13, 2020 10:53
Raspberry Pi CPU and GPU Temperature
#!/bin/bash
cpuTemp0=$(cat /sys/class/thermal/thermal_zone0/temp)
cpuTemp1=$(($cpuTemp0/1000))
cpuTemp2=$(($cpuTemp0/100))
cpuTempM=$(($cpuTemp2 % $cpuTemp1))
cpuTemp="${cpuTemp1}.${cpuTempM}"
gpuTemp=$(/opt/vc/bin/vcgencmd measure_temp | cut -c "6-9")
red=`tput setaf 9`
@albertobissacco
albertobissacco / motd.sh
Created May 13, 2020 10:50
Raspberry Pi custom motd.sh
#!/bin/bash
clear
function color (){
echo "\e[$1m$2\e[0m"
}
function extend (){
local str="$1"