- Make sure the domain you picked points at the IP of your Redash server.
- Switch to the
rootuser (sudo su). - Create a folder named
nginxin/opt/redash. - Create in the nginx folder two additional folders:
certsandcerts-data. - Create the file
/opt/redash/nginx/nginx.confand place the following in it: (replaceexample.redashapp.comwith your domain name)upstream redash { server redash:5000; }
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
| Given the specific land details and goals in the provided JSON, can you offer a detailed permaculture design, including soil preparation, irrigation strategies, and the integration of native plants for a sustainable ecosystem in Oujda, Morocco? | |
| finally draw ascii schema | |
| { | |
| "landDetails": { | |
| "area": "3 hectares", | |
| "location": "Oujda, Morocco", | |
| "coordinates": { | |
| "NW": [34.12345, -6.54321], |
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
| Backup: | |
| docker exec -t -u postgres your-db-container pg_dumpall -c > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql | |
| Restore: | |
| cat your_dump.sql | docker exec -i your-db-container psql -Upostgres |
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
| import Flickity from 'flickity' | |
| export default function carousel() { | |
| const carousels = Array.from(document.querySelectorAll('[data-carousel]')) | |
| if (carousels.length < 1) { | |
| return | |
| } | |
| // Support equal height cells |
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
| if('speechSynthesis' in window){ | |
| var speech = new SpeechSynthesisUtterance('hello baby'); | |
| speech.lang = 'en-US'; | |
| speech..rate = 1.5; | |
| window.speechSynthesis.speak(speech); | |
| } |
Graphic via State of Florida CFO Vendor Payment Search (flair.myfloridacfo.com)
This is a quick command I use to snapshot webpages that have a fun image I want to keep for my own collection of WTFViz. Why not just right-click and save the image? Oftentimes, the webpage in which the image is embedded contains necessary context, such as captions and links to important documentation just incase you forget what exactly that fun graphic was trying to explain.
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
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
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
| /***** Selector Hacks ******/ | |
| /* IE6 and below */ | |
| * html #uno { color: red } | |
| /* IE7 */ | |
| *:first-child+html #dos { color: red } | |
| /* IE7, FF, Saf, Opera */ | |
| html>body #tres { color: red } |
Install backup gem
$ gem install backupGenerate Backup files see doc for genrate's options
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
| ** First of all, install the prerequisite libraries: ** | |
| sudo apt-get update | |
| sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev | |
| ** Then install rbenv, which is used to install Ruby: ** | |
| cd | |
| git clone git://github.com/sstephenson/rbenv.git .rbenv | |
| echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc | |
| echo 'eval "$(rbenv init -)"' >> ~/.bashrc | |
| exec $SHELL |
NewerOlder
