Skip to content

Instantly share code, notes, and snippets.

View flufy3d's full-sized avatar
🎯
Focusing

flufy3d flufy3d

🎯
Focusing
View GitHub Profile
@flufy3d
flufy3d / Android.sublime-build
Last active October 7, 2023 08:05
Android.sublime-build on windows
{
"shell_cmd": "gradlew.bat assembleDebug",
"working_dir": "$project_path",
"selector": "source.java",
"env": {"JAVA_HOME": "C:\\Program Files\\Android\\Android Studio\\jbr"}
}
@flufy3d
flufy3d / read.me
Created July 18, 2023 14:08
clear other directory git commit history
git filter-branch --subdirectory-filter sources/web_chat -- --all
git push -f origin main
@flufy3d
flufy3d / UE5 android
Last active June 23, 2023 13:33
Make Unreal Editor Install version
RunUAT.bat BuildGraph -target="Make Installed Build Win64" -script="Engine/Build/InstalledEngineBuild.xml" -set:HostPlatformOnly=true -set:WithAndroid=true
@flufy3d
flufy3d / build-xformers-win.md
Last active November 30, 2022 23:30
how to build xformers on windows
@flufy3d
flufy3d / chrome tips
Created March 31, 2022 12:38
chrome tips
Open properties on the Chrome shortcut
in the Target field at the very end after the quotation marks add --disable-backgrounding-occluded-windows
--disable-backgrounding-occluded-windows
@flufy3d
flufy3d / docker-compose.yml
Created June 11, 2021 09:51
docker wordpress mariaDB (with a config for reduce memory usage)
wordpress:
image: wordpress
links:
- mariadb:mysql
environment:
- WORDPRESS_DB_PASSWORD=password
- WORDPRESS_DB_USER=root
ports:
- "10000:80"
volumes:
@flufy3d
flufy3d / gstreamer-tips.md
Last active April 19, 2024 03:57
gstreamer remote streaming

simple test

gst-launch-1.0 -v videotestsrc ! video/x-raw,width=1280,height=640 ! glimagesink

streaming mpegts

gst-launch-1.0 -v videotestsrc ! video/x-raw,width=1280,height=640 ! videoconvert ! x264enc key-int-max=12 byte-stream=true ! mpegtsmux ! tcpserversink port=8888 host=0.0.0.0

vlc using tcp://192.168.1.192:8888

@flufy3d
flufy3d / sample.c
Created December 13, 2020 12:47
c++ 11 can embed raw text into code
const char* vert =
R"END(
#version 120
attribute vec2 position;
void main()
{
gl_Position = vec4( position, 0.0, 1.0 );
}
@flufy3d
flufy3d / temp.sh
Created December 4, 2020 00:33
show cpu temp per second
#!/bin/sh
while true; do
cat /sys/class/thermal/thermal_zone*/temp
sleep 1
done
@flufy3d
flufy3d / nginx_config_site
Created November 26, 2020 18:01
nginx config for go http ,only add basic_auth for directory browse
server {
server_name xxx.xxx.com;
location ~ ^/.*(json|gif|png|jpg|bundle|mvol|appx|appxbundle|apk)$ {
try_files $uri @main;
}