Skip to content

Instantly share code, notes, and snippets.

Avatar
👋
Running After Year End Goals

Rishabh Agrawal LabN36

👋
Running After Year End Goals
View GitHub Profile
@tomysmile
tomysmile / mac-setup-redis.md
Last active Oct 18, 2021
Brew install Redis on Mac
View mac-setup-redis.md

type below:

brew update
brew install redis

To have launchd start redis now and restart at login:

brew services start redis
@noelboss
noelboss / git-deployment.md
Last active Oct 18, 2021
Simple automated GIT Deployment using Hooks
View git-deployment.md

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.

@diekaines
diekaines / ESP8266-12 nokia 5510
Last active Oct 4, 2019
ESP8266-12 LCD nokia 5510
View ESP8266-12 nokia 5510
/*
* SCHEMATIC http://i.imgur.com/plwZbFa.png
*
* Connecting ESP8266 (ESP-12) and Nokia 5110 LCD
* www.KendrickTabi.com
* http://www.kendricktabi.com/2015/08/esp8266-and-nokia-5110-lcd.html
*/
#include <ESP8266WiFi.h>
#include <ArduinoJson.h>
@vasanthk
vasanthk / System Design.md
Last active Oct 19, 2021
System Design Cheatsheet
View System Design.md

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@spalladino
spalladino / mysql-docker.sh
Created Dec 22, 2015
Backup and restore a mysql database from a running Docker mysql container
View mysql-docker.sh
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@gitaarik
gitaarik / git_submodules.md
Last active Oct 10, 2021
Git Submodules basic explanation
View git_submodules.md

Git Submodules basic explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of advantages of using submodules:

  • You can separate the code into different repositories.