Skip to content

Instantly share code, notes, and snippets.

adriancuadrado / export.js
Created Jul 11, 2022
Import/export indexedDB database
View export.js
(() => {'postman-app').onsuccess = async event => {
let db =;
let transaction = db.transaction(db.objectStoreNames);
// TODO: Create and download a file instead of outputting the contents
await Promise.all(
adriancuadrado / 00_export_history.js
Last active Jul 19, 2022
Scripts to import/export Postman's history
View 00_export_history.js
(async function() {
const filename = 'postman-history-export.json';
const download = (function() {
const element = document.createElement('a');
return function(filename, contents) {
element.setAttribute('href', URL.createObjectURL(new Blob([contents])));
element.setAttribute('download', filename);;
adriancuadrado / style.css
Last active Jun 23, 2021
CSS for less youtube distractions
View style.css
Download a plugin for your browser to load custom css, then use this to hide all youtube recomendations and avoid distractions.
For instance, you can download Stylebot:
*/ {
display: none;
} {
adriancuadrado /
Created Apr 16, 2021 — forked from mihow/
Load environment variables from dotenv / .env file in Bash
set -o allexport
eval $(cat '.env' | sed -e '/^#/d;/^\s*$/d' -e 's/\(\w*\)[ \t]*=[ \t]*\(.*\)/\1=\2/' -e "s/=['\"]\(.*\)['\"]/=\1/g" -e "s/'/'\\\''/g" -e "s/=\(.*\)/='\1'/g")
eval $(cat '.env.local' | sed -e '/^#/d;/^\s*$/d' -e 's/\(\w*\)[ \t]*=[ \t]*\(.*\)/\1=\2/' -e "s/=['\"]\(.*\)['\"]/=\1/g" -e "s/'/'\\\''/g" -e "s/=\(.*\)/='\1'/g")
set +o allexport