Skip to content

Instantly share code, notes, and snippets.

View s10wen's full-sized avatar
💭
🦄

Simon Owen s10wen

💭
🦄
View GitHub Profile
@s10wen
s10wen / gist:8805508
Last active August 29, 2015 13:56
Potential Devices

Re: https://twitter.com/s10wen/status/430702763719536641

https://twitter.com/s10wen/status/431714041577635840

<iframe class="vine-embed" src="https://vine.co/v/MB6z1h0vqBa/embed/simple" width="600" height="600" frameborder="0"></iframe><script async src="//platform.vine.co/static/scripts/embed.js" charset="utf-8"></script> <iframe class="vine-embed" src="https://vine.co/v/MB6uw5YZjvg/embed/simple" width="600" height="600" frameborder="0"></iframe><script async src="//platform.vine.co/static/scripts/embed.js" charset="utf-8"></script>
@s10wen
s10wen / gist:c555e0c1e3815ebcff15
Created May 22, 2014 13:55
.bash_prompt config
PS1="\[\e]2;$PWD\[\a\]\[\e]1;\]$(basename "$(dirname "$PWD")")/\W\[\a\]${BOLD}\$(usernamehost)\[$GREEN\]\w\$(git_info)\[$WHITE\]\n\n༼ つ ◕_◕ ༽つ⚡ \[$RESET\]"
Gives you:
https://www.flickr.com/photos/simonowendesign/14244272004/
@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
@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: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
#
# 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%;
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
```
@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 */
@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;",