Skip to content

Instantly share code, notes, and snippets.

var webpack = require('webpack');
var path = require('path');
var CompressionPlugin = require("compression-webpack-plugin");
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var Clean = require('clean-webpack-plugin');
module.exports = {
entry: {
app: ['./application.jsx'],
@Haegin
Haegin / xmas.md
Last active December 8, 2015 21:41
Christmas List!
  • Hoody - (I think Mum might be on this one already...)
  • Brewing stuff
    • Wort chilling coil
    • Refractometer (like this)
  • Midweight merino hiking socks
  • Boxers
  • A new and pretty set of D&D dice (see here for ideas!
  • Merino buff with a nice pattern
  • Nexus 6P! 🙊
  • Metal Fish Spatula
@Haegin
Haegin / SmartOS.md
Last active December 10, 2015 17:12
SmartOS notes

Services

  • svccfg import file.xml imports a service manifest file

  • svcadm enable [service] start service

  • svcadm disable [service] stop service

  • tail $(svcs -L [service]) show logs for management of service

Network

@Haegin
Haegin / gist:5fefe1a6b9ca0c60f6f4
Created November 5, 2014 00:33
NPM errors from multiple instances of ghost in a docker container
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using npm@1.4.28
3 info using node@v0.10.33
4 verbose config Skipping project config: /ghost/.npmrc. (matches userconfig)
5 verbose run-script [ 'prestart', 'start', 'poststart' ]
6 info prestart ghost@0.5.3
7 info start ghost@0.5.3
8 verbose unsafe-perm in lifecycle true
9 info ghost@0.5.3 Failed to exec start script
function! ArrayToHash()
"mark the start and end of the array
normal f[ms%me
" one item per line
's,'es/, /, /g
" re-indent
normal vi[=
" update the ending mark as it might be wrong now
normal! `s%me
" change ':foo,' to 'foo: "foo",'

Communication at FreeAgent

Medium Timeliness Response Expected?
Face to Face / Skype Right here, right now It'd be rude not to
IM In the very near future. Hopefully less than an hour. Probably
Email Daily Depending on context but it's reasonable to expect a response
Discourse Hopefully this week No

Array to Hash

This vim function turns Ruby arrays of symbols into new-style Ruby hashes where the symbol is the key and the value is the symbol converted to a MixedCase string.

Change Hash Style

This vim function switches Ruby hashes from the old hash-rocket style to the newer JSONesque style and back. It'll try and guess what the current style is and switch to the other one.

Dependencies

-oooo:-
omhsoosho`
Ndo:``:oh-
dms+--+ym:
-ymhohdh+`
`N/`.s.
+: +
-- :
@Haegin
Haegin / 2014 mtrboxes changes v1.0.md
Last active August 29, 2015 14:01
MTR box changes for SelfAssessment 2013/14.

Based on 'HMRC-MTR-2014-v1-0-20130927' RIM artefacts. Version 1.0 - Changes since 2012-13

SA101

  • ASE1 - Xpath change

  • ASE2 - Box removed not used for 2013/14.

  • ASE15 - New box on 2013/14 Return UKpatentRoyaltyPaymentsMade.

  • AOR9 - Now BonusSecurityRedemptionDistributionRelief. Was AOR10 in 2012/13 - box EmployersWidowsOrphansEtcBenefitScheme removed for 2013/14.

Keybase proof

I hereby claim:

  • I am Haegin on github.
  • I am haegin (https://keybase.io/haegin) on keybase.
  • I have a public key whose fingerprint is 61BE 3FD4 7DAE BED3 F394 0D6E A911 D5A2 1DC4 3EDC

To claim this, I am signing this object: