Skip to content

Instantly share code, notes, and snippets.

View drmzio's full-sized avatar

Daniel Ramirez drmzio

View GitHub Profile
@drmzio
drmzio / schema.json
Created March 30, 2023 00:09 — forked from dvdsgl/schema.json
Figma Platform schema
{
"$ref": "#/definitions/FileResponse",
"$schema": "http://json-schema.org/draft-06/schema#",
"definitions": {
"BlendMode": {
"enum": [
"COLOR",
"COLOR_BURN",
"COLOR_DODGE",
"DARKEN",
@drmzio
drmzio / states_hash.json
Created August 11, 2021 18:54 — forked from mshafrir/states_hash.json
US states in JSON form
{
"AL": "Alabama",
"AK": "Alaska",
"AS": "American Samoa",
"AZ": "Arizona",
"AR": "Arkansas",
"CA": "California",
"CO": "Colorado",
"CT": "Connecticut",
"DE": "Delaware",
@drmzio
drmzio / ID.js
Created April 5, 2019 22:39
ID - a unique ID/name generator for JavaScript
// Generate unique IDs for use as pseudo-private/protected names.
// Similar in concept to
// <http://wiki.ecmascript.org/doku.php?id=strawman:names>.
//
// The goals of this function are twofold:
//
// * Provide a way to generate a string guaranteed to be unique when compared
// to other strings generated by this function.
// * Make the string complex enough that it is highly unlikely to be
// accidentally duplicated by hand (this is key if you're using `ID`
@drmzio
drmzio / .env.example
Created February 25, 2019 20:35 — forked from LukeTowers/.0 - cheatsheet.sh
Introduction to OctoberCMS
APP_DEBUG=true
APP_URL=http://example.local
APP_KEY=
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=website-oc-example-LOCAL
DB_USERNAME=homestead
DB_PASSWORD=secret
@drmzio
drmzio / gist:499528b722d37b8ae2ee5dcc9a21c912
Last active June 29, 2017 23:03 — forked from adampiotrowski/gist:ccf6342d9308a3abd897
Install LEMP (PHP 7.0, MariaDB) on Ubuntu 16.04
# Install updates
sudo apt-get update && sudo apt-get upgrade
# Update kernel
sudo apt-get update && sudo apt-get dist-upgrade
# Install LEMP
sudo apt-get update && sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
sudo add-apt-repository 'deb http://mariadb.kisiek.net//repo/10.0/ubuntu trusty main'
@drmzio
drmzio / LEMP.sh
Created June 8, 2017 02:22 — forked from hiendnguyen/LEMP.sh
CentOS 7 LEMP
# Install Nginx
sudo yum install epel-release
sudo yum install nginx
sudo systemctl start nginx
sudo systemctl enable nginx
# Install MySQL (MariaDB)
sudo yum install mariadb-server mariadb
sudo systemctl start mariadb
sudo systemctl enable mariadb