If you ever need to use Virtual Box with USB and VT-d on Ubuntu, I recommend installing Users and Groups.
sudo apt-get install gnome-system-tools
Than open it
Select the user which will run Virtual Box.
#!/bin/bash | |
# This script assumes you have a Raspberry Pi (or other always on server) running | |
# a Transmission-Daemon. It allows you to download you Magnet torrents on it, from | |
# yours PC browser (Firefox on Linux) on it, remotely. Save it as executable on | |
# your script folder, such as /usr/local/sbin . | |
# Open Firefox and in the address bar type: | |
# about:config | |
# There, right click anywhere to create a new boolean entry (New->Boolean) called: | |
# network.protocol-handler.expose.magnet | |
# Set it's value as false. |
#!/bin/bash | |
#lower case all files in running directory | |
for file in * | |
do | |
lowercase=`echo $file | tr '[A-Z]' '[a-z]'` | |
mv "$file" "$lowercase" | |
done |
#!/bin/bash | |
# call using ./pinsched <time> <duration> <pin number> | |
# example: ./pinsched 14:00 2hours 5 | |
timeat="$1" | |
duration="$2" | |
ledpim="$3" | |
endtime=`date +%H:%M -d " $timeat today + $duration"` |
@ECHO OFF | |
REM Drag and drop markdown to docx converter | |
REM ======================================== | |
REM This script requires PANDOC to be installed. | |
REM | |
REM Usage | |
REM ----- | |
REM In Windows Explorer, drag a .md file on top of this script. | |
REM You can also call this script using: | |
REM md2docx.bat filename.md |
ffmpeg -start_number 1 -i IMG%04d.png -vf "scale=1920:1080" -b:v 8000k video.mp4 |
@echo off | |
for %%f in (*.png) do ( | |
echo %%~nf | |
convert.exe "%%~nf.png" -gravity center -crop 2592x1458+0-84 +repage "..\out3\%%~nf.png" | |
) |
[Desktop Entry] | |
Version=0.1 | |
Name=MPDC | |
Comment=Connect to MPD Server | |
Exec=gnome-terminal --geometry=48x16 -e "bash -c \"/usr/bin/ncmpcpp -h 192.168.0.3; exec bash\"" | |
Terminal=true | |
Type=Application | |
Categories=Application; |
#!/bin/bash | |
# Requires: espeak, crontab, mktemp. | |
# | |
# Script for checking if this computer is connected to internet. | |
# If you copy it to $installdir, give this script execution permission. | |
# And remember to set proper ownership (using chown). | |
# Use Example: | |
# | |
# sudo chmod +x checkinternet.sh | |
# sudo cp checkinternet.sh /usr/local/sbin/ |
shading flat# | |
map = [[0, 110, 49]/255, | |
[0, 152, 19]/255, | |
[0, 212, 0]/255, | |
[49, 255, 0]/255, | |
[203, 255, 0]/255, | |
[255, 239, 0]/255, | |
[255, 121, 0]/255, | |
[255, 1, 0]/255, | |
[197, 0, 0]/255, |