Skip to content

Instantly share code, notes, and snippets.

View o1y's full-sized avatar
Fixing Bugs 🦄

Oliver Mesieh o1y

Fixing Bugs 🦄
View GitHub Profile
@o1y
o1y / PR3984.patch
Last active January 29, 2023 19:26
Statamic Performance Experiment
diff --git a/src/Stache/Stores/BasicStore.php b/src/Stache/Stores/BasicStore.php
index 07d8f7288e..c10660ba2f 100644
--- a/src/Stache/Stores/BasicStore.php
+++ b/src/Stache/Stores/BasicStore.php
@@ -3,6 +3,7 @@
namespace Statamic\Stache\Stores;
use Illuminate\Support\Facades\Cache;
+use Statamic\Facades\Blink;
use Statamic\Facades\File;
@o1y
o1y / scripts.js
Created September 21, 2019 15:21
Statamic Bard Fieldtype Scribe Sanitizer Overrides
Statamic.bard.sanitizer = {
tags: {
p: {},
br: {},
b: {},
strong: {},
i: {},
strike: {},
blockquote: {},
code: {},
@o1y
o1y / colorbox.less
Created May 24, 2012 16:56 — forked from barryvdh/colorbox.less
Colorbox skin for Bootstrap
/*
ColorBox Core Style:
The following CSS is consistent between example themes and should not be altered.
*/
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:10001; overflow:hidden;}
#cboxOverlay{position:fixed; width:100%; height:100%;}
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
#cboxContent{position:relative;}
#cboxLoadedContent{overflow:auto;}
#cboxTitle{margin:0;}
@o1y
o1y / gist:2725208
Created May 18, 2012 13:18
useful git aliases
[alias]
chp = cherry-pick
co = checkout
st = status
ci = commit
di = diff
dc = diff --cached
aa = add --all
head = log -1
@o1y
o1y / jade_stylus_sublime.md
Created February 5, 2012 13:11 — forked from csanz/jade_stylus_sublime.md
Getting Jade and Stylus working w/ Sublime Text 2

Download Jade and Stylus bundles

https://github.com/miksago/jade-tmbundle
https://github.com/LearnBoost/stylus/tree/master/editors

~/Downloads/

Create directories:

cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages

@o1y
o1y / gist:1574898
Created January 7, 2012 14:32 — forked from halbtuerke/gist:31934
show git branch and git status in command prompt of your current working directory
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
BLUE="\[\033[0;34m\]"
LIGHT_RED="\[\033[1;31m\]"
LIGHT_GREEN="\[\033[1;32m\]"
WHITE="\[\033[1;37m\]"
LIGHT_GRAY="\[\033[0;37m\]"
COLOR_NONE="\[\e[0m\]"