Skip to content

Instantly share code, notes, and snippets.

:octocat:
git push --force

Marco Biedermann marcobiedermann

:octocat:
git push --force
Block or report user

Report or block marcobiedermann

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@marcobiedermann
marcobiedermann / google.maps.Map
Last active Aug 29, 2015
Google Maps API Greyscale
View google.maps.Map
var mapOptions = {
styles: [
{
stylers: [
{ saturation: -100 }
]
}
]
};
View HTML Dummy Content
<h3>Headings</h3>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
<h3>Text</h3>
View typography.md

Typography

Quotation Marks

German Quotation Marks

„…“
‚…‘
»…«
›…‹
@marcobiedermann
marcobiedermann / wordpress-setup.sh
Last active Jun 3, 2016
WordPress Installation Setup
View wordpress-setup.sh
#!/usr/bin/env bash
# Download and extract WordPress
wget https://wordpress.org/latest.tar.gz
tar -xzf latest.tar.gz
rm -f latest.tar.gz
mv wordpress/* .
rm -rf wordpress
# Remove setup file
View Markdown Dummy Content
### Headings
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
View jquery.scroll-to.js
(function($) {
$('.scroll-to').on('click', function(event) {
event.preventDefault();
$('html, body').animate({
scrollTop: $($.attr(this, 'href')).offset().top
}, 800);
return false;
@marcobiedermann
marcobiedermann / craftcms-setup.sh
Created Sep 9, 2016
Craft CMS Installation Setup
View craftcms-setup.sh
#!/usr/bin/env bash
# Install CraftCMS
curl -L -o latest.zip https://craftcms.com/latest.zip?accept_license=yes
unzip latest.zip
rm -f latest.zip
View wordpress-security.md

Rename database table prefix

Set table prefix in wp-config.php

$table_prefix  = 'wp_6yCX_';

Rename tables in database

@marcobiedermann
marcobiedermann / backup.sh
Last active Mar 16, 2017
Backup Database
View backup.sh
#!/usr/bin/env bash
# settings
BACKUP_DIRECTORY="backups"
SITE=""
DB_HOST=""
DB_NAME=""
DB_USER=""
DB_PASS=""
@marcobiedermann
marcobiedermann / php-styleguide.md
Last active Mar 31, 2017
PHP Coding Styleguide
View php-styleguide.md

Do not use closing PHP tag at end of file

<?php

Capitalize class names.

class MyClassName
You can’t perform that action at this time.