To mount a USB drive:
sudo mkdir /mnt/usbdrive
sudo mount /dev/sda1 /mnt/usbdrive
ls /mnt/usbdrive
To list your file systems:
#!/usr/bin/python | |
import random | |
rows = 20 | |
cols = 80 | |
num_stars = 100 | |
rand_stars = [] | |
while (len(rand_stars) < num_stars): |
sshfs -o reconnect -o volname=mount-name -o IdentityFile=~/.ssh/id_rsa user@remoteserver:/dir/to/mount /home/user/sshfs/mountpoint |
To mount a USB drive:
sudo mkdir /mnt/usbdrive
sudo mount /dev/sda1 /mnt/usbdrive
ls /mnt/usbdrive
To list your file systems:
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: btsync | |
# Required-Start: $network $remote_fs $syslog | |
# Required-Stop: $network $remote_fs $syslog | |
# Should-Start: network-manager | |
# Should-Stop: network-manager | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 |
# StreamsList is a UTF-8 encoded .txt file that helps you specify alternate streams, | |
# xattrs and resource forks white list. It supports "?" and "*" wildcard symbols. | |
# | |
# | |
com.apple.FinderInfo | |
com.apple.metadata:_kMDItemUserTags | |
com.apple.metadata:kMDItemFinderComment |
# .SyncIgnore is a UTF-8 encoded .txt file that helps you specify single files, paths and rules | |
# for ignoring during the synchronization job. It supports "?" and "*" wildcard symbols. | |
# | |
# | |
# OS generated files # | |
.DS_Store | |
.DS_Store? | |
._* | |
.Spotlight-V100 | |
.Trashes |
// http://glslsandbox.com/e#29006.1 | |
#ifdef GL_ES | |
precision mediump float; | |
#endif | |
// modified by @hintz | |
// further modded by @quilime |
# Pass existing files, symlinks, directories through like normal | |
RewriteCond %{REQUEST_FILENAME} -f [OR] | |
RewriteCond %{REQUEST_FILENAME} -l [OR] | |
RewriteCond %{REQUEST_FILENAME} -d | |
RewriteRule ^.*$ - [NC,L] | |
# Pass everything else to the application | |
RewriteRule ^.*$ application.php [NC,L] |
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$ | |
RewriteRule . %1/%2 [R=301,L] |
PS1="[\d \t \u@\h:\w ] $ " |