Skip to content

Instantly share code, notes, and snippets.

@fijimunkii
fijimunkii / elasticdump_all_indices.sh
Created December 2, 2016 23:30
elasticdump all indices
INPUT=$1
DEST=$2
indices=$(curl -s -XGET $INPUT/_cat/indices?h=i)
for INDEX in $indices
do
elasticdump --input=$INPUT/$INDEX --output=$DEST/$INDEX --type=data
done
@zchee
zchee / cgo.md
Last active April 17, 2025 04:57
cgo convert list

See also, http://libraryofalexandria.io/cgo/

Using Go cgo

cgo has a lot of trap.
but Not "C" pkg also directory in $GOROOT/src. IDE's(vim) Goto command not works.

So, Here collect materials.

@19h
19h / u2f.js
Created June 18, 2015 15:15
U2F API for Chrome by Google Inc.
// Copyright 2014 Google Inc. All rights reserved
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
/**
* @fileoverview The U2F api.
*/
@pkrnjevic
pkrnjevic / fsevents_windows.go
Last active March 24, 2024 10:15
Windows USN Journal sample in Go based on Jeffrey Richter's superb MSDN Journal article. A work in progress, intended to provide similar API to go.fsevents.
//
// File: fsevents_windows.go
// Date: October 29, 2013
// Author: Peter Krnjevic <[email protected]>, on the shoulders of many others
//
// This code sample is released into the Public Domain.
//
package fsevents
import (
@robcowie
robcowie / django-uwsgi.ini
Last active March 10, 2023 20:29
Supervisord config examples
[program:uwsgi]
user=robdev
command=uwsgi --ini /path/to/config.uwsgi
autostart=false