Skip to content

Instantly share code, notes, and snippets.

fu$ yarn exec webpack-dev-server
yarn exec v1.3.2
warning package.json: No license field
module.js:544
throw err;
^
Error: Cannot find module './codes.json'
at Function.Module._resolveFilename (module.js:542:15)
at Function.Module._load (module.js:472:25)
crystal(test)$ bin/crystal spec spec/std/socket_spec.cr
clang: error: no such file or directory: '/Users/Tate/Code/manastech/crystal/src/ext/libcrystal.a'
Error: execution of command failed with code: 1: `cc -o "/Users/Tate/Code/manastech/crystal/.crystal/crystal-run-spec.tmp" "${@}" -rdynamic /Users/Tate/Code/manastech/crystal/src/ext/libcrystal.a -levent -lpcre -lgc -lpthread -ldl`
We couldn’t find that file to show.
@tatey
tatey / es_index_conflict_mapping
Last active January 28, 2016 06:19
Identify conflicting field mappings in ElasticSearch 1.x > 2.0 upgrade
#!/usr/bin/env ruby
require 'json'
if ARGV.size < 1
puts "usage: #{__FILE__} <FILE1> [FILE2 ...]"
puts " eg: ./es_index_conflict_mapping applogs-2016.01.10.json applogs-2016.01.13.json applogs-2016.01.08.json applogs-2016.01.11.json applogs-2016.01.27.json"
abort
end
#!/bin/sh
### BEGIN INIT INFO
# Provides: hklifxd
# Required-Start: $local_fs $network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: hklifxd initscript
# Description: HomeKit bridge for LIFX lights
import UIKit
class Style {
static let tableCellInset: CGFloat = 15.0
}
class StyleColor {
static let primaryBackgroundColor = UIColor.blackColor()
static let primaryTextColor = UIColor.whiteColor()
static let secondaryTextColor = UIColor(red: 0.45, green: 0.45, blue: 0.45, alpha: 1)
enum Type : UInt16
DeviceGetService = 2
DeviceStateService
DeviceGetPower = 20
DeviceSetPower
DeviceStatePower
def c_struct
{% if true %}
case self
in macro 'macro_4595589792' /Users/Tate/Desktop/lifx-crystal/src/lifx/message/type.cr:11, line 5:
1.
2. case self
3.
4. when DeviceGetService
5. C::LXDeviceGetService
6.
7. when DeviceStateService
8. C::LXDeviceStateService
#!/usr/bin/env ruby
require 'pry'
require 'pathname'
if ARGV.count != 3
puts "usage: #{__FILE__} <TEMPLATE_IMAGE> <SOURCE_DIR> <DEST_DIR>"
exit(1)
end