Skip to content

Instantly share code, notes, and snippets.

View betabong's full-sized avatar

Severin Klaus betabong

View GitHub Profile
@betabong
betabong / dabblet.css
Created February 21, 2012 07:47 — forked from anonymous/dabblet.css
Untitled
div#logo {
display: block;
margin: 150px auto 0;
width: 128px;
height: 128px;
background: url(http://meodai.ch/hvlogo.png);
}
div#logo div {
opacity: 0;
@betabong
betabong / dabblet.css
Created February 21, 2012 07:47 — forked from anonymous/dabblet.css
Untitled
body {
perspective: 300px;
}
#logo {
display: block;
margin: 150px auto 0;
width: 128px;
height: 128px;
padding-top: 20px;
transform-origin: 50% 80px;
@betabong
betabong / dabblet.css
Created February 22, 2012 09:13
Rotated Crop Image
/**
* Rotated Crop Image
*/
.figure {
display: inline-block;
position: relative;
transform: rotate(45deg);
overflow: hidden;
width: 200px;
@betabong
betabong / screenreader-heading.html
Last active August 29, 2015 14:27
Screenreader Heading (visible only)
<a href='javascript:(function () %7B !function a(b,c,d)%7Bfunction e(g,h)%7Bif(!c%5Bg%5D)%7Bif(!b%5Bg%5D)%7Bvar i%3D"function"%3D%3Dtypeof require%26%26require%3Bif(!h%26%26i)return i(g,!0)%3Bif(f)return f(g,!0)%3Bvar j%3Dnew Error("Cannot find module %27"%2Bg%2B"%27")%3Bthrow j.code%3D"MODULE_NOT_FOUND",j%7Dvar k%3Dc%5Bg%5D%3D%7Bexports:%7B%7D%7D%3Bb%5Bg%5D%5B0%5D.call(k.exports,function(a)%7Bvar c%3Db%5Bg%5D%5B1%5D%5Ba%5D%3Breturn e(c%3Fc:a)%7D,k,k.exports,a,b,c,d)%7Dreturn c%5Bg%5D.exports%7Dfor(var f%3D"function"%3D%3Dtypeof require%26%26require,g%3D0%3Bg<d.length%3Bg%2B%2B)e(d%5Bg%5D)%3Breturn e%7D(%7B1:%5Bfunction(a,b,c)%7Bb.exports%3D"body %7B%5Cn%09padding: 0%3B%5Cn margin: 0%3B%5Cn font: caption%3B%5Cn line-height: 1.6%3B%5Cn color: %23284900%3B%5Cn%7D%5Cn%5Cnul %7B%5Cn margin: 0%3B%5Cn margin-top: 3em%3B%5Cn padding: 0%3B%5Cn%7D%5Cn%5Cna %7B%5Cn%09color: %23284900%3B%5Cn text-decoration: none%3B%5Cn%7D%5Cna > .level %7B%5Cn display: inline-block%3B%5Cn background-color:
<a href="javascript:(function () { !function%20a(b%2Cc%2Cd)%7Bfunction%20e(g%2Ch)%7Bif(!c%5Bg%5D)%7Bif(!b%5Bg%5D)%7Bvar%20i%3D%22function%22%3D%3Dtypeof%20require%26%26require%3Bif(!h%26%26i)return%20i(g%2C!0)%3Bif(f)return%20f(g%2C!0)%3Bvar%20j%3Dnew%20Error(%22Cannot%20find%20module%20&#39;%22%2Bg%2B%22&#39;%22)%3Bthrow%20j.code%3D%22MODULE_NOT_FOUND%22%2Cj%7Dvar%20k%3Dc%5Bg%5D%3D%7Bexports%3A%7B%7D%7D%3Bb%5Bg%5D%5B0%5D.call(k.exports%2Cfunction(a)%7Bvar%20c%3Db%5Bg%5D%5B1%5D%5Ba%5D%3Breturn%20e(c%3Fc%3Aa)%7D%2Ck%2Ck.exports%2Ca%2Cb%2Cc%2Cd)%7Dreturn%20c%5Bg%5D.exports%7Dfor(var%20f%3D%22function%22%3D%3Dtypeof%20require%26%26require%2Cg%3D0%3Bg%3Cd.length%3Bg%2B%2B)e(d%5Bg%5D)%3Breturn%20e%7D(%7B1%3A%5Bfunction(a%2Cb%2Cc)%7Bb.exports%3D%22body%20%7B%5Cn%09padding%3A%200%3B%5Cn%20%20%20%20margin%3A%200%3B%5Cn%20%20%20%20font%3A%20caption%3B%5Cn%20%20%20%20line-height%3A%201.6%3B%5Cn%20%20%20%20color%3A%20%23284900%3B%5Cn%7D%5Cn%5Cnul%20%7B%5Cn%20%20%20%20margin%3A%200%3B%5Cn%20%20%20%20margin-top%3A%203em%3

Terminal Commands

Files

Find and execute with pipes:

find . -name \*.erb -print | xargs -n1 rm

Remove recursively custom icons (Mac OS X):

*, *:before, *:after {
background: transparent !important;
color: white !important;
border-color: yellow !important;
box-shadow: none !important;
}
*.wcm-has-bg {
background: black !important;
}
a {
@betabong
betabong / hv-redmine-extra.css
Created February 13, 2017 10:25
HV Redmine CSS Override
.wiki.editable {
margin-bottom: 15px;
}
.wiki.editable code {
background: #f0f0f0;
}
.wiki.editable > code {
display: block;
@betabong
betabong / create-certificate.sh
Created November 28, 2017 09:53
Create self-signed SSL certificate
openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem