Skip to content

Instantly share code, notes, and snippets.

View vickoman's full-sized avatar
🏠
Working from home

Victor Manuel vickoman

🏠
Working from home
View GitHub Profile
@vickoman
vickoman / socket-cheatsheet.js
Created February 2, 2018 03:31 — forked from alexpchin/socket-cheatsheet.js
A quick cheatsheet for socket.io
// sending to sender-client only
socket.emit('message', "this is a test");
// sending to all clients, include sender
io.emit('message', "this is a test");
// sending to all clients except sender
socket.broadcast.emit('message', "this is a test");
// sending to all clients in 'game' room(channel) except sender
@vickoman
vickoman / curl-remove-children-and-locked
Last active January 30, 2019 21:52
Curl to remove children and locked
# PASO 1 - COPIAR INDICE ELIMINANDO EL FIELD LOCKED
curl -X POST "$URL_ES_TARGET/_reindex?pretty=true" -H 'Content-Type: application/json' -d'
{
"source": {
"index": "theme_base"
},
"dest": {
"index": "theme_base-draft",
"version_type": "external"
},
@vickoman
vickoman / flashcars-5ae9a912c1c69c0047439adb
Last active February 12, 2019 01:37
Flashcards not found with embed_url
/* 1 */
{
"_id" : ObjectId("5ae9a912c1c69c0047439adb"),
"name" : "BETA - Flashcards",
"originalName" : "BETA - Flashcards-1521065275022",
"settings" : [
{
"information" : "When the user flips a flashcard, choose to display both the term and definition together, or just the counterpart to the term or definition.",
"values" : [
{
/* 1 */
{
"_id" : ObjectId("5c102386ed55ce0085ec7923"),
"content" : [
{
"sectionTitle" : "Description",
"sectionItems" : [
{
"type" : "text-input",
"label" : "Subject",
### Author: Peter
### Created: Visual Studio Code
### Title: Widget Composer SDK pipeline
## Define the process
jobs:
- name: production-sdk
build_logs_to_retain: 5
serial: true
plan:
## Widget Composer Front pipeline
## Define the process
jobs:
- name: production-front
build_logs_to_retain: 5
serial: true
plan:
## Trigger slack alarm