View deploy.yml
name: Deploy | |
on: | |
push: | |
branches: | |
- production | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest |
View tailwind_cheatsheet.css
/* ******************************************************************************************* | |
* TAILWIND.CSS | |
* DOCUMENTATION: https://tailwindcss.com/ | |
* ******************************************************************************************* */ | |
/* | |
* Available breakpoints | |
* -------------------- | |
* sm: min-width: 640px; | |
* md: min-width: 768px; |
View puppeteer-cheatsheet.js
/* ******************************************************************************************* | |
* PUPPETEER | |
* https://pptr.dev/ | |
* ******************************************************************************************* */ | |
// When you install Puppeteer, it downloads a recent version of Chromium (~170MB Mac, ~282MB Linux, ~280MB Win) | |
// that is guaranteed to work with the API. | |
npm install puppeteer |
View vue_js_cheatsheet.js
/* ******************************************************************************************* | |
* GLOBAL CONFIG | |
* Vue.config is an object containing Vue’s global configurations. | |
* You can modify its properties listed below before bootstrapping your application. | |
* https://vuejs.org/v2/api/#Global-Config | |
* ******************************************************************************************* */ | |
// Configure whether to allow vue-devtools inspection | |
Vue.config.devtools = true |
View javascript_cheatsheet.js
/* ******************************************************************************************* | |
* GLOBAL OBJECTS > ARRAY | |
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array | |
* ******************************************************************************************* */ | |
// Global object: properties | |
Array.length // Reflects the number of elements in an array | |
// Global object: methods |
View 1_nanobox_cli.sh
# ***************************************************************************** | |
# UPDATED VERSION AVAILABLE HERE: | |
# https://github.com/LeCoupa/awesome-cheatsheets/blob/master/tools/nanobox_cli.sh | |
# ***************************************************************************** | |
# ***************************************************************************** | |
# LOCAL ENVIRONMENT | |
# ***************************************************************************** |
View 1_vsc_settings.js
{ | |
// Controls the font size in pixels | |
"editor.fontSize": 14, | |
// The number of spaces a tab is equal to | |
"editor.tabSize": 2, | |
"[python]": { | |
"editor.tabSize": 4 | |
}, |
View cli.docker.sh
docker build -t friendlyname . # Create image using this directory's Dockerfile | |
docker run -p 4000:80 friendlyname # Run "friendlyname" mapping port 4000 to 80 | |
docker run -d -p 4000:80 friendlyname # Same thing, but in detached mode | |
docker exec -it [container-id] bash # Enter a running container | |
docker ps # See a list of all running containers | |
docker stop <hash> # Gracefully stop the specified container | |
docker ps -a # See a list of all containers, even the ones not running | |
docker kill <hash> # Force shutdown of the specified container | |
docker rm <hash> # Remove the specified container from this machine | |
docker rm $(docker ps -a -q) # Remove all containers from this machine |
View redis_cheatsheet.bash
# Redis Cheatsheet | |
# All the commands you need to know | |
redis-server /path/redis.conf # start redis with the related configuration file | |
redis-cli # opens a redis prompt | |
# Strings. |
View optimizely-js-api-cheatsheet.js
// Optimizely JavaScript API | |
// http://developers.optimizely.com/javascript/ | |
// To opt a visitor out of Optimizely tracking | |
// http://www.example.com/page.html?optimizely_opt_out=true | |
// 1. API Function Calls | |
// http://developers.optimizely.com/javascript/#api-function-calls-2 |
NewerOlder