A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
for svg in $(ls ./svg); do | |
filename=$(echo $svg | cut -d'.' -f1) | |
convert -background none -density 1000 -resize 1000x svg/$(echo $filename).svg png/$(echo $filename).png | |
echo [DONE] $filename converted! | |
done |
// ImageMagick - Convert SVG to PNG w/ transparency | |
// | |
// - open terminal | |
// | |
// - confirm you have imagemagick installed | |
// --- type: convert -v | |
// | |
// - cd to folder | |
// | |
// - single file |
# /usr/share/usb_modeswitch/2001:ac01 | |
# Run manually if required using: | |
# usb_modeswitch -v 0x2001 -p 0xac01 -c /usr/share/usb_modeswitch/2001:ac01 | |
# D-Link DWM-222 A2 | |
TargetVendor=0x2001 | |
TargetProduct=0x7e3d | |
StandardEject=1 |
adb help // List all comands | |
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader |
There are a few decent tutorials on how to setup hotspot on Linux, which I will share below, but this tutorial will focus on adversities that you without doubt will face while setting up your AP.
For AP setup we will need:
In terminal type sudo iw list
this command will show info about your wifi interfaces. Look for Supported interface entry, if AP
is in it, that means your Wifi devices support hotspot mode.
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader | |
== Shell |
It's a lot easier to test accessibility on the fly using ADB. This gist attempts to make the days of navigating through the Android device settings UI to change Accessibility settings obsolete.
These ADB commands will hopefully encourage Android developers to test and use their apps with common Accessiblility settings enabled.
Credit to James Nitsch for inspiring this, and for figuring out the put
commands to enable these settings.
# Thin serving Rails. | |
upstream app_server { | |
server 127.0.0.1:3050 fail_timeout=0; | |
} | |
# SSL/TLS certificates - the key should be 4096 bit generated with: 'openssl genrsa -des3 -out server.key 4096' | |
ssl_certificate_key /var/app/deploy/www.thisisatest.com.key; | |
ssl_certificate /var/app/deploy/www.thisisatest.com.chained.crt; | |
# Ideally we'd have only TLSv1.2, but that compromises client support significantly |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |