Skip to content

Instantly share code, notes, and snippets.

View neverything's full-sized avatar

Silvan Hagen neverything

View GitHub Profile
@neverything
neverything / vhost
Created December 6, 2013 15:52 — forked from gistwebdev/vhost
#!/bin/bash
#
# Display usage info
vhost-usage() {
cat <<"USAGE"
Usage: vhost [OPTIONS] <name>
-h|--help this screen
-pub to create the webhost root in ~/www/name/public/
-url to specify a local address, default is http://name.local
@neverything
neverything / template
Last active December 30, 2015 12:09 — forked from gistwebdev/template
<VirtualHost *:80>
ServerAdmin template.email
DocumentRoot template.webroot
ServerName template.url
ErrorLog "/private/var/log/apache2/template.name-error_log"
CustomLog "/private/var/log/apache2/template.name-access_log" common
<Directory template.webroot>
Options Includes FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Verifying that +neverything is my blockchain ID. https://onename.com/neverything
@neverything
neverything / passwordless-ssh-authorized_keys.md
Last active January 19, 2016 16:27
Howto: Passwordless SSH Login/Deployment on Linux machine

Howto: Passwordless SSH Login/Deployment on Linux machine

Voraussetzung:

  • Du hast einen id_rsa.pub in deinem SSH Verzeichnis auf dem Mac
  • Der Zielserver hat bereits einen .ssh Ordner
  • Du hast das SSH Server Passwort zur Hand
cat ~/.ssh/id_rsa.pub| ssh user@host.example 'cat &gt;&gt; .ssh/authorized_keys'
@neverything
neverything / remove-jetpack-css.php
Last active February 17, 2016 16:57 — forked from mwolff44/gist:abfc7848e5cfa35b8c6a
Should be enough to just remove jetpack.css
<?php
/*
MU Plugin: remove-jetpack-css
Plugin Name: WP Remove jetpack.css
Plugin URI: http://required.ch
Description: Removes the jetpack.css
Version: 1.0
Author: Silvan Hagen
Author URI: http://www.silvanhagen.com
License: GPLv3
vagrant plugin update $(vagrant plugin list |awk '/^[:alnum:]/i {print $1}')
#user-feedback-init-button,
#user-feedback-bottombar,
.user-feedback-modal,
.user-feedback-annotation {
z-index: 100;
}
#user-feedback-canvas {
z-index: 99;
}
@neverything
neverything / empty-span-highlight.css
Created September 14, 2016 09:33
Highlight empty spans that have an `id` on a page, useful for editor styles in WP for example.
span:empty::before {
content: attr(id);
}
span:empty {
display: block;
border: 1px dashed black;
}
<?php
/*
* Plugin Name: Post Likes
* Description: WP REST API Post Likes
* Author: Joe Hoyle
* Version: 1.0
* Author URI: http://joehoyle.co.uk
*/