This file contains hidden or 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
- disable SIP | |
# boot in recovery mode (Command + R) | |
# open utilities / terminal | |
$ csrutil disable | |
- disable Spotlight indexing | |
$ sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist | |
- change swapper default mode | |
vm_pageout.h: |
This file contains hidden or 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
$ brew install docker docker-compose kubectl kubectx | |
$ brew install colima | |
$ colima start --cpu 1 --memory 2 --disk 10 | |
# colima stop | |
# colima start --cpu 4 --memory 8 |
This file contains hidden or 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
$ nfsd checkexports | |
sandbox_check failed. nfsd has no read access to "/dir" | |
# open System Preferences > Security & Privacy > Full Disk Access | |
# add /sbin/nfsd |
This file contains hidden or 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
docker stop $container | |
docker plugin disable -f $pluginid | |
docker plugin set $pluginid ENV=value | |
docker plugin enable $pluginid | |
docker start $container |
This file contains hidden or 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
Press [Windows]+[Break] to bring up the System Properties dialog box. | |
Select the Advanced tab and click the Environment Variables button. | |
Click the New button below the System Variables panel. | |
In the New System Variable dialog box, type devmgr_show_nonpresent_devices in the Variable Name text box and 1 in the Variable Value text box. | |
Click OK to return to the System Properties dialog box and then click OK again. | |
Select the Hardware tab and click the Device Manager button. | |
In Device Manager, go to View | Show Hidden Devices. | |
Expand the various branches in the device tree and look for the washed out icons, which indicate unused device drivers. | |
To remove an unused device driver, right-click the icon and select Uninstall. |
This file contains hidden or 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
# install lastest version | |
$ pecl install mailparse | |
# compilation failed and return mbstring needed anyway | |
$ nano /usr/include/php/*/ext/mbstring/libmbfl/mbfl/mbfilter.h | |
# add to header: | |
#undef HAVE_MBSTRING | |
#define HAVE_MBSTRING 1 |
This file contains hidden or 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
diff --git a/drivers/net/wireless/ath/regd.c b/drivers/net/wireless/ath/regd.c | |
index e25bfdf..ac42657 100644 | |
--- a/drivers/net/wireless/ath/regd.c | |
+++ b/drivers/net/wireless/ath/regd.c | |
@@ -268,6 +268,8 @@ static void ath_force_clear_no_ir_chan(struct wiphy *wiphy, | |
{ | |
const struct ieee80211_reg_rule *reg_rule; | |
+ return; | |
+ |
This file contains hidden or 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
diff --git a/hostapd/config_file.c b/hostapd/config_file.c | |
index e09e6e1..6251048 100644 | |
--- a/hostapd/config_file.c | |
+++ b/hostapd/config_file.c | |
@@ -3411,6 +3411,10 @@ static int hostapd_config_fill(struct hostapd_config *conf, | |
bss->ieee80211w = 1; | |
#endif /* CONFIG_OCV */ | |
#ifdef CONFIG_IEEE80211N | |
+ } else if (os_strcmp(buf, "noscan") == 0) { | |
+ conf->noscan = atoi(pos); |
This file contains hidden or 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
$ socat TCP-LISTEN:80,fork TCP:127.0.0.1:8080" | |
# crontab: | |
# 0 * * * * flock -n /var/run/tcp.80.8080.lock -c "socat TCP-LISTEN:80,fork TCP:127.0.0.1:8080" |
This file contains hidden or 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
$ mkdir /tmp/a | |
$ cd /tmp/a | |
$ unsquashfs /media/sd**/boot/modloop-lts | |
$ mv squashfs-root/ lib | |
$ tar -xzvf /etc/apk/cache/zfs-lts-*.apk | |
$ depmod -b /tmp/a | |
$ mksquashfs lib/ modloop-lts -noappend -always-use-fragments | |
$ mount -o rw,remount /media/sd** | |
# do backup but not as /filename or /boot/filename, alpine will be use it) | |
$ mv /tmp/a/modloop-lts /media/sd**/boot/modloop-lts |