Skip to content

Instantly share code, notes, and snippets.

#/bin/sh
install_dir="/var/www/html"
#Creating Random WP Database Credenitals
db_name="wp`date +%s`"
db_user=$db_name
db_password=`date |md5sum |cut -c '1-12'`
sleep 1
mysqlrootpass=`date |md5sum |cut -c '1-12'`
sleep 1

Keybase proof

I hereby claim:

  • I am dpgribkov on github.
  • I am dpg (https://keybase.io/dpg) on keybase.
  • I have a public key ASBmmxk-CdTgXXMoI0H3HwCiOrsV_GecLGK4znGR0ER_Dwo

To claim this, I am signing this object:

@dpgribkov
dpgribkov / figwheel-emacs-cider.txt
Created September 25, 2016 21:39 — forked from auramo/figwheel-emacs-cider.txt
figwheel emacs cider stuff
## Using Emacs CIDER as the Figwheel REPL tool
project.clj should have this line:
```
:figwheel { :nrepl-port 7888 }
```
At the defproject-level.
It enables external tools to connect to the Figwheel REPL. To connect
@dpgribkov
dpgribkov / README.md
Created November 17, 2015 22:28 — forked from renchap/README.md
One-line certificate generation/renews with Letsencrypt and nginx

Prerequisites : the letsencrypt CLI tool

This method allows your to generate and renew your Lets Encrypt certificates with 1 command. This is easily automatable to renew each 60 days, as advised.

You need nginx to answer on port 80 on all the domains you want a certificate for. Then you need to serve the challenge used by letsencrypt on /.well-known/acme-challenge. Then we invoke the letsencrypt command, telling the tool to write the challenge files in the directory we used as a root in the nginx configuration.

I redirect all HTTP requests on HTTPS, so my nginx config looks like :

server {