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
## Widget Composer Front pipeline
## Define the process
jobs:
- name: production-front
build_logs_to_retain: 5
serial: true
plan:
## Trigger slack alarm
### 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:
/* 1 */
{
"_id" : ObjectId("5c102386ed55ce0085ec7923"),
"content" : [
{
"sectionTitle" : "Description",
"sectionItems" : [
{
"type" : "text-input",
"label" : "Subject",
@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" : [
{
@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 / 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 / bash_profile.sh
Created August 24, 2017 22:55
Git-Helpers
# Funcion que hace: Add | commit al branch que estemos en ese momento sin hacer push
# @Params: Recibe como parametro el mensaje del commit
function __commit {
if [ -z $1 ]; then
echo "Debe poner el texto del commit"
else
git add -A .
git commit -m "$1"
fi
}
1.- Editamos el archivo de configuracion /usr/local/etc/dnsmasq.conf
Cambiamos: address=/knowblyhost/127.0.0.1 por address=/knowblyhost.local/127.0.0.1
2.- Editamos nuestros archivos hosts:
En mac la ruta es: /private/etc/hosts
Agregamos la linea 127.0.0.1 knowblyhost.local
3.- Renombramos el resolver:
Comando para mac:
mv /etc/resolver/knowblyhost /etc/resolver/knowblyhost.local
@vickoman
vickoman / dns_wildcards.md
Last active August 28, 2017 15:40
how to configure wildcard DNS for MACOS

Primer paso instalar dnsmasq:

brew install dnsmasq

Copiar El ARchivo de configuracion default

cp /usr/local/opt/dnsmasq/dnsmasq.conf.example /usr/local/etc/dnsmasq.conf

Editar el archivo /usr/local/etc/dnsmasq.conf

@vickoman
vickoman / estilo.css
Created November 28, 2014 18:43
facebook placeholder
@-webkit-keyframes placeHolderShimmer{
0%{
background-position:-468px 0
}
100%{
background-position:468px 0
}
}
@keyframes placeHolderShimmer{