Skip to content

Instantly share code, notes, and snippets.

View LeBenLeBen's full-sized avatar

Benoît Burgener LeBenLeBen

View GitHub Profile
@LeBenLeBen
LeBenLeBen / _syntax.scss
Last active January 10, 2016 08:58
Pygments theme based on SublimeText theme "Spacegray" available here: https://github.com/kkga/spacegray
/**
* Syntax highlighting
* Colors from SublimeText theme "Spacegray"
* https://github.com/kkga/spacegray
*/
.highlight {
background-color: #343d46;
color: white;
@LeBenLeBen
LeBenLeBen / taxi.tmLanguage
Created April 15, 2016 15:34
SublimeText syntax highlighting for Taxi timesheets files (tks)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>tks</string>
</array>
<key>name</key>
<string>Taxi</string>
@LeBenLeBen
LeBenLeBen / nginx.conf
Last active April 26, 2023 10:14
Nginx rewrite rules for WordPress multisite
# WordPress multisite rewrite for subfolder install
rewrite ^/(xmlrpc\.php|wp-[0-9a-z-]+\.php) /wordpress/$1;
rewrite ^/(wp-(admin|includes).*) /wordpress/$1;
# Rewrite assets that lives in /content but has wrong URLs (YooTheme/Widgetkit)
rewrite ^(?!\/content)(?:.*)content[^.](.*) $scheme://$host/content/$1;