Skip to content

Instantly share code, notes, and snippets.

View tomasnorre's full-sized avatar
🐘

Tomas Norre Mikkelsen tomasnorre

🐘
View GitHub Profile
@tomasnorre
tomasnorre / step-by-step-vagrant.txt
Created October 16, 2015 09:00
TYPO3.org Vagrant
$ git clone git://git.typo3.org/Teams/Server/Vagrant/Typo3Org.git
$ cd Typo3Org
$ vagrant up <-- Fails with gem "mysql" install
$ vagrant ssh t3o-web
$ sudo apt-get install libmysqld-dev
$ cd /usr/local/bin
$ sudo wget http://github.com/mailhog/MailHog/releases/download/v0.1.6/MailHog_linux_amd64 -O MailHog
$ sudo chmod +x MailHog
$ exit
$ vagrant provision t3o-web
@tomasnorre
tomasnorre / Cheffile
Last active January 22, 2016 19:36
Installing mySQL with Chef cookbooks
#!/usr/bin/env ruby
#^syntax detection
site 'http://community.opscode.com/api/v1'
cookbook "ant", :git => "git@github.com:opscode-cookbooks/ant.git"
cookbook "apt", :git => "https://github.com/opscode-cookbooks/apt"
cookbook "git", :git => "git@github.com:opscode-cookbooks/git.git"
cookbook "apache2", :git => "git@github.com:onehealth-cookbooks/apache2.git"
cookbook "mysql", :git => "git@github.com:chef-cookbooks/mysql.git"
@tomasnorre
tomasnorre / namespaceRefactor.php
Created February 18, 2016 12:36 — forked from hpbuniat/namespaceRefactor.php
Super-simple script to convert a existing project to use namespaces
<?php
/**
* Super-simple script to convert a existing project to use namespaces
*
* @author Hans-Peter Buniat <hpbuniat@googlemail.com>
* @copyright 2012 Hans-Peter Buniat <hpbuniat@googlemail.com>
* @license http://opensource.org/licenses/BSD-3-Clause
*/
class namespaceRefactor {
/*
The purpose of this script is to daily check Packt's Free Book offer
and notify via e-mail with the title of the book and link to download page.
Author: Douglas Matoso - www.dmatoso.com
Instructions:
1) Create a new Goggle Script at http://script.google.com
2) Paste the code below, putting your email in the "email" var.
3) Execute the checkBook function to test (the script may ask an one time permission)
@tomasnorre
tomasnorre / README.md
Created March 3, 2017 17:45 — forked from ralphschindler/README.md
Docker (For Mac) De-facto Host Address Alias (10.254.254.254) - "The 10254 Trick".

Docker (Mac) De-facto Standard Host Address Alias

This launchd script will ensure that your Docker environment on your Mac will have 10.254.254.254 as an alias on your loopback device (127.0.0.1). The command being run is ifconfig lo0 alias 10.254.254.254

Installation

Copy/Paste the following in terminal with sudo (must be root as the target directory is owned by root)...

sudo curl -o /Library/LaunchDaemons/com.ralphschindler.docker_10254_alias.plist https://gist.githubusercontent.com/ralphschindler/535dc5916ccbd06f53c1b0ee5a868c93/raw/com.ralphschindler.docker_10254_alias.plist
@tomasnorre
tomasnorre / letsencrypt_2017.md
Created November 3, 2017 08:43 — forked from tolleiv/letsencrypt_2017.md
How to setup Let's Encrypt for Nginx on Ubuntu 16.04 (including IPv6, HTTP/2 and A+ SLL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 16.04 (including IPv6, HTTP/2 and A+ SLL rating)

There are two main modes to run the Let's Encrypt client (called Certbot):

  • Standalone: replaces the webserver to respond to ACME challenges
  • Webroot: needs your webserver to serve challenges from a known folder.

Webroot is better because it doesn't need to replace Nginx (to bind to port 80).

In the following, we're setting up mydomain.com. HTML is served from /var/www/mydomain, and challenges are served from /var/www/letsencrypt.

build-monitor-plugin
blueocean-pipeline-api-impl
rvm
hipchat
blueocean-personalization
workflow-cps-global-lib
promoted-builds
pipeline-stage-tags-metadata
warnings
ruby-runtime
@import url(https://fonts.googleapis.com/css?family=Roboto:400,700,500,300);@import url(https://fonts.googleapis.com/css?family=Roboto+Mono:400,700,500,300);@keyframes a{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes b{0%{opacity:1}50%{opacity:0}to{opacity:1}}[src$="blue.png"]{background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIxOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDA5Njg4IiBkPSJNMTIgMkM2LjQ4IDIgMiA2LjQ4IDIgMTJzNC40OCAxMCAxMCAxMCAxMC00LjQ4IDEwLTEwUzE3LjUyIDIgMTIgMnptLTIgMTVsLTUtNSAxLjQxLTEuNDFMMTAgMTQuMTdsNy41OS03LjU5TDE5IDhsLTkgOXoiLz48L3N2Zz4=)}[src$="red.png"]{background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIxOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjRjQ0MzM2IiBkPSJNMTIgMkM2LjQ4IDIgMiA2LjQ4IDIgMTJzNC40OCAxMCAxMCAxMCAxMC00LjQ4IDEwLTEwUzE3LjUyIDIgMTIgMnptMSAxNWgtMnYtMmgydjJ6bTAtNGgtMlY3aDJ2NnoiLz48L3N2Zz4=)}[src$="yellow.png
(1/1) #1476050190 TYPO3\CMS\Backend\Routing\Exception\RouteNotFoundException
Unable to generate a URL for the named route "wizard_element_browser" because this route was not found.
in /var/www/fritdrop/latest/web/typo3/sysext/backend/Classes/Routing/UriBuilder.php line 93
public function buildUriFromRoute($name, $parameters = [], $referenceType = self::ABSOLUTE_PATH)
{
$this->loadBackendRoutes();
if (!isset($this->routes[$name])) {
throw new RouteNotFoundException('Unable to generate a URL for the named route "' . $name . '" because this route was not found.', 1476050190);

Keybase proof

I hereby claim:

  • I am tomasnorre on github.
  • I am tomasnorre (https://keybase.io/tomasnorre) on keybase.
  • I have a public key ASDr-tUaUNqWATS8IwG9OTUozMMSDtc5q1-N6QL1suItOQo

To claim this, I am signing this object: