Skip to content

Instantly share code, notes, and snippets.

@ettingshausen
ettingshausen / miui-blotware-apps.md
Created May 23, 2024 01:24 — forked from mcxiaoke/miui-blotware-apps.md
MIUI 13/14 bloatware apps, updated at 20240816

对于所有应用,不建议直接删除,使用adb shell pm disable-user package-name禁用即可,方便出问题时恢复。

DO NOT UNINSTALL:

  • com.miui.securitycenter
  • com.miui.securityadd
  • com.xiaomi.finddevice

(Don’t uninstall these three apps or services from your Xiaomi device. Otherwise, you may encounter device bricking or bootloop issues.)

@ettingshausen
ettingshausen / mysql57-in-centos7.md
Created May 20, 2024 01:36 — forked from linuxkathirvel/mysql57-in-centos7.md
Install MySQL 5.7 in CentOS7/RHEL7

MySQL 5.7 installation in CentOS 7

sudo su

# Remove MariaDB packages
yum list installed | grep -i maria
yum remove mariadb.x86_64
yum remove mariadb-libs.x86_64

# Download MySQL 5.7 RPM tar
@ettingshausen
ettingshausen / converting_dmg_iso.md
Created May 14, 2024 01:51 — forked from corysolovewicz/converting_dmg_iso.md
Converting DMG to ISO or CDR to ISO on macOS
@ettingshausen
ettingshausen / tar-ignore-mac-files.md
Last active May 20, 2024 01:38 — forked from lideo/gist:82fb863749f4efe1deb9ca146b1093e8
Exclude .DS_Store file from tar.gz
tar -zcv --exclude='.DS_Store' -f file.tar.gz folder/

Create tar gz without .DS_Store & macOS copy-files

tar --disable-copyfile --exclude='.DS_Store' -cvzf wn-fr.tar.gz winningreport
@ettingshausen
ettingshausen / iptables.md
Created September 2, 2021 03:23 — forked from fearblackcat/iptables.md
firewalld for in public allow

Lookup the open port:

iptables -L -n

Add new open port:

//open 8080 port
iptables -I IN_public_allow -p tcp --dport 8080 -j ACCEPT
@ettingshausen
ettingshausen / android-backup-apk-and-datas.md
Created June 4, 2021 05:35 — forked from AnatomicJC/android-backup-apk-and-datas.md
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Fetch application APK

To get the list of your installed applications:

Apple Real Devices Debugging

What you need

  • certificate--which tells your devices that Apple trust you
  • a app id
  • a test device
  • a provisioning profile
@ettingshausen
ettingshausen / clean_docker_log.sh
Created November 30, 2020 02:59
clean docker container logs
#!/bin/sh
echo "======== start clean docker containers logs ========"
logs=$(find /var/lib/docker/containers/ -name *-json.log)
for log in $logs
do
echo "clean logs : $log"
cat /dev/null > $log
docker run -d --name sonarqube --restart always \
-v /root/docker/snonarqube/data:/opt/sonarqube/data \
-v /root/docker/snonarqube/logs:/opt/sonarqube/logs \
-v /root/docker/snonarqube/extensions:/opt/sonarqube/extensions \
--privileged=true \
-p 7000:9000 -p 7092:9092 \
172.16.0.91:8089/sonarqube:latest
@ettingshausen
ettingshausen / convert.sh
Created November 27, 2019 12:21
How to convert mov to mp4 on macOS
brew install ffmpeg
ffmpeg -i /path/to/input/file /path/to/output.mp4