Skip to content

Instantly share code, notes, and snippets.

@julioklein
julioklein / fish_shell_android_home.txt
Created July 13, 2022 13:14 — forked from gbero/fish_shell_android_home.txt
Export $ANDROID_HOME on MacOS with Fish shell
First :
$ touch ~/.config/fish/config.fish; nano ~/.config/fish/config.fish
Copy this in the file :
set --export ANDROID $HOME/Library/Android;
set --export ANDROID_HOME $ANDROID/sdk;
set -gx PATH $ANDROID_HOME/tools $PATH;
set -gx PATH $ANDROID_HOME/tools/bin $PATH;
@julioklein
julioklein / imgix-purge-nodejs.js
Last active October 19, 2020 13:13
Imgix Purge with NodeJS
const axios = require('axios').default;
const API_KEY = ''
const url = 'http://examples.imgix.net/frog.jpg';
axios.post('https://api.imgix.com/v2/image/purger', { url }, {
auth: {
username: API_KEY,
password: ''
}
})