A cheat sheet of useful commands I keep updated to make my life easier.
https://cordova.apache.org/#getstarted
cordova create <path>
#!/bin/bash | |
echo "Enter Username: " | |
read varUname | |
if id "$varUname" &>/dev/null; then | |
echo 'User already exists, aborting.' | |
exit | |
fi | |
read -s -p "Enter a Password: " varPass | |
sudo useradd -m -s $(which bash) -G sudo "$varUname" |
# rollimages.py - Rolls a folder of images, randomly selecting one with or without a filter | |
# No License | |
# @hex333ham - GitHub | |
# CLI usage - rollimages.py [DIR] [FILTER] | |
# Alternatively, running the script will use file dialogues and input boxes to setup the roller | |
# Default Python3 | |
import os | |
import sys | |
import random |
html { | |
background: #1A1A1A !important; | |
} | |
/*----- DEFAULT TEXT, BORDER & BACKGROUND COLORS -----*/ | |
* { |
A cheat sheet of useful commands I keep updated to make my life easier.
https://cordova.apache.org/#getstarted
cordova create <path>
<?php | |
// src/App/Entity/Message.php | |
namespace App\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
use Doctrine\Common\Collections\Collection; | |
use FOS\MessageBundle\Entity\Message as BaseMessage; | |
/** |
body { | |
background-color: #222 !important; | |
background-clip: border-box !important; | |
background-origin: padding-box !important; | |
background-attachment: scroll !important; | |
background-repeat: repeat !important; | |
background-size: auto !important; | |
background-position: left top !important; | |
} |
PLEASE NOTE: not a definitive guide for prod environments, mostly just reference to quickly sort things on dev.
To get permissions right after an update, do the following:
cd /var/www/[DIRECTORY]
git reset --hard
git pull
composer install
sudo chmod -R 0775 ./*
How to setup a Centos 6/7 LAMP server correctly (or at least how I do it, needs work).
To check the centos version and system info, do this:
hostnamectl
To check the full release version, do this:
rpm --query centos-release
A cheat sheet of useful commands I keep updated to make my life easier.
https://symfony.com/doc/current/setup.html
composer create-project symfony/skeleton [PROJECT NAME]