Skip to content

Instantly share code, notes, and snippets.

@ylt6
ylt6 / 0_reuse_code.js
Created April 18, 2017 08:50
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ylt6
ylt6 / RedisSubPubWorker.py
Created March 10, 2017 02:10 — forked from jobliz/RedisPythonPubSub1.py
A short script exploring Redis pubsub functions in Python
# coding=utf-8
import redis
class Subscriber(object):
def __init__(self,
redis_client,
ignore_subscribe_messages=True,
@ylt6
ylt6 / deployUser.md
Created February 24, 2017 15:26 — forked from learncodeacademy/deployUser.md
Adding a deploy user in Linux

(wherever it says url.com, use your server's domain or IP)

Login to new server as root, then add a deploy user

sudo useradd --create-home -s /bin/bash deploy
sudo adduser deploy sudo
sudo passwd deploy

And Update the new password