Skip to content

Instantly share code, notes, and snippets.

@ringods
ringods / output.log
Last active June 1, 2016 19:46
binding.read error
> @ images:watch /pipeline/source
> nodemon --watch ./src/images --ext gif,png,jpg -x "npm run images:build" --legacy-watch
fs.js:651
var r = binding.read(fd, buffer, offset, length, position);
^
Error: EBADF: bad file descriptor, read
at Error (native)
at Object.fs.readSync (fs.js:651:19)
@ringods
ringods / sitemap.conf
Created January 26, 2017 21:10
Delicious Bookmark Scraping
{
"_id": "delicious",
"selectors": [
{
"delay": "",
"id": "per_page_bookmarks_enumeration",
"multiple": false,
"parentSelectors": [
"_root"
],
@ringods
ringods / import_to_pinboard.py
Created January 29, 2017 17:18
Pinboard Import Script
import csv
import json
import urllib
bookmark_file = '<bookmark_file_from_delicious>'
pinboard_token = '<your pinboard token>'
def process_tags(csv_tags):
json_tags = json.loads('{ "tags": %s }' % csv_tags)
json_tags = json_tags['tags']
@ringods
ringods / kops-cluster.yaml
Created February 22, 2017 16:23
Full kops specification with Cluster and InstanceGroups for masters and nodes
---
apiVersion: kops/v1alpha2
kind: Cluster
metadata:
name: kops.k8s-int-kops.skyscrape.rs
spec:
api:
loadBalancer:
type: Internal
subnets:
version: '2'
services:
zookeeper:
image: "confluentinc/cp-zookeeper:4.1.0"
ports:
- "2181:2181"
expose:
- "2181"
environment:
- ZOOKEEPER_CLIENT_PORT=2181