Skip to content

Instantly share code, notes, and snippets.

View owalid's full-sized avatar
🥷
Focusing

owalid

🥷
Focusing
View GitHub Profile
Vue.js 23 hrs 37 mins ██████████████████▓░
JavaScript 3 hrs 23 mins █████░░░░░░░░░░░░░░░
TypeScript 1 hr 22 mins ███▓░░░░░░░░░░░░░░░░
SCSS 37 mins ███▒░░░░░░░░░░░░░░░░
@owalid
owalid / axios_get_token_spotify.js
Last active February 12, 2021 21:48
Get Spotify Access Token (client credentials) with nodejs (axios and https) without client
import axios from 'axios'
const auth = `Basic ${Buffer.from(`CLIENT_ID:SECRET`).toString('base64')}`;
const config = {
method: 'post',
url: `https://accounts.spotify.com/api/token`,
headers: {
'Authorization': auth,
'Accept':'application/json',
@owalid
owalid / pyenv_macos_build_fail.md
Last active February 9, 2022 12:00
pyenv BUILD FAILED OS X 11.6 using python-build macos solution
pyenv install 3.7.3
...
BUILD FAILED (OS X 11.6 using python-build 20180424)
...
CFLAGS="-I$(brew --prefix openssl)/include \
-I$(brew --prefix bzip2)/include \
@owalid
owalid / gist:619f3e34518480cee632e8189bc9fd30
Created June 29, 2022 09:32
Large files detected github error
git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch PATH_TO_FILE'
@owalid
owalid / clone_ssh.md
Created June 30, 2022 10:40
Clone git repo with ssh key path
GIT_SSH_COMMAND="ssh -i <PATH>" git clone git@<REPO>