Skip to content

Instantly share code, notes, and snippets.

View emsnguyen's full-sized avatar
🙈

Mien Nguyen emsnguyen

🙈
  • VHEC Japan
  • Shiga, Japan
  • 08:49 (UTC +09:00)
View GitHub Profile
@emsnguyen
emsnguyen / gist:d450510f77ece9c1c2baf03b68b0ce3e
Last active November 4, 2023 01:54
Guide to setting up Wowza Streaming Engine With TTL on DigitalOcean
Guide to setting up Wowza Streaming Engine With TTL on DigitalOcean
Prerequisites:
- Wowza streaming engine license (trial can be found here https://www.wowza.com/pricing/trial)
I. Install Wowza streaming engine
1. Create a droplet (ubutun LTS) on Digitalocean -> get the public ipv4
2. SSH to your droplet using private key generated while creating the droplet #1
3. Once you get into the droplet, download wowza streaming engine installer
wget https://www.wowza.com/downloads/WowzaStreamingEngine-4-8-24+4/WowzaStreamingEngine-4.8.24+4-linux-x64-installer.run
3. Give the installer permission to run
@emsnguyen
emsnguyen / jh-entity-updating.md
Created August 19, 2022 13:41 — forked from tinmegali/jh-entity-updating.md
Proceedings to updated entities using **jhipster**

Official Workflow

Here is the development workflow:

  • Modify your JPA entity (add a field, a relationship, etc.)
  • Compile your application (this works on the compiled Java code, so don’t forget to compile!)
  • Run ./mvnw liquibase:diff (or ./mvnw compile liquibase:diff to compile before)
  • A new “change log” is created in your src/main/resources/config/liquibase/changelog directory
  • Review this change log and add it to your src/main/resources/config/liquibase/master.xml file, so it is applied the next time you run your application

If you use Gradle instead of Maven, you can use the same workflow by running ./gradlew liquibaseDiffChangelog -PrunList=diffLog, and change the database configuration in build.gradle in the liquibase configuration if required.

@emsnguyen
emsnguyen / markdown-cheatsheet.md
Created August 17, 2022 13:15 — forked from mignonstyle/markdown-cheatsheet.md
Markdown記法 チートシート

Block Elements ## Headers 見出し 先頭に#をレベルの数だけ記述します。 ```

見出し1

見出し2

見出し3

見出し4

見出し5
見出し6
## 見出し2
### 見出し3
#### 見出し4
##### 見出し5
###### 見出し6 ## Block 段落 空白行を挟むことで段落となります。 ```
段落1
(空行)
段落2
``` 段落1 段落2 ## Br 改行 改行の前に半角スペース` `を2つ記述します。 ```
hoge
fuga(スペース2つ)
piyo
``` hoge
fuga piyo ## Blockquotes 引用 先頭に`>`を記述します。ネストは`>`を多重に記述します。 ```
> 引用 > 引用
>> 多重引用
``` > 引用 > 引用
>> 多重引用 ## Code コード `` `バッククオート` `` 3つ、あるいはダッシュ`~`3つで囲みます。 ```
print 'hoge'
``` ```
print 'hoge'
``` ### インラインコード `` `バッククオート` `` で単語を囲むとインラインコードになります。 ```
これは `インラインコード`です。
``` これは `インラインコード`です。 ## pre 整形済みテキスト 半角スペース4個もしくはタブで、コードブロックをpre表示できます ``` class Hoge def hoge print 'hoge' end end
``` class Hoge def hoge print 'hoge' end end ## Hr 水平線 アンダースコア`_` 、アスタリスク`*`、ハイフン`-`などを3つ以上連続して記述します。 ```
hoge
***
hoge
___
hoge
---
``` hoge
***
hoge
___
hoge
--- # Lists ## Ul 箇条書きリスト ハイフン`-`、プラス`+`、アスタリスク`*`のいずれかを先頭に記
mysqldump -u XXX -pXXX dbname tablename > dump_tablename_$(date "+%y%m%d_%H_%M_%S").sql
@emsnguyen
emsnguyen / use_screen_to_deploy_code.txt
Created August 15, 2022 13:18
How to use screen command to deploy code in the background
https://linuxize.com/post/how-to-use-linux-screen/
@emsnguyen
emsnguyen / compound-to-unicode.java
Created May 30, 2022 17:28 — forked from redphx/compound-to-unicode.java
[Java] Chuyển tiếng Việt tổ hợp sang dựng sẵn
public static String compound2Unicode(String str) {
str = str.replaceAll("\u0065\u0309", "\u1EBB"); //ẻ
str = str.replaceAll("\u0065\u0301", "\u00E9"); //é
str = str.replaceAll("\u0065\u0300", "\u00E8"); //è
str = str.replaceAll("\u0065\u0323", "\u1EB9"); //ẹ
str = str.replaceAll("\u0065\u0303", "\u1EBD"); //ẽ
str = str.replaceAll("\u00EA\u0309", "\u1EC3"); //ể
str = str.replaceAll("\u00EA\u0301", "\u1EBF"); //ế
str = str.replaceAll("\u00EA\u0300", "\u1EC1"); //ề
str = str.replaceAll("\u00EA\u0323", "\u1EC7"); //ệ