Skip to content

Instantly share code, notes, and snippets.

View UnSstrennen's full-sized avatar
🏢
Working from office

Un ẞtrennen UnSstrennen

🏢
Working from office
View GitHub Profile
@UnSstrennen
UnSstrennen / ngrokhostname.sh
Created August 1, 2020 11:53
Returns ngrok hostname in format like "ddc8d0860915.ngrok.io"
# based on https://gist.github.com/rjz/af40158c529d7c407420fc0de490758b#gistcomment-2372805
# replace http:// to https:// in start of a command is you need that
echo -n 'http://' && curl --silent --show-error http://127.0.0.1:4040/api/tunnels | sed -nE 's/.*public_url":"https:..([^"]*).*/\1/p'
# http://ddc8d0860915.ngrok.io
@UnSstrennen
UnSstrennen / my.css
Created June 6, 2020 15:38
Bootstrap 4 button coloring on pure CSS
/*
Add this code AFTER importing bootstrap.
If you add that code to your CSS file, import that file AFTER bootstrap file.
Don't edit bootstrap source code, it's wierd and unkind :)
For defining box-shadows, just get rgb code of main color and write it as rgba with alpha paramenter 0.5
*/
.btn-primary {
background-color: #FF8A29;