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
| $ opkg update | |
| $ opkg install openssh-server openssh-sftp-server | |
| # disable built-in dropbear | |
| $ /etc/init.d/dropbear disable | |
| $ /etc/init.d/dropbear stop | |
| # enable full openssh server | |
| $ /etc/init.d/sshd enable | |
| $ /etc/init.d/sshd start |
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
| /dir *(rw,no_root_squash,no_subtree_check) |
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
| $ apt-get update | |
| $ apt-get install -y libsasl2-modules | |
| $ nano /etc/postfix/main.cf | |
| relayhost = [mail.server.com]:587 | |
| smtp_use_tls=yes | |
| smtp_sasl_auth_enable = yes | |
| smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd | |
| smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt | |
| smtp_sasl_security_options = |
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
| $ opkg update | |
| $ opkg install stubby | |
| $ /etc/init.d/stubby enable | |
| $ nano /etc/config/dhcp | |
| # add to dnsmasq section: | |
| option noresolv '1' | |
| list server '127.0.0.1#5453' | |
| $ /etc/init.d/stubby start |
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
| server=/netflix.com/# | |
| address=/netflix.com/:: | |
| server=/netflix.net/# | |
| address=/netflix.net/:: | |
| server=/nflxext.com/# | |
| address=/nflxext.com/:: | |
| server=/nflximg.net/# | |
| address=/nflximg.net/:: | |
| server=/nflxvideo.net/# | |
| address=/nflxvideo.net/:: |
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
| <?php | |
| namespace App\Models; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Illuminate\Support\Str; | |
| class ModelUuid extends Model | |
| { |
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 -p ~/build/hostapd; cd ~/build/hostapd | |
| $ apt-get install hostapd | |
| $ apt-get source hostapd | |
| $ apt-get build-dep hostapd | |
| $ cd wpa-$VERSION | |
| # patch hostapd/config_file.c, src/ap/ap_config.h, src/ap/hw_features.c and src/ap/ieee802_11_ht.c | |
| $ dpkg-buildpackage -rfakeroot -uc -b | |
| $ dpkg --unpack ../hostapd*.deb |
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
| $ wget https://s3-eu-west-1.amazonaws.com/backuppc4/Debian10/backuppc_4.3.0_amd64.deb | |
| $ wget https://s3-eu-west-1.amazonaws.com/backuppc4/Debian10/libbackuppc-xs-perl_0.58-1_amd64.deb | |
| $ wget https://s3-eu-west-1.amazonaws.com/backuppc4/Debian10/rsync-bpc_3.0.9.12_amd64.deb | |
| $ dpkg -i libbackuppc-xs-perl_0.58-1_amd64.deb | |
| $ dpkg -i rsync-bpc_3.0.9.12_amd64.deb | |
| $ apt-get install libcgi-pm-perl libarchive-zip-perl rrdtool apache2-utils libwww-perl libtime-parsedate-perl nginx sendmail-bin | |
| $ dpkg -i backuppc_4.3.0_amd64.deb |
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
| #!/bin/bash | |
| # based on https://github.com/mew2057/CAST/blob/6c7f7d514b7af3c512635ec145aa829c535467dc/csm_big_data/config-scripts/logstashFixupScript.sh | |
| # see: https://github.com/elastic/logstash/issues/10755 | |
| apt-get update | |
| apt-get install -f zip unzip | |
| STARTDIR=$(pwd) | |
| JARDIR="/usr/share/logstash/logstash-core/lib/jars" |
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
| --- a/drivers/net/wireless/ath/regd.c 2017-09-13 00:12:11.038844554 +0200 | |
| +++ b/drivers/net/wireless/ath/regd.c 2017-09-13 00:13:32.676068380 +0200 | |
| @@ -341,6 +341,8 @@ | |
| struct ieee80211_channel *ch; | |
| unsigned int i; | |
| + return; | |
| + | |
| for (band = 0; band < NUM_NL80211_BANDS; band++) { | |
| if (!wiphy->bands[band]) |