Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Subscriptions - freek@spatie.be</title>
</head>
<body>
<outline text="PHP" title="PHP">
<outline htmlUrl="http://frederickvanbrabant.com" title="frederickvanbrabant.com" xmlUrl="http://frederickvanbrabant.com/feed.xml" type="rss" text="frederickvanbrabant.com"/>
<outline htmlUrl="http://mattallan.org" title="mattallan.org" xmlUrl="http://mattallan.org/feed.xml" type="rss" text="mattallan.org"/>
<outline title="asked.io" xmlUrl="https://asked.io/rss" type="rss" text="asked.io"/>
@JustinSencion
JustinSencion / create_server_deployhq.sh
Created August 18, 2017 15:35
Create deployment server on DeployHQ
#!/bin/bash
# Set these variables
USER_NAME="you@example.com"
API_KEY="XXXXXXXX_YOUR_DHQ_API_KEY_XXXXXXXXXXXXX"
START_REV='SOME_ARBITRARY_GIT_REVISION_HASH_TO_START_FROM'
DHQ_API_PROJ="your-project-shortname"
DHQ_BASE_URL="https://yoursite.deployhq.com/"
DHQ_SERVER_GROUP="YOUR_SERVER_GROUP_UUID"
DHQ_SERVER_USERNAME="your-server-username"
@JustinSencion
JustinSencion / remove_server_deployhq.sh
Created August 18, 2017 15:04
Bash script to remove a server from DeployHQ
#!/bin/bash
USER_NAME="you@example.com"
API_KEY="XXXXXXXX_YOUR_DHQ_API_KEY_XXXXXXXXXXXXX"
DHQ_BASE_URL='SOME_ARBITRARY_GIT_REVISION_HASH_TO_START_FROM'
DHQ_API_PROJ="your-project-shortname"
DHQ_SERVER_GROUP="YOUR_SERVER_GROUP_UUID"
JSON="path to json with deployment creation response"
INSTANCE_ID=`jq -r '.identifier' $JSON`
INSTANCE_NAME=`jq -r '.hostname' $JSON`
@JustinSencion
JustinSencion / usefull_comands.md
Last active May 22, 2017 22:29
Usefull commands

CentOS 7 Fails to Boot - XFS Corrupt - Enters Emergency Mode

bash xfs_repair -L /dev/mapper/centos-root

Networking Issues

Stop NetworkManager.

bash service NetworkManager stop