Skip to content

Instantly share code, notes, and snippets.

# Add correct content-type for fonts
AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf
AddType font/x-woff .woff
AddType image/svg+xml .svg
# Compress compressible fonts
AddOutputFilterByType DEFLATE font/ttf font/otf image/svg+xml
@bugsysop
bugsysop / git-command.md
Created June 9, 2018 17:35 — forked from aquelito/git-command.md
GIT - Ligne de commande principale

Github

Rappel

Ne pas oublier la base : l'aide en ligne de commande. Il s'agit de la meilleur documentation.

git help config
git help push
@bugsysop
bugsysop / figure.html
Created October 8, 2017 23:44 — forked from budparr/figure.html
Hugo "figure" shortcode that works with https://github.com/aFarkas/lazysizes and uses `markdownify` for title and caption #gohugo
<!-- image -->
<figure {{ with .Get "class" }}class="{{.}}"{{ end }}>
{{ with .Get "link"}}<a href="{{.}}">{{ end }}
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" data-src="{{ .Get "src" }}" {{ if or (.Get "alt") (.Get "caption") }}alt="{{ with .Get "alt"}}{{.}}{{else}}{{ .Get "caption" }}{{ end }}" {{ end }}{{ with .Get "width" }}width="{{.}}" {{ end }} class="lazyload" />
<noscript>
<img src="{{ .Get "src" }}" {{ if or (.Get "alt") (.Get "caption") }}alt="{{ with .Get "alt"}}{{.}}{{else}}{{ .Get "caption" }}{{ end }}" {{ end }}{{ with .Get "width" }}width="{{.}}" {{ end }}/>
</noscript>
{{ if .Get "link"}}</a>{{ end }}
{{ if or (or (.Get "title") (.Get "caption")) (.Get "attr")}}
<figcaption>{{ if isset .Params "title" }}
@bugsysop
bugsysop / index.pug
Created October 8, 2017 23:17
Typography
.cover
p.author john doe
p.stack Competition
p.tagline The new typography
@bugsysop
bugsysop / column-count-layout.markdown
Created October 8, 2017 09:19
Column Count Layout
@bugsysop
bugsysop / convertnotes.rb
Created August 24, 2017 05:33 — forked from etc/convertnotes.rb
A small script to convert WP-Footnotes style footnotes to PHP Markdown Extra style footnotes.
#!/usr/bin/env ruby
# A small script to convert WP-Footnotes style footnotes to PHP Markdown Extra
# style footnotes.
#
# Possibly useful for those who are migrating from Wordpress to Jekyll, were
# using WP-Footnotes, and wish to render their new Markdown pages with Kramdown
# (which supports PHP Markdown Extra style footnotes).
#
# For example, you might first run https://github.com/thomasf/exitwp and then run
@bugsysop
bugsysop / ifttt-instagram-to-blog.php
Created September 26, 2016 05:14 — forked from bastianallgeier/ifttt-instagram-to-blog.php
IFTTT Make channel action to create blog post from new post on Instagram
<?php
/* if this script is located in your document root… */
require(__DIR__ . '/kirby/bootstrap.php');
if(get('params')) {
$articles = page('blog')->children();
$sort = ($articles->count() + 1);
$date = date('Y-m-d');
<!--
site/templates/search.php
Source : https://forum.getkirby.com/t/search-templates/5323/12
-->
<?php snippet('header') ?>
<div class="text">
<?php if($results): ?>
<?php foreach($results as $result): ?>
<div class="text">