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
moved to https://github.com/Thermionix/multipass-usb |
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/udev/rules.d/local.rules | |
# ADD rule: if we have a valid ID_FS_LABEL_ENC, and it's USB, mkdir and mount | |
ENV{ID_FS_LABEL_ENC}=="?*", ACTION=="add", SUBSYSTEMS=="usb", \ | |
RUN+="/usr/local/sbin/udev-automounter.sh %k" |
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
<ifmodule mod_ssl.c> | |
<virtualhost *:443> | |
DocumentRoot /var/www | |
<directory " var www> | |
Options FollowSymLinks | |
AllowOverride All | |
Order allow,deny | |
Allow from all |
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 lsusb to find the details of the serial adapter to create a udev rule | |
~$ lsusb | grep Serial | |
Bus 003 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port | |
# based on the output from lsusb add a rule to /etc/udev/rules.d/local.rules | |
~$ cat /etc/udev/rules.d/local.rules | |
#Bus 004 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port" |
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 | |
cd ../iso/ | |
for f in `find . -type f -not -name "*.md5" -printf "%f\n"` | |
do | |
if [ -f ${f}.md5 ] | |
then | |
md5sum -c $f.md5 | |
#| grep FAILED$ > failed_hashes |
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
auth_basic "Restricted"; | |
auth_basic_user_file /etc/nginx/htpasswd; |
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/sh | |
# | |
# Ian - 16/11/2011 | |
# /etc/init.d/newznab: start and stop the newznab update script | |
# | |
# run update-rc.d newznab_ubuntu.sh defaults | |
### BEGIN INIT INFO | |
# Provides: Newznab |
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 | |
echo "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list | |
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get install dkms | |
sudo apt-get install virtualbox-4.2 --no-install-recommends | |
vbox_version=`wget -q -O - http://download.virtualbox.org/virtualbox/LATEST.TXT` | |
wget http://download.virtualbox.org/virtualbox/$vbox_version/Oracle_VM_VirtualBox_Extension_Pack-$vbox_version.vbox-extpack |
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
location /owncloud { | |
client_max_body_size 1024M; | |
location ~ ^/owncloud/(data|config|\.ht|db_structure\.xml|README) { | |
deny all; | |
} | |
rewrite ^/owncloud/.well-known/host-meta /public.php?service=host-meta last; | |
rewrite ^/owncloud/.well-known/host-meta.json /public.php?service=host-meta-json last; | |
rewrite ^/owncloud/.well-known/carddav /remote.php/carddav/ redirect; |
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 | |
ffplay -vn -rtsp_transport tcp -allowed_media_types audio -nodisp rtsp://videocdn-us.geocdn.scaleengine.net/jblive/live/jblive.stream |
OlderNewer