This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Find your good commit id : git log | |
2. git rebase --exec 'git commit --amend --no-edit -n -S' -i <your latest good commit id> | |
3. just save and quit when prompted | |
4. git push origin <branch name> --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Dependencies: Python 3 | |
# pip install av pillow | |
import av | |
import sys | |
def h265ToJpg(): | |
inputFileName = "rawStream-1-20220519-132954.hevc" | |
container = av.open(inputFileName) | |
print("container:", container) | |
print("container.streams:", container.streams) | |
print("container.format:", container.format) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
audiocapturemode:i:1 | |
audiomode:i:1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~ | |
curl -sL https://deb.nodesource.com/setup_16.x -o /tmp/nodesource_setup.sh | |
sudo bash /tmp/nodesource_setup.sh | |
sudo apt install nodejs | |
node -v | |
#you can change version in setup_16.x like setup_14.x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt --fix-broken install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Ctrl + A -> Visual Transform | |
2. Remove/disable Child Of constrain. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Checked test: toFixed(0) x 5,057,837 ops/sec ±0.56% (66 runs sampled) | |
Checked test: Math.floor x 4,522,238 ops/sec ±0.84% (67 runs sampled) | |
Checked test: ~~ x 12,077,987 ops/sec ±0.34% (67 runs sampled) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Jni: | |
extern "C" JNIEXPORT void JNICALL | |
Java_com_example_javaactivity_initApplicationNative( | |
JNIEnv* env, jobject obj) | |
{ | |
__android_log_print(ANDROID_LOG_VERBOSE, "jni", "jni initApplicationNative"); | |
env->GetJavaVM(&javaVM); | |
jclass cls = env->GetObjectClass(obj); | |
activityClass = (jclass) env->NewGlobalRef(cls); | |
activityObj = env->NewGlobalRef(obj); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
git filter-branch -f --env-filter ' | |
OLD_EMAIL="[email protected]" | |
CORRECT_NAME="Nguyen Xuan Huong" | |
CORRECT_EMAIL="[email protected]" | |
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ] | |
then | |
export GIT_COMMITTER_NAME="$CORRECT_NAME" | |
export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL" |