Skip to content

Instantly share code, notes, and snippets.

🥝
/shrug

Luke Hedger lukehedger

🥝
/shrug
Block or report user

Report or block lukehedger

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lukehedger
lukehedger / ffmpeg-compress-mp4
Last active Nov 15, 2019
Compress mp4 using FFMPEG
View ffmpeg-compress-mp4
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4
@lukehedger
lukehedger / git-commit-signing.md
Created Oct 28, 2019
Config for automatically signing Git commits
View git-commit-signing.md

Git Commit Signing

Windows

.gitconfig

[user]
	signingkey = <GPG_KEY_ID>
[commit]
	gpgsign = true
@lukehedger
lukehedger / kill-jekyll.md
Last active Mar 17, 2019
Kill Jekyll server
View kill-jekyll.md

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.

View SketchSystems.spec
My Awesome Sketch
First State
some event -> Second State
Second State
@lukehedger
lukehedger / SketchSystems.spec
Last active Dec 24, 2018
Single-lever mixer tap
View SketchSystems.spec
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 Oct 7, 2018
Render HTML elements defined in JSON to JSX
View react-render-html-tags.js
import React from 'react';
const Component = (props, context) => {
const { elements } = this.props;
return (
<div>
{elements.map( (element, i) => {
@lukehedger
lukehedger / HelloYou.sol
Created Nov 23, 2017 — forked from anonymous/HelloYou.sol
Created using browser-solidity: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://ethereum.github.io/browser-solidity/#version=soljson-v0.4.18+commit.9cf6e910.js&optimize=undefined&gist=
View HelloYou.sol
pragma solidity ^0.4.18;
// import './SomeContract.sol';
contract HelloYou {
event Hello(address you);
function sayHello() public {
address _person = msg.sender;
@lukehedger
lukehedger / r-pi-vnc.md
Last active Aug 9, 2018
Setup VNC between Raspberry Pi and OSX
View yarn-error.log
Arguments:
/usr/local/bin/node /usr/local/Cellar/yarn/1.3.2/libexec/bin/yarn.js
PATH:
/Users/luke/go/src/github.com/meta-network/go-meta/bin:/Users/luke/go/bin/geth:/Users/luke/go/bin/swarm:/Users/luke/go/bin/geth:/Users/luke/go/bin/swarm:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/luke/go/bin:/usr/local/go/bin
Yarn version:
1.3.2
Node version:
You can’t perform that action at this time.