Skip to content

Instantly share code, notes, and snippets.

View yordanoff's full-sized avatar

Joro Yordanov yordanoff

View GitHub Profile
@hdodov
hdodov / nomin.htaccess
Last active November 20, 2017 04:16
.htaccess file that allows you to visit a page with unminified versions of all files inside
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} \/nomin(\/|$)
RewriteRule (.+)\/nomin(.*) $1$2 [E=NO_MINIFICATION:1]
RewriteCond %{ENV:NO_MINIFICATION} 1 [OR]
RewriteCond %{ENV:REDIRECT_NO_MINIFICATION} 1
RewriteCond %{REQUEST_URI} (.+)\.min(\.[^.].*) [NC]
RewriteCond %{DOCUMENT_ROOT}/%1%2 -f
@ayamflow
ayamflow / gist:b602ab436ac9f05660d9c15190f4fd7b
Created May 9, 2016 19:10
Safari border-radius + overflow: hidden + CSS transform fix
// Add on element with overflow
-webkit-mask-image: -webkit-radial-gradient(white, black);
@sakamies
sakamies / headings.php
Last active July 1, 2017 13:27
Kirbytext combined heading tags
<?php
//Define the tag into a variable, so we can use it in multiple tags at the bottom of this file
$tagName = array(
'attr' => array(
'align',
'link',
'target',
'class'
),
@sniperwolf
sniperwolf / MySQL_basic_and_simple_cheatsheet.md
Last active September 6, 2022 04:02
MySQL Basic and Simple Cheatsheet
@bastianallgeier
bastianallgeier / controllers--contact.php
Created October 1, 2014 19:36
Plain contactform example for Kirby 2
<?php
return function($site, $pages, $page) {
$alert = null;
if(get('submit')) {
$data = array(
'name' => get('name'),

Checklist for Design to Development Handoff

Developer Pre-Design Questions

[ ] Do you have a preferred grid system? || I'd like to use this grid system.
[ ] What fonts do we have available to us? || I'd like to use this font (and include a URL).

Checklist before Handoff to Development

@bastianallgeier
bastianallgeier / statify.php
Last active October 4, 2022 17:12
A first draft for a script, which converts a Kirby site into a static site. It's a rough first draft, so don't expect it to be perfect. Play with it, if you like it!
<?php
/**
* Instructions:
*
* 1. Put this into the document root of your Kirby site
* 2. Make sure to setup the base url for your site correctly
* 3. Run this script with `php statify.php` or open it in your browser
* 4. Upload all files and folders from static to your server
* 5. Test your site
@brenopolanski
brenopolanski / merge-pdf-ghostscript.md
Last active May 2, 2024 06:56
Merge multiple PDFs using Ghostscript

A simple Ghostscript command to merge two PDFs in a single file is shown below:

gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combine.pdf -dBATCH 1.pdf 2.pdf

Install Ghostscript:

Type the command sudo apt-get install ghostscript to download and install the ghostscript package and all of the packages it depends on.

@kevin-smets
kevin-smets / iterm2-solarized.md
Last active May 7, 2024 09:29
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@sniperwolf
sniperwolf / ajax.php
Last active December 29, 2022 12:25
Super-Simple WordPress ajax post-popup with jQuery and Reveal plugin
<?php
/**
* Template Name: ajax
*/
?>
<?php
$post = get_post($_GET['id']);
?>
<?php if ($post) : ?>
<?php setup_postdata($post); ?>