Skip to content

Instantly share code, notes, and snippets.

View lukehedger's full-sized avatar
🍵
(ू˃̣̣̣̣̣̣︿˂̣̣̣̣̣̣ ू)

Luke Hedger lukehedger

🍵
(ू˃̣̣̣̣̣̣︿˂̣̣̣̣̣̣ ू)
View GitHub Profile
@lukehedger
lukehedger / ffmpeg-compress-mp4
Last active March 24, 2024 13:37
Compress mp4 using FFMPEG
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4
@lukehedger
lukehedger / gWebFont.css
Last active August 14, 2023 13:36
Stylus + Google Web Fonts
/* Here's the compiled CSS */
@import url("http://fonts.googleapis.com/css?family=Droid+Sans");
body {
font-family: Droid Sans, Helvetica Neue, Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 25px;
font-weight: 300;
color: #444;
}
@lukehedger
lukehedger / kill-jekyll.md
Last active February 28, 2022 16:57
Kill Jekyll server

Stopping a Jekyll server with ctrl-z can cause issues as the process is not stopped fully. To kill it:

$ lsof -wni tcp:4000
$ kill -9 <PID of process>

And next time, use crtl-c to stop.

@lukehedger
lukehedger / showHiddenFiles
Created January 6, 2014 15:35
Show hidden files on Mac OSX
# show
$ defaults write com.apple.finder AppleShowAllFiles TRUE
$ killall Finder
# hide
$ defaults write com.apple.finder AppleShowAllFiles FALSE
@lukehedger
lukehedger / git-commit-signing.md
Last active December 14, 2020 16:21
Config for automatically signing Git commits

Git Commit Signing

Windows

.gitconfig

[user]
	signingkey = <GPG_KEY_ID>
[commit]
	gpgsign = true
@lukehedger
lukehedger / browserBorder.css
Created January 22, 2014 14:56
Border around browser viewport - with scrollbars inside
.page-wrapper {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 700; /* must be the higher than all other elements */
overflow: auto; /* moves scrollbars inside border */
background: #fff;
border: 5px solid #ff9900;
@lukehedger
lukehedger / SketchSystems.spec
Created January 14, 2020 13:47
My Awesome Sketch
My Awesome Sketch
Untouched
focus -> Invalid
Invalid
blur -> Valid
Valid
@lukehedger
lukehedger / SketchSystems.spec
Created March 7, 2019 17:04
My Awesome Sketch
My Awesome Sketch
First State
some event -> Second State
Second State
@lukehedger
lukehedger / SketchSystems.spec
Last active December 24, 2018 07:07
Single-lever mixer tap
Single-lever mixer tap
Closed*
flip lever -> Open
Open
flip lever -> Closed
Hot
turn tap -> Cold
Cold
turn tap -> Hot
@lukehedger
lukehedger / react-render-html-tags.js
Last active October 7, 2018 00:13
Render HTML elements defined in JSON to JSX
import React from 'react';
const Component = (props, context) => {
const { elements } = this.props;
return (
<div>
{elements.map( (element, i) => {