Skip to content

Instantly share code, notes, and snippets.

View p365labs's full-sized avatar

Federico Panini p365labs

View GitHub Profile
@p365labs
p365labs / elasticsearch_create_repository.sh
Created May 30, 2020 18:31
Elasticsearch Create Repository
curl -X POST "localhost:9200/person/_bulk?pretty" -H 'Content-Type: application/json' -d'
{ "index":{} }
{ "name":"john doe","age":25 }
{ "index":{} }
{ "name":"mary smith","age":32 }
{ "index":{} }
{ "name":"robin green","age":15 }
{ "index":{} }
{ "name":"fred white","age":68 }
'
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"s3:ListBucketMultipartUploads",
"s3:DeleteBucketWebsite",
"s3:DeleteObjectVersion",
@p365labs
p365labs / uniqush-push.service
Created March 11, 2017 18:07
Uniqush Systemd script
[Unit]
Description=A unified push service for server-side notification to apps on mobile devices.
After=network.target
[Service]
PIDFile=/run/uniqush-push.pid
ExecStart=/usr/bin/uniqush-push -config=/etc/uniqush/uniqush-push.conf
ExecReload=/usr/bin/uniqush-push -config=/etc/uniqush/uniqush-push.conf
ExecStop=-/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /run/uniqush-push.pid
TimeoutStopSec=5
@p365labs
p365labs / dabblet.css
Created September 27, 2013 20:31 — forked from LeaVerou/dabblet.css
Typing animation with pure CSS.
/**
* Typing animation with pure CSS.
* Works best in browsers supporting the ch unit.
*/
@keyframes typing { from { width: 0; } }
@keyframes blink-caret { 50% { border-color: transparent; } }
h1 {
font: bold 200% Consolas, Monaco, monospace;