Skip to content

Instantly share code, notes, and snippets.

View dragos-constantin-stoica's full-sized avatar
🎩
Having good time!

Dragos STOICA dragos-constantin-stoica

🎩
Having good time!
View GitHub Profile
@ericlowry
ericlowry / couchdb.sh
Last active August 11, 2023 05:41
Create a couchdb container for testing
#!/usr/bin/env bash
#
# couchdb.sh - manage the docker development environment for couchdb
#
COMMAND="$1"
CONTAINER="$2"
IMAGE="apache/couchdb:latest"
@ericlowry
ericlowry / upsert.js
Last active August 11, 2023 05:46
couchdb nano upsert - fast and simple
//
// async upsert( db, doc[, id] )
//
// attempts to insert a document, on document conflict, attempt to create a new version
//
const upsert = (db, doc, id) =>
// attempt to insert the doucment "as is"
db.insert(doc, id).catch(err => {
// for anything other than a document conflict...
if (err.statusCode !== 409)
@sbusso
sbusso / bootstrap-wizard-powered-by-vue2.markdown
Last active September 5, 2023 15:12
Bootstrap Wizard powered by Vue2
@eyecatchup
eyecatchup / apple-meta-insanity.html
Created February 8, 2015 12:28
Insanity of Apple-specific meta tags..
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Apple Meta Insanity</title>
<!--
APPLE WEB APP META TAGS
-->
@brayden-morris-303
brayden-morris-303 / CoreBluetooth.md
Last active February 18, 2023 04:53
Overview of Bluetooth Low Energy (BLE) and CoreBluetooth

CoreBluetooth and BLE

Bluetooth Low Energy (BLE)

Various Names:

  • Bluetooth Low Energy
  • BLE
  • BTLE
@Overbryd
Overbryd / nginx.conf
Created March 27, 2012 22:22
Nginx configuration for a CouchDB reverse proxy, also very useful for hosting CouchApps
worker_processes 4;
events {
worker_connections 1024;
}
http {
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
@wbzyl
wbzyl / nginx.conf
Created February 29, 2012 23:33
CouchDB behind Nginx
user wbzyl;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;