Skip to content

Instantly share code, notes, and snippets.

View MichaelSp's full-sized avatar
👏
I'm happy and I know it 👏

Michael MichaelSp

👏
I'm happy and I know it 👏
View GitHub Profile
@MichaelSp
MichaelSp / gist:4041582
Created November 8, 2012 21:02
Apache configuration
<VirtualHost 0.1.2.3:443>
SuexecUserGroup "#1000" "#1000"
[...] other configuration [...]
Alias /Microsoft-Server-ActiveSync /home/michael/sogosync/index.php
Alias /test /home/michael/sogosync/info.php
<Directory /home/michael/sogosync/>
@MichaelSp
MichaelSp / config.php
Created November 8, 2012 21:46
sogosync
<?php
/***********************************************
* File : config.php
* Project : Z-Push
* Descr : Main configuration file
*
* Created : 01.10.2007
*
* Copyright 2007 - 2012 Zarafa Deutschland GmbH
*
@MichaelSp
MichaelSp / gist:7527016
Created November 18, 2013 12:28
Failed github-ci tests
expected: "http://example.local/?s=20&hash=b58c6f14d292556214bd64909bcdb118"
got: "no_avatar.png" (using ==)
./spec/helpers/application_helper_spec.rb:29:in `block (4 levels) in <top (required)>'
expected "no_avatar.png" to match "http://www.gravatar.com/avatar/b58c6f14d292556214bd64909bcdb118"
./spec/helpers/application_helper_spec.rb:24:in `block (4 levels) in <top (required)>'
expected "no_avatar.png" to match /\?s=64/
./spec/helpers/application_helper_spec.rb:33:in `block (4 levels) in <top (required)>'
@MichaelSp
MichaelSp / tree.css.scss
Created February 25, 2014 15:28
CSS3 Javascript Tree
@import 'font-awesome';
.tree {
margin-top: 30px;
border-radius: 4px;
background-color: #fff;
box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.4);
overflow: auto;
min-height: 400px;
li {
@MichaelSp
MichaelSp / vagrant provision
Created April 28, 2014 21:37
Vagrant provisioning with chef
[default] Running provisioner: shell...
[default] Running: inline script
stdin: is not a tty
Reading package lists...
Building dependency tree...
Reading state information...
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'trusty64'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: dawn_default_1403536563563_59118
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
@MichaelSp
MichaelSp / gist:905ca6033d9d2398e4d3
Created February 11, 2015 22:14
pry on windows with jazz_fingers
C:\Users\Michael>pry
←[0FError: Bad file descriptoriddle
C:/tools/ruby215/lib/ruby/gems/2.1.0/gems/coolline-0.5.0/lib/coolline/coolline.rb:268:in `winsize'
C:/tools/ruby215/lib/ruby/gems/2.1.0/gems/coolline-0.5.0/lib/coolline/coolline.rb:268:in `render'
C:/tools/ruby215/lib/ruby/gems/2.1.0/gems/coolline-0.5.0/lib/coolline/coolline.rb:455:in `line='
C:/tools/ruby215/lib/ruby/gems/2.1.0/gems/coolline-0.5.0/lib/coolline/coolline.rb:230:in `readline_full'
C:/tools/ruby215/lib/ruby/gems/2.1.0/gems/coolline-0.5.0/lib/coolline/coolline.rb:206:in `readline'
C:/tools/ruby215/lib/ruby/gems/2.1.0/gems/pry-coolline-0.2.5/lib/pry-coolline/wrapper.rb:4:in `readline'
C:/tools/ruby215/lib/ruby/gems/2.1.0/gems/pry-0.10.1-x64-mingw32/lib/pry/repl.rb:198:in `block in input_readline'
FROM ubuntu:14.04
RUN apt-get update && apt-get --force-yes -y --no-install-recommends upgrade
RUN apt-get install --force-yes -y --no-install-recommends \
mysql-client postgresql-client sqlite3 nodejs curl git \
build-essential libssl-dev ca-certificates libmysqlclient-dev \
libxslt1-dev libxml2 libxml2-dev libpq-dev libevent-dev libreadline-dev \
&& rm -rf /var/lib/apt/lists/*
# Install rbenv and ruby-build
$ > RAILS_ENV=production rails assets:precompile
no_proxy is unsupported
/usr/local/bundle/gems/hyper-react-0.12.5/lib/reactive-ruby/serializers.rb:1: warning: constant ::Bignum is deprecated
/usr/local/bundle/gems/hyper-react-0.12.5/lib/reactive-ruby/serializers.rb:1: warning: constant ::Fixnum is deprecated
yarn install v0.23.4
[1/4] Resolving packages...
success Nothing to install.
success Saved lockfile.
Done in 0.06s.
@MichaelSp
MichaelSp / login_page.rb
Created December 30, 2018 13:43
hyperstack && materialize
class Login
include Hyperstack::Component
render do
Mat::Card() {login_page}
end
def action
DIV(class_name: "card-action") {A {"Login"}.on(:click) {submit}}
end