Source: https://geekpeek.net/create-mysql-database/
mysql -u root -p
You should now be inside the MySQL repl. Do the following:
CREATE DATABASE `firstdb` /*!40100 DEFAULT CHARACTER SET utf8 */;
using UnityEngine; | |
using UnityEditor; | |
using UnityEditorInternal; | |
using System.Collections.Generic; | |
using UnityEditor.AnimatedValues; | |
[CustomEditor(typeof(UnityEngine.Object), true, isFallback = true)] | |
[CanEditMultipleObjects] | |
public class CustomEditorBase : Editor | |
{ |
# Get the number of pages in the PDF. (On a Mac you can do `pages=$(mdls -raw -name kMDItemNumberOfPages $PDF)`) | |
pages=$(pdftk $PDF dump_data | grep NumberOfPages | awk '{print $2}') | |
# Get the number of 16-page booklets | |
booklets=$(($pages/16)) | |
if [[ $(($pages%16)) -gt 0 ]]; then | |
booklets=$(($booklets+1)) | |
fi | |
# Determine where to split the book for the half-size | |
booksplit=$(($booklets/2)) | |
# Determine at what page to split the book |
<html> | |
<head> | |
<title>Documentation</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="https://unpkg.com/[email protected]/build/base-min.css"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mermaid/6.0.0/mermaid.min.css"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.8.0/styles/atom-one-light.min.css"> | |
<style type="text/css"> | |
body { |
#!/bin/bash | |
# You need this for your OpenSSL tests to pass later | |
yum install perl-core | |
# Grab the source for OpenSSL 1.1, which has the patch for CVE-2016-2107 | |
cd /usr/local/src | |
wget https://www.openssl.org/source/openssl-1.1.0b.tar.gz | |
tar -zxf openssl-1.1.0b.tar.gz | |
cd openssl-1.1.0b |
#/bin/bash | |
git clone unicorn unicorn-calendar | |
cd unicorn-calendar | |
git filter-branch --prune-empty --subdirectory-filter apps/calendar master | |
git reset --hard | |
git for-each-ref --format="%(refname)" refs/original/ | xargs -n 1 git update-ref -d | |
git reflog expire --expire=now --all | |
git gc --aggressive --prune=now | |
git remote rm origin |
#!/bin/bash | |
# Configuration for the script | |
POSTFIX_CONFIG=/etc/postfix/main.cf | |
POSTFIX_SASL=/etc/postfix/sasl_passwd | |
function confirm () { | |
read -r -p "${1:-Are you sure? [Y/n]} " response | |
if [[ $response == "" || $response == "y" || $response == "Y" ]]; then | |
echo 0; |
Source: https://geekpeek.net/create-mysql-database/
mysql -u root -p
You should now be inside the MySQL repl. Do the following:
CREATE DATABASE `firstdb` /*!40100 DEFAULT CHARACTER SET utf8 */;
#!/bin/bash | |
# | |
# This script configures WordPress file permissions based on recommendations | |
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
# | |
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
# | |
WP_OWNER=haverstack # <-- wordpress owner | |
WP_GROUP=haverstack # <-- wordpress group | |
WP_ROOT=data # <-- wordpress root directory |
#!/bin/bash | |
# Install Docker | |
curl -L -s https://get.docker.com/ | sh | |
# Add the user that will be working with Docker to the docker group | |
usermod -aG docker jen | |
# Start the Docker service | |
systemctl start docker.service |
#!/bin/bash | |
# Update the system | |
yum update -y | |
# Add a non-root user | |
adduser jen | |
passwd jen | |
gpasswd -a jen wheel |