Skip to content

Instantly share code, notes, and snippets.

Niklas P niklasp

  • SMILEUPPS-E6930D4D9F
  • Berlin
Block or report user

Report or block niklasp

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
View gist:ee13412f1d0cfda4fe1676866ebfc480
/**
* The avada_logo_prepend hook.
*/
do_action( 'avada_logo_prepend' );
?>
<?php if ( ( Avada()->settings->get( 'logo', 'url' ) && '' !== Avada()->settings->get( 'logo', 'url' ) ) || ( Avada()->settings->get( 'logo_retina', 'url' ) && '' !== Avada()->settings->get( 'logo_retina', 'url' ) ) ) : ?>
<a class="fusion-logo-link" href="<?php echo esc_url_raw( home_url( '/' ) ); ?>">
<!-- standard logo -->
<?php
@niklasp
niklasp / 1und1_wordpress_git.txt
Last active Jan 6, 2017
1und1 git wordpress local development
View 1und1_wordpress_git.txt
#This shows how to setup 1und1 for wordpress development with git
# 1. setup git at 1und1
ssh <your-username>@<your-servername>.1and1-data.host
# 2. go to your wordpress folder usually
cd clickandbuilds/<your-site-name>
# 3. initialize a bare git repo (= without a working tree) and setup a post-receive hook that
# makes changes to your live website
View django heroku s3
AWS_ACCESS_KEY_ID = os.environ.get("AWS_ACCESS_KEY_ID")
AWS_SECRET_ACCESS_KEY = os.environ.get("AWS_SECRET_ACCESS_KEY")
AWS_STORAGE_BUCKET_NAME = os.environ.get("AWS_STORAGE_BUCKET_NAME")
AWS_AUTO_CREATE_BUCKET = True
AWS_HEADERS = {
"Cache-Control": "public, max-age=86400",
View heroku django settings
AWS_ACCESS_KEY_ID = os.environ.get("AWS_ACCESS_KEY_ID")
AWS_SECRET_ACCESS_KEY = os.environ.get("AWS_SECRET_ACCESS_KEY")
AWS_STORAGE_BUCKET_NAME = os.environ.get("AWS_STORAGE_BUCKET_NAME")
AWS_AUTO_CREATE_BUCKET = True
AWS_HEADERS = {
"Cache-Control": "public, max-age=86400",
@niklasp
niklasp / gist:7451606
Created Nov 13, 2013
This is my first html gist
View gist:7451606
<html>
<test>
</test>
</html>
You can’t perform that action at this time.