- Put app in maintenance mode on Heroku
- Download backup of database in mLab
- Copy database to DO Droplet
scp backup.tgz [email protected]:~/ - SSH into droplet and unzip the file
tar zxvf backup.tgz - Inside the unzipped directory, rename the database directory to
parties/mv backup/database-name/ backup/parties
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT users.id, users.first_name, users.last_name, users.email, stripe_payments.customer, stripe_payments.source, CAST(SUM(stripe_payments.amount) as FLOAT) / 100 | |
| FROM users | |
| JOIN stripe_payments as sp ON INSTR(sp.source, users.email) > 0 | |
| JOIN stripe_payments ON users.customer_id = stripe_payments.customer | |
| WHERE stripe_payments.customer != '' | |
| AND sp.customer = '' | |
| GROUP BY users.email; | |
| /* SELECT users.id, users.first_name, users.last_name, users.email, stripe_payments.customer, stripe_payments.source, CAST(SUM(stripe_payments.amount) as FLOAT) / 100 | |
| FROM users |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT idn, first_name, last_name, email, phone, COUNT(users.email) as courses | |
| FROM users | |
| INNER JOIN registrations ON users.id = registrations.user_id | |
| GROUP BY users.email | |
| HAVING COUNT(users.email) < 3 AND COUNT(users.email) > 1 | |
| ORDER BY courses DESC, cast(idn as Number) ASC; |
- Install Mono
- Also available through Homebrew
brew install mono
- Install Visual Studio Code
- Also available through Homebrew Cask
brew cask install visual-studio-code - Install
codecommand in terminal following these instructions
| Control | Prefix | Example |
|---|---|---|
| Label | lbl | lblSurname |
| TextBox | txt | txtSurname |
| DataGrid | dg | dgResults |
| GridView | gv | gvResults2 |
| Button | btn | btnSave |
| ImageButton | iBtn | iBtnSave |
| Hyperlink | lnk | lnkHomePage |
| DropDownList | ddl | ddlCompany |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Intermediate Midterm | |
| //Please fork this gist. Complete it, and remember to save often! | |
| // 1. How do you make comments and why do you make them? | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Turn back now. You are not supposed to see this. |
Welcome to my awesome blog. I'm a student at Austin Coding Academy learning how to use APIs with AJAX requests. Check out my other posts!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # https://cymplecy.wordpress.com/2014/02/09/auto-install-x11vnc/ | |
| # To install, run LX Terminal and copy and paste the following code: | |
| # wget http://goo.gl/MbfUEp -O isx11.sh | |
| # and then press enter to download the installer | |
| # Once it has finished downloading, type the following and follow the instructions: | |
| # sudo bash isx11.sh | |
| # A very crude script to setup X11VNC inspired by MrEngmans Realtek RTL8188CUS script and based upon my autosimplesamba |