Skip to content

Instantly share code, notes, and snippets.

@jenhaoyang
jenhaoyang / linux-dialup-modems.md
Created September 21, 2023 09:56 — forked from nstarke/linux-dialup-modems.md
Connecting to Raspberry Pi's using 56k Modems

Dial Up Connections on Linux

In this tutorial we will detail how to connect two linux hosts via 56k modems. To do this we will use the following components:

@jenhaoyang
jenhaoyang / boot.bat
Last active June 26, 2023 08:37 — forked from jamesrcounts/boot.bat
Scripted rabbitmq install. This Script will install rabbitmq 3.10.1. Erlang will be automatically install before rabbitmq. Do not install erlang manually.
@powershell -ExecutionPolicy unrestricted .\bootmq.ps1
@jenhaoyang
jenhaoyang / mysqldump-cron.sh
Created August 1, 2022 01:57 — forked from ebta/mysqldump-cron.sh
Backup MySQL Database Daily, Weekly and Monthly
#!/bin/bash
# Modified from: https://grahamrpugh.com/2019/01/15/mysqldump-daily-weekly-monthly.html
# Create database user with these privileges:
# SELECT, RELOAD, SHOW DATABASES, LOCK TABLES, TRIGGER, SHOW VIEW
#
# CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
# GRANT SELECT, RELOAD, SHOW DATABASES, LOCK TABLES, TRIGGER, SHOW VIEW ON *.* TO 'newuser'@'localhost';
# FLUSH PRIVILEGES;
@jenhaoyang
jenhaoyang / colortrace.py
Last active April 16, 2022 11:44 — forked from exhuma/colortrace.py
Simple Python Traceback for Slack
'''
This module provides a function ``make_except_hook`` which returns a function
usable as replacement for ``sys.excepthook``.
All imports are done dynamically to make this function a self-contained,
copy/pasteable piece of code.
Requires the "blessings" module to work!
--- License - (MIT) ----------------------------------------------------------
@jenhaoyang
jenhaoyang / client.py
Created August 31, 2020 07:21 — forked from kylehounslow/client.py
Send and receive images using Flask, Numpy and OpenCV
from __future__ import print_function
import requests
import json
import cv2
addr = 'http://localhost:5000'
test_url = addr + '/api/test'
# prepare headers for http request
content_type = 'image/jpeg'
@jenhaoyang
jenhaoyang / .gitconfig
Created March 5, 2020 09:14 — forked from shawndumas/.gitconfig
Using WinMerge as the git Diff/Merge Tool on Windows 64bit
[mergetool]
prompt = false
keepBackup = false
keepTemporaries = false
[merge]
tool = winmerge
[mergetool "winmerge"]
name = WinMerge
@jenhaoyang
jenhaoyang / install virtualenv ubuntu 16.04.md
Created September 12, 2019 03:47 — forked from Geoyi/install virtualenv ubuntu 16.04.md
How to install virtual environment on ubuntu 16.04

How to install virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv 
@jenhaoyang
jenhaoyang / project-ideas01.md
Created June 28, 2019 02:35 — forked from MWins/project-ideas01.md
Back end Projects - list

Project Ideas

Ok. I'm going to list off some ideas for projects. You will have to determine if any particular idea is good enough to include in a portfolio. These aren't creative ideas. They likely already exist. Some are way too advanced while others are simplistic.

I will recommend to post any project you make to github and make a github project page for it. Explain in as much detail as possible how you made it, how it can be improved etc. Document it.

If you pick an advanced idea, setup a development roadmap and follow it. This will show some project management skills.

Another piece of advice for those who are design challenged. Use different front end frameworks and use different themes for those frameworks to provide appealing designs without looking like yet another bootstrap site.