- Install XCode from App Store.
- Open XCode and agree to terms and conditions.
xcode-select --install
{ | |
"defaultProfile": "{410aa365-68e4-4a68-83f5-6139ccb43b0a}", | |
"initialRows": 30, | |
"initialCols": 120, | |
"alwaysShowTabs": true, | |
"showTerminalTitleInTitlebar": true, | |
"experimental_showTabsInTitlebar": true, | |
"profiles": [ | |
{ | |
"startingDirectory": "C:\\Users\\$Username", |
#!/bin/sh | |
## backup each mysql db into a different file, rather than one big file | |
## as with --all-databases. This will make restores easier. | |
## To backup a single database simply add the db name as a parameter (or multiple dbs) | |
## Putting the script in /var/backups/mysql seems sensible... on a debian machine that is | |
## Create the user and directories | |
# mkdir -p /var/backups/mysql/databases | |
# useradd --home-dir /var/backups/mysql --gid backup --no-create-home mysql-backup | |
## Remember to make the script executable, and unreadable by others |
#Debian 8 DO Locale Issues Fix
##Problem
"Locale problems" in both the 32-bit & 64-bit versions of Debian 8 droplets
Create a new Debian 8 droplet and login as root
:
# Configuration file for runtime kernel parameters. | |
# See sysctl.conf(5) for more information. | |
# See also http://www.nateware.com/linux-network-tuning-for-2013.html for | |
# an explanation about some of these parameters, and instructions for | |
# a few other tweaks outside this file. | |
# Protection from SYN flood attack. | |
net.ipv4.tcp_syncookies = 1 |
# less to scss based on http://stackoverflow.com/a/19167099/2363935 | |
namespace :convert do | |
task :less_to_scss do | |
source_glob = "resources/assets/less/*.less" | |
dest_dir = "resources/assets/sass/" | |
rm_r dest_dir rescue nil | |
mkdir_p(dest_dir) |
#!/bin/bash | |
set -e | |
PHP_VERSION=7.0 | |
# Script base on php7.sh by Tom Van Looy https://gist.github.com/tvlooy/881d0d67d0ad699c38a3 | |
# Dont use this shell script in production server unless you dont care | |
# You must first add the testing repository in your sourcelist before run this | |
# You must stop php7-fpm service if you already install |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>PHP INFO</title> | |
<style type="text/css"> | |
body {font-family: "Ubuntu Mono", "Monospace", "Monaco", "Courier New"; font-size: 12px} | |
</style> | |
<link rel="shortcut icon" href="favicon.png" type="image/x-icon" /> | |
</head> | |
<body> |