Skip to content

Instantly share code, notes, and snippets.

View LeonDevLifeLog's full-sized avatar
:octocat:
Focusing

Leon LeonDevLifeLog

:octocat:
Focusing
  • nanjing,jiangsu China
View GitHub Profile
@LeonDevLifeLog
LeonDevLifeLog / make_cert.md
Created May 26, 2022 11:17 — forked from liuguangw/make_cert.md
使用openssl制作自定义CA、自签名ssl证书

自签名ssl证书生成

生成CA私钥

# 创建文件夹 ca 保存Ca相关
mkdir ca
cd ca
#创建私钥 (建议设置密码)
openssl genrsa -des3 -out myCA.key 2048
@LeonDevLifeLog
LeonDevLifeLog / setup_android_build.sh
Created January 3, 2022 09:07
To set up build environment for Android kernel development
###
# Download Android NDK to be able to compile runtime cmd-line tools on ARM
# - https://developer.android.com/ndk/downloads/index.html
wget https://dl.google.com/android/repository/android-ndk-r15b-linux-x86_64.zip
###
# Download up-to-date adb/fastboot platform tools to interface with Android (adb/fastboot)
# - https://developer.android.com/studio/releases/platform-tools.html
wget https://dl.google.com/android/repository/platform-tools-latest-linux.zip
@LeonDevLifeLog
LeonDevLifeLog / git.migrate
Created July 30, 2018 03:50 — forked from niksumeiko/git.migrate
Moving git repository and all its branches, tags to a new remote repository keeping commits history
#!/bin/bash
# Sometimes you need to move your existing git repository
# to a new remote repository (/new remote origin).
# Here are a simple and quick steps that does exactly this.
#
# Let's assume we call "old repo" the repository you wish
# to move, and "new repo" the one you wish to move to.
#
### Step 1. Make sure you have a local copy of all "old repo"
### branches and tags.
@LeonDevLifeLog
LeonDevLifeLog / react-typescript.md
Created July 1, 2018 10:04 — forked from juhaelee/react-typescript.md
React + Typescript Cheatsheet

React + Typescript Cheatsheet

Setup

If you use atom... download & install the following packages:

What are Typescript type definition files? (*.d.ts)

#!/bin/sh
# cross & static compile shadowsocks-libev
PCRE_VER=8.41
PCRE_FILE="http://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-$PCRE_VER.tar.gz"
MBEDTLS_VER=2.6.0
MBEDTLS_FILE="https://tls.mbed.org/download/mbedtls-$MBEDTLS_VER-gpl.tgz"
@LeonDevLifeLog
LeonDevLifeLog / README.md
Created September 16, 2017 15:32 — forked from savely-krasovsky/README.md
Telegram webhooks with nginx reverse proxy

Make config file:

sudo nano /etc/nginx/sites-available/bot.conf

Then copy and paste bot.conf content and edit YOUR.DOMAIN strings. Now install Let's Encrypt on your server. For example in Debian you need to add jessie-backports and easily install it with apt-get:

sudo apt-get install -t jessie-backports letsencrypt

Then get cert for you domain: