Skip to content

Instantly share code, notes, and snippets.

@DerZyklop
DerZyklop / Preferences.sublime-settings
Last active August 29, 2015 13:56
Preferences.sublime-settings
{
"bold_folder_labels": true,
"color_scheme": "Packages/User/Charming (SL).tmTheme",
"convert_tabspaces_on_save": true,
"default_line_ending": "unix",
"detect_indentation": true,
"draw_centered": true,
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"find_selected_text": true,
@DerZyklop
DerZyklop / t5f
Last active August 29, 2015 13:56
T5F. Mehr Info's dazu gibt's hier: http://www.schnappmatik.de/TFFFFF/
Sehr geehrte Damen und Herren,
Folgende Aufforderungen gemäß Bundesdatenschutzgesetz betreffen sämtliche über meine Person gespeicherten Daten, die Sie anhand dieser Adressen identifizieren können:
(bei snail-mail spam deine postadresse(n) eintragen, bei email spam deine email adresse(n), bei sms-spam deine handy-nummer... usw.)
Gemäß Bundesdatenschutzgesetz (BDSG) fordere ich Sie auf:
1. Sie haben mir gegenüber unverzüglich offenzulegen, welche Daten außer den oben aufgeführten Adressen Sie über meine durch diesen Namen/diese Adressen identifizierte Person gespeichert haben, und aus welchen Quellen sämtliche mich betreffenden Daten stammen.
§ 6 Abs. 2, § 28 Abs. 4, § 34 Abs. 1-3 BDSG
@DerZyklop
DerZyklop / rslides.sass
Last active August 29, 2015 13:56
A simple sass translation for the css of http://responsiveslides.com/
.rslides
z-index: 1
position: relative
list-style: none
overflow: hidden
width: 100%
padding: 0
margin: 0
li
-webkit-backface-visibility: hidden
@DerZyklop
DerZyklop / .htaccess
Created February 25, 2014 16:03
Force www on Domain
# First, force www on domain, code from:
# http://stackoverflow.com/questions/4916222/htaccess-how-to-force-www-in-a-generic-way
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
@DerZyklop
DerZyklop / switch.scss
Created March 17, 2014 11:58
CSS3 Switch (Checkbox)
/* Fancy Checkbox [BEGIN] */
// Emmet: .toggle>input:checkbox#myfancytoggle+label.myfancytoggle>.card
.toggle {
display: flex;
position: relative;
align-self: center;
user-select: none;
border: 1px solid $primary;
{
"font_face": "Anonymous Pro",
"line_padding_top": 1,
"line_padding_bottom": 2,
}
@DerZyklop
DerZyklop / xmlsitemap.php
Created April 23, 2014 16:31
A xmlsitemap for Kirby CMS without listing the children of "kontakt"
<?php
$ignore = array('sitemap', 'error');
foreach ($pages->find('kontakt')->children() as $value) {
array_push($ignore, $value->uri());
}
// send the right header
header('Content-type: text/xml; charset="utf-8"');
@DerZyklop
DerZyklop / back-to-old-commit.sh
Created April 28, 2014 10:32
git: Set master to old commit
git checkout master~1 # Checkout previous commit on master
git checkout -b new_master # Create branch for new master
git branch -D master # Delete old master
git branch -mv new_master master # Make new_master master
# source: http://stackoverflow.com/questions/4359681/want-to-change-my-master-to-an-older-commit-how-can-i-do-this
@DerZyklop
DerZyklop / phone-link.php
Created May 21, 2014 09:23
How to hyperlink a phone number in PHP
@DerZyklop
DerZyklop / git-submodule-healer
Created May 22, 2014 09:21
I hate git submodules. This command helps at the most, when i have trouble with it.
git submodule update --init --recursive