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

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 / Office_kms
Created January 3, 2019 15:26 — forked from CHEF-KOCH/KMS_office.cmd
KMS server Windows
cd\Program Files\Microsoft Office\Office16
cd\Program Files (x86)\Microsoft Office\Office16
cscript OSPP.VBS /sethst:kms.digiboy.ir
cscript OSPP.VBS /actcscript OSPP.VBS /dstatus
slmgr.vbs /ckms
@ettingshausen
ettingshausen / resize.cmd
Last active July 6, 2018 07:51 — forked from Starefossen/gist:319f36ff30694a775806
Resize VirtualBox .vmdk disk
:: Clone the .vmdk image to a .vdi.
vboxmanage clonehd "virtualdisk.vmdk" "new-virtualdisk.vdi" --format vdi
:: Resize the new .vdi image (30720 == 30 GB).
vboxmanage modifyhd "new-virtualdisk.vdi" --resize 30720
:: Optional; switch back to a .vmdk.
VBoxManage clonehd "cloned.vdi" "resized.vmdk" --format vmdk