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
# scalling | |
gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']" | |
# disable indexing | |
tracker-preferences | |
# configure crypt in settings | |
luksOpen /dev/... home_crypt | |
# /etc/crypttab | |
home_crypt UUID=...-....-....... none luks |
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 | |
# author Marek Vavrecan (vavrecan@gmail.com) | |
# show usage | |
[ $# -eq 0 ] && { echo "Usage: $0 [apk path] [source namespace] [target namespace]"; exit 1; } | |
APK_PATH="$1" | |
NAMESPACE_FROM="$2" | |
NAMESPACE_TO="$3" |
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 | |
// service -> dyndnscustom | |
// host -> | |
$username = ""; | |
$password = ""; | |
$host = ""; | |
if (empty($_SERVER["PHP_AUTH_USER"]) || $_SERVER["PHP_AUTH_USER"] != $username) { |
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 | |
if [ "$#" -gt 0 ]; | |
then | |
echo "using $1 as domain;" | |
else | |
echo -e "usage: $0 [site domain] [database name:database password]\ne.g. $0 domain.org database:password" | |
exit | |
fi |
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
{ | |
"window.zoomLevel": 0.7, | |
"terminal.integrated.fontFamily": "'Noto Mono', 'monospace', monospace", | |
"terminal.integrated.fontSize": 12, | |
"terminal.integrated.lineHeight": 1.2, | |
"editor.tabSize": 4, | |
"editor.fontFamily": "'Noto Mono', 'monospace', monospace", | |
"editor.fontSize": 11, | |
"editor.lineHeight": 1.6, | |
"editor.letterSpacing": 0.4, |
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
use debian live gnome | |
> cat /etc/apt/sources.list.d/testing.list | |
deb http://ftp.debian.org/debian testing main | |
> cat /etc/apt/apt.conf.d/99defaultrelease | |
APT::Default-Release "stretch"; | |
apt install firmware-iwlwifi | |
apt -t testing install gnome-shell |
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 core dump: | |
/etc/security/limits.conf | |
* hard core 0 | |
* soft core 0 | |
/etc/sysctl.d/9999-disable-core-dump.conf | |
fs.suid_dumpable=0 | |
kernel.core_pattern=|/bin/false | |
--- |
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
1. resend all rides to your email throught app (manual clicking but not so bad) | |
2. in gmail, go to settings and disable conversation mode view | |
3. select all emails from bold and right click to send as attachement | |
4. send this email to yourself | |
5. download all attachements | |
6. (optinal) revert settings in step 2. | |
download invoices using bash: | |
for f in * ; do | |
URL=`grep -roh "$f" -e 'https:\/\/invoice.taxify.eu\/[^"]*'` |
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 | |
# This script will forward internet connection over redsocks proxy | |
# - Install redsocks and make it listen to any IP | |
# - Setup Wifi AP or ETH connection and DHCP server | |
# - Connect to ssh with -D 1080 parameter or start tor on port 1080 | |
# - Run the script | |
INTERNET_INTERFACE=wlan0 | |
SUBNET_INTERFACE=wlan1 |
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
[Unit] | |
Description=AutoSSH tunnel service | |
After=network-online.target ssh.service | |
[Service] | |
User=root | |
Restart=always | |
ExecStart=/usr/bin/autossh -M 0 -q -N -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" admin@myip -R 2222:localhost:22 | |
ExecStop=/usr/bin/killall -9 autossh |
NewerOlder