brew install --cask macfuse
brew tap gromgit/homebrew-fuse
brew install ntfs-3g-mac
sudo mkdir /Volumes/NTFS
sudo /usr/local/sbin/mount_ntfs /dev/diskXsY /Volumes/NTFS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
positions: | |
filename: /tmp/data/positions.yaml | |
server: | |
log_level: warn | |
#disable: true | |
http_listen_address: {{ env "NOMAD_IP_http" }} | |
http_listen_port: {{ env "NOMAD_PORT_http" }} | |
grpc_listen_address: {{ env "NOMAD_IP_grpc" }} | |
grpc_listen_port: {{ env "NOMAD_PORT_grpc" }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { omit } from 'ramda'; | |
import { | |
compose, | |
withState, | |
branch, | |
lifecycle, | |
mapProps, | |
renderComponent, | |
setDisplayName | |
} from 'recompose'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {prop, memoize, converge} from "ramda" | |
const state = { | |
foo: 1, | |
bar: 2 | |
} | |
const fooSelector = prop("foo") // 1 | |
const barSelector = prop("bar") // 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { apply, concat, identity, pipe, pipeP, unapply } = require('ramda'); | |
/** | |
* Similar to `pipe` and `pipeP`, but this method allows interpolation of | |
* async and sync functions by preceding all the passed in functions with a | |
* resolved promise. All functions must be unary (unlike the first argument | |
* of it's sister functions). | |
*/ | |
module.exports = | |
pipe( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import R from 'ramda' | |
import { Jobs } from '../actions/index' | |
const reducer = (state = [], action) => R.cond([ | |
[ R.equals(Jobs.TYPE.receive), R.always(action.payload) ], | |
[ R.T, R.always(state) ] | |
])(action.type) | |
export default reducer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i "http://svtplay8g-f.akamaihd.net/i/se/open/20170414/1373874-001A/PG-1373874-001A-DOXTHATSUGAR-02_,988,240,348,456,636,1680,2796,.mp4.csmil/index_5_av.m3u8?null=0" -vcodec copy -strict experimental "file:dox-sockerfilmen-avsnitt-1.mp4" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ lsusb | |
Bus 001 Device 005: ID 0ccd:10af TerraTec Electronic GmbH | |
Bus 001 Device 004: ID 148f:7601 Ralink Technology, Corp. | |
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter | |
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. | |
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub | |
$ dmesg | |
[2702794.172946] usb 1-1.5: new high-speed USB device number 5 using dwc_otg | |
[2702794.277932] usb 1-1.5: New USB device found, idVendor=0ccd, idProduct=10af |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uuidgen | tr "[:upper:]" "[:lower:]" |
NewerOlder