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 ([email protected]) | |
# 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 | |
set_time_limit(500); | |
function Zip($source, $destination) | |
{ | |
if (!extension_loaded('zip') || !file_exists($source)) { | |
return 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
#!/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
#!/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
# dump database and files | |
mysqldump -u user database > ~/database.sql | |
tar -zcvf ~/backup.tar.gz database.sql /var/www/sitefolder | |
rm ~/database.sql |
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
$ best Linux screen capture settings of the day | |
ffmpeg -thread_queue_size 128 -f alsa -i default -f x11grab -isync -r 30 -ac 2 -s 1920×1080 -i :0.0+0,0 -vcodec libx264 -preset veryfast -pix_fmt yuv420p -acodec libmp3lame -ar 44100 -ab 192k -threads 4 -y Desktop.mp4 | |
# vokoscreen app to capture | |
# Update: w/ VAAPI e.g. for Intel’s QuickSync: | |
ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -thread_queue_size 64 -f alsa -i default -thread_queue_size 64 -f x11grab -isync -r 30 -ac 1 -s 1920×1080 -i :0.0+0,0 -vf ‘format=nv12,hwupload’ -threads 8 -aspect 16:9 -b:v 12500k -vcodec h264_vaapi -af “lowpass=f=7000″ -acodec aac -ab 192k -threads 8 ~/Desktop/`date ‘+%Y%m%d-%H%M%S’.mp4` | |
# https://rene.rebe.de/2017-06-23/best-video-screen-capture-settings-of-the-day/ |
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
<scheme name="Darcula Awesome" version="142" parent_scheme="Darcula"> | |
<metaInfo> | |
<property name="created">2018-10-19T14:10:28</property> | |
<property name="ide">PhpStorm</property> | |
<property name="ideVersion">2018.2.2.0.0</property> | |
<property name="modified">2018-10-19T14:10:31</property> | |
<property name="originalScheme">Darcula Awesome</property> | |
</metaInfo> | |
<colors> | |
<option name="BORDER_LINES_COLOR" value="0" /> |
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
/etc/security/limits.conf | |
#<user> <type> <item> <value> | |
* soft nofile 1048576 | |
* hard nofile 1048576 | |
root soft nofile 1048576 | |
root hard nofile 1048576 | |
/etc/sysctl.conf | |
net.ipv4.ip_local_port_range = 12000 65535 |
OlderNewer