Skip to content

Instantly share code, notes, and snippets.

View s10wen's full-sized avatar
💭
🦄

Simon Owen s10wen

💭
🦄
View GitHub Profile
@s10wen
s10wen / gist:b2c839e725965ad11c1f
Last active August 29, 2015 14:23
Sublime Text > Preferences > Package Settings > Emmet > Settings - User
{
"snippets": {
"css": {
"snippets": {
"bdr": "border-radius:",
"bb": "border-bottom: ",
"cp": "cursor: pointer;",
"mza": "margin: 0 auto;",
"mxw": "max-width:",
"ofw": "overflow-wrap: breakword;",
@s10wen
s10wen / gist:73afbfa5971ba966307a
Last active August 24, 2016 08:25
UpFrontConf 2015 - Slides
Brad Frost:
TBC
Alicia Sedlock:
https://speakerdeck.com/aliciasedlock/jumping-into-front-end-testing
Richard Rutter:
http://webtypography.net/talks/upfront2015/
Soledad Penadés:
@s10wen
s10wen / gist:64bf18ccb3702747a04a
Created March 9, 2015 22:33
ConfConf Monokai Theme
HTML:
<link href='http://fonts.googleapis.com/css?family=Source+Code+Pro' rel='stylesheet' type='text/css'>
CSS:
/* @alpha : hsl( 78, 92%, 47%); light green */
/* @bravo : hsl(340, 95%, 56%); dark red */
/* @charlie: hsl(187, 71%, 68%); light blue */
/* @delta : hsl(262, 100%, 73%); purple */
/* @echo : hsl( 53, 66%, 71%); yellow */
Got https://github.com/s10wen/24pullrequests set up locally, then tried to go back to go back to my Octopress blog: https://github.com/s10wen/s10wen.github.io
Below are things I tried and what it output.
***
```
rake generate
```
#
# Prettified CSS from http://images.apple.com/v/home/bd/styles/home.built.css
# on 9th September 2014
#
/* ---- BUILT FILE. DO NOT MODIFY THIS DIRECTLY. ---- */
html {
font-size: 100%;
-ms-text-size-adjust: 100%;
@s10wen
s10wen / gist:6cf00ab86b96e5d1fa9c
Created July 22, 2014 12:12
copy `ls -al` from a server to local txt file
#!/bin/bash
# ssh into server
ssh server@wherever.com
# cd to path
cd /where/you/want/
# list everything in a vertical list
ls -al
#!/bin/bash
# Adds WordPress zipped up:
wget http://wordpress.org/latest.tar.gz
# Unzip WordPress:
tar xfz latest.tar.gz
# Move the contents of WordPress back a folder:
mv wordpress/* ./
@s10wen
s10wen / gist:b3cb5eac430b7b5cc86d
Created June 10, 2014 09:03
websocket express.io
# client.html
```html
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="/socket.io/socket.io.js"></script>
<script>
io = io.connect()
room = prompt('type a room name')
// Emit ready event with room name.
@s10wen
s10wen / gist:823e76d80322b0f28740
Created May 23, 2014 12:55
Bash script to watch for DNS changes
#!/bin/bash
while :;
do
echo "$(date)"
dig sitename.com;
sleep 600;
done