Skip to content

Instantly share code, notes, and snippets.

@bse666
bse666 / boot-config.txt
Last active May 27, 2016 10:13
recalbox config for 4:3 Monitors
hdmi_group=2
hdmi_mode=35
/etc/init.d/mysql stop || systemctl stop mysqld
mysqld_safe --skip-grant-tables
mysql --user=root mysql
update user set Password=PASSWORD('new-password') where user='root';
flush privileges;
exit;
#### Contents of the preconfiguration file (for xenial)
### Localization
# Preseeding only locale sets language, country and locale.
d-i debian-installer/locale string de_DE
# The values can also be preseeded individually for greater flexibility.
d-i debian-installer/language string de
d-i debian-installer/country string DE
d-i debian-installer/locale string de_DE.UTF-8
# Optionally specify additional locales to be generated.
@bse666
bse666 / README.md
Last active June 20, 2016 10:26
Custom Service in Windows

How to Custom Service for Windows

rsync your windows for extreme backup's

  • rsync for windows
    • chocolatey
    • or cygwin version
  • instserv.exe and srvany.exe from Win2k3 Resource Kit [http://www.microsoft.com/en-us/download/confirmation.aspx?id=17657]
  • put the files above and the config files in c:\rsyncd
  • CMD: instsrv.exe rsyncd "C:\rsyncd\srvany.exe"
  • run the reg file to configure the service
  • start the service with your control panel
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=unencrypted.pdf -c .setpdfwrite -f encrypted.pdf
@bse666
bse666 / mutt_with_ssl.sh
Last active January 19, 2017 09:51
mutt 1.7 compilation with ssl
sudo apt-get build-dep mutt -y
wget https://bitbucket.org/mutt/mutt/downloads/mutt-1.7.0.tar.gz
tar xzf mutt-1.7.0.tar.gz
cd mutt-1.7.0
./configure --with-sasl --with-ssl --enable-imap --enable-pop --enable-smtp --enable-hcache
make
sudo make install
cd ..
rm -rf mutt-1.7.0
sudo apt-get install urlview -y
@bse666
bse666 / upgrade.sh
Last active March 15, 2025 00:27
upgrade Ubuntu without interaction
# https://askubuntu.com/questions/250733/can-i-do-a-silent-or-unattended-release-upgrade
# The following command upgrades to the new stable release without prompts:
do-release-upgrade -f DistUpgradeViewNonInteractive
# The following command upgrades to the current development release without prompts:
do-release-upgrade -d -f DistUpgradeViewNonInteractive
# Really Unattended
## --force-confdef: ask dpkg to decide alone when it can and prompt otherwise.
## --force-confold: do not modify the current configuration file, the new version is installed with a .dpkg-dist suffix.
# create file /etc/apt/apt.conf.d/local
@bse666
bse666 / install-nextcloud-client.sh
Last active October 4, 2016 07:43
nextcloud-client from source on linux
#!/bin/bash
git clone https://github.com/nextcloud/client_theming /tmp/nextcloud-client-build
cd /tmp/nextcloud-client-build
git submodule update --init --recursive
mkdir build-linux
cd build-linux
cmake -D OEM_THEME_DIR=`pwd`/../nextcloudtheme ../client
make
sudo make install
@bse666
bse666 / firewall.sh
Created December 2, 2016 09:00
FreeBSD ipfw traffic shaping
# Based upon Khairil Yusof rules
#### FreeBSD IPFW example firewall script to shape traffic for your LAN and WAN network.
# original: https://bash.cyberciti.biz/security/freebsd-ipfw-traffic-shaping-firewall-script/
#firewall command
fwcmd="/sbin/ipfw"
#interfaces
wifi=ath0
wire=fxp0
oif=tun0
vpn=tun1
@bse666
bse666 / run.sh
Last active January 19, 2017 09:51
tinc-dockerstyle
#!/bin/sh
# remove old container
docker rm -f tinc
# if no data available generate your keys
if [ ! -d "data" ]; then
mkdir data;
docker run -d \
--name tinc \