Skip to content

Instantly share code, notes, and snippets.

View nottrobin's full-sized avatar

Robin Winslow nottrobin

View GitHub Profile
@nottrobin
nottrobin / proxy-headers.apache2
Last active August 29, 2015 14:27
Apache config to send proxy headers to a reverseproxy
<VirtualHost *:443>
...
RequestHeader set X-Forwarded-Proto &#39;https&#39; env=HTTPS
ProxyPass / http://10.0.0.3/
ProxyPassReverse / http://10.0.0.3/
...
</VirtualHost>
@nottrobin
nottrobin / how-to-use-vanilla.scss
Created August 4, 2015 17:35
How to use the vanilla framework
// Override any settings
$brand-color: #000;
// Import vanilla
@import '../node_modules/vanilla-framework/scss/vanilla';
// Either include the whole framework
@include vanilla;
// Or just include the parts you want
@include vf-grid;
@include vf-buttons;
@nottrobin
nottrobin / including-vanilla-package.sh
Last active August 29, 2015 14:26
Including vanilla in your package.json
npm install --save vanilla-framework
@nottrobin
nottrobin / include-vanilla.html
Created August 4, 2015 17:33
Hotlinking to the compiled vanilla framework
<link rel=”stylesheet” href=”https://assets.ubuntu.com/v1/vanilla-framework-version-0.0.54.min.css” />
@nottrobin
nottrobin / include-parts.scss
Last active August 29, 2015 14:26
Including parts of the vanilla framework
@import 'vanilla'; // Import the whole framework - nothing output at this point
@include vf-grid; // Output the CSS for the grid
@nottrobin
nottrobin / importing-parts.scss
Created August 4, 2015 17:23
Importing parts of vanilla
// Only import the grid
@import 'modules/grid';
@include vf-grid;
@nottrobin
nottrobin / override-settings.scss
Last active August 29, 2015 14:26
Overriding Vanilla's settings
$brand-color: #772953; // Canonical’s colour
@import 'vanilla'; // Import vanilla
@include vanilla; // Use vanilla
@nottrobin
nottrobin / remove-sidebar.css
Last active March 14, 2019 05:41
slack.com remove left sidebar
#team_menu {display: none;}
#col_channels_bg {display: none;}
#col_channels {display: none;}
#messages_container {margin-left: 0;}
#messages-input-container {left: -160px;}
`:/ooo+/-`
.ohhhhhhhhhh+`
:hhhhhhhhhhhhhy.
`.-://++oooooo++//. .hhhhhhhhhhhhhhhy
`-:+ooooooooooooooooooo- -hhhhhhhhhhhhhhhh`
/osooooooooooooooooooooo/ `yhhhhhhhhhhhhhho
` /ooooooooooooooooooooooo. .shhhhhhhhhhhho`
-//- -ooooooooooooooooooooooo- :shhhhhhhho-
`/++++/- .osooooooooooooooooooooo+. .-::-.
./+++++++/- `/ooooooooooooooooosoooooo/-.` `.-/oo-
`.:/osyhhhhyoo+/. ..-/::///:-..
.:shmdmMNNNNNNNMmmMNNhdsshhddhyyysoss+-`
`-odNMNdhhhyyysoooo+oyddmdh`-hhdmdhhhhysssssyy/.
./yNmhyhyyysyyyhdyyssy+ssoooo+/. :hhyyyyys+///o+ssdy:`
`/hmhhyhhyssydyysyosossyssyhhdddddh- :ysosyhdNNNmhs++/+dms:
`-smMMmmsssyyyssoy/+ssyhdyysss++////-o+ `osyddhyssyydhmNh+-+mNh:
`o/ydmNmhoosssyshyssyhsossooososshddmmhyso``:yyhdmdNdNNNdhdmNNy++mN+`
+NNNMds++sydhyss+so++o+sosydddhs+:-..``` ````.`--:/shhyosdh+yNs.
hMmyo:ohNdssooossososhdNmh+-.` `sho` `-odmyydmNMm: