Skip to content

Instantly share code, notes, and snippets.

View santiago's full-sized avatar

Santiago Gaviria santiago

  • Ontoworks
  • Planet Earth
View GitHub Profile
@santiago
santiago / cookiemonster.go
Created January 14, 2017 04:42 — forked from dacort/cookiemonster.go
Simple script to extract (encrypted) cookies out of Chrome OS X cookie store. Usage: ./cookiemonster domain.com
package main
import (
"code.google.com/p/go.crypto/pbkdf2"
"crypto/aes"
"crypto/cipher"
"crypto/sha1"
"database/sql"
"fmt"
"log"
init coder
index item: 0
for ID: -1
configure cell
Yeah dude I'm totally set, I promise
2015-07-14 21:35:26.104 DrawPad[10913:784606] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSLayoutConstraint:0x7fb069f22bb0 H:[UIImageView:0x7fb069f24810(276)]>",
"<NSLayoutConstraint:0x7fb069f277b0 H:[UIImageView:0x7fb069f24810]-(0)-| (Names: '|':UIView:0x7fb069f24700 )>",
/*
Liquid flow rate sensor -DIYhacking.com Arvind Sanjeev
Measure the liquid/water flow rate using this code.
Connect Vcc and Gnd of sensor to arduino, and the
signal line to arduino digital pin 2.
*/
byte statusLed = 13;

Next Steps

  • Measure time spend on index, flush, refresh, merge, query, etc. (TD - done)
  • Take hot threads snapshots under read+write, read-only, write-only (TD - done)
  • Adjust refresh time to 10s (from 1s) and see how load changes (TD)
  • Measure time of a rolling restart doing disable_flush and disable_recovery (TD)
  • Specify routing on query -- make it choose same node for each shard each time (MD)
  • GC new generation size (TD)
  • Warmers
  • measure before/after of client query time with and without warmers (MD)
$DNA1 = "ACGGGAGGACGGGAAAATTACTACGGCATTAGC";
$x = "AC";
$c = () = $DNA1 =~ /$x/g;
print "$c\n";
{ "query":
{
"filtered": {
"query": {
"multi_match": {
"fields": [
"title^2",
"description"
],
"type": "phrase_prefix",
List of Colombians
File:Departments of colombia.svg
File:Flag of Colombia.svg
File:Panoramica de Medellin-Colombia.jpg
Category:Colombian society
File:Coat of arms of Colombia.svg
File:Tree map export 2009 Colombia.jpeg
File:Densidad pop col only Colombia.png
Colombian Emeralds
Colombian Navy
@santiago
santiago / index.html
Created August 18, 2013 04:26 — forked from tmcw/index.html
<!DOCTYPE html>
<html>
<head>
<script src='http://api.tiles.mapbox.com/mapbox.js/v0.6.4/mapbox.js'></script>
<script src='http://d3js.org/d3.v2.min.js?2.9.3'></script>
<link
href='http://api.tiles.mapbox.com/mapbox.js/v0.6.4/mapbox.css'
rel='stylesheet' />
<style>
body { margin:0; padding:0; }
{
"settings": {
"index": {
"index.mapper.dynamic": false
}
}
}
{
"settings": {
"index": {
"analysis": {
"char_filter" : {
"remove_punctuation" : {
"type" : "mapping",
"mappings" : [ ".=>-", ",=>-", ";=>-" ]
}
},