Skip to content

Instantly share code, notes, and snippets.

View DocEmmetBrown's full-sized avatar

Guillaume Winter DocEmmetBrown

View GitHub Profile
@DocEmmetBrown
DocEmmetBrown / qnap.sh
Created October 1, 2021 17:29
Update Root certs on Qnap
cd /share/
mkdir certs
cd certs
curl https://letsencrypt.org/certs/lets-encrypt-r3.pem -k -O
curl https://letsencrypt.org/certs/isrgrootx1.pem -k -O
for filename in *.pem;do mv $filename `openssl x509 -hash -noout -in $filename`.0; done;
cp *.0 /etc/ssl/certs/
reboot
@DocEmmetBrown
DocEmmetBrown / rails-edge.sh
Last active September 8, 2020 10:45
Setup an edge minimal rails app
mkdir myapp
cd myapp
cat > Gemfile << EOF
source 'https://rubygems.org'
gem 'rails', github: 'rails/rails'
EOF
bundle install
bundle exec rails new . --minimal --edge --database=postgresql
# conflict Gemfile
# Overwrite /Users/user/myapp/Gemfile? (enter "h" for help) [Ynaqdhm]
### Keybase proof
I hereby claim:
* I am docemmetbrown on github.
* I am gwinter (https://keybase.io/gwinter) on keybase.
* I have a public key ASBDpQlY5OuMVBtf_IkQGHXweEhnc3Vrl2h-WSygaC1m2Qo
To claim this, I am signing this object: