This file contains 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
In my setup, /var/lib/backuppc is a soft link to a directory on a different filesystem, lets say /backup | |
Problem one: could not start the service | |
Solved by setting | |
chmod g+s /backup | |
chown -R backuppc /backup | |
Problem two: web interface would not come up | |
Solved by running (as root): |
This file contains 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
Getting "Groovyc: 'return' is not allowed in object initializer"? | |
You forgot a pair of parenthesis. | |
The following code | |
public List getImportedClasses | |
{ | |
return imports | |
} | |
is not valid in Groovy or Java. Add the pair of parenthesis: |
This file contains 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
Don't forget to use the correct user:group and permissions. | |
find . -print0 | xargs --null chown server:server | |
chmod for directories: | |
find . -type d -print0 | xargs --null chmod -R 755 | |
chmod for files: | |
find . -type f -print0 | xargs --null chmod -R 755 |
This file contains 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
rsync -avh --delete --stats --progress /media/original/ /media/target |
This file contains 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
~ $ sudo mkdir /media/card | |
~ $ dmesg | tail | |
[ 3757.984103] sd 12:0:0:1: [sdd] 7987200 512-byte logical blocks: (4.08 GB/3.80 GiB) | |
[ 3757.985347] sd 12:0:0:1: [sdd] No Caching mode page present | |
[ 3757.985350] sd 12:0:0:1: [sdd] Assuming drive cache: write through | |
[ 3757.987211] sd 12:0:0:1: [sdd] No Caching mode page present | |
[ 3757.987213] sd 12:0:0:1: [sdd] Assuming drive cache: write through | |
[ 3757.988466] sdd: sdd1 | |
~ $ sudo mount -t vfat /dev/sdd1 /media/card |
This file contains 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
user@pc:~$ xrandr | |
Screen 0: minimum 320 x 200, current 3600 x 1080, maximum 8192 x 8192 | |
DVI-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 640mm x 360mm | |
1920x1080 60.0*+ 50.0 30.0 25.0 24.0 | |
1920x1080i 30.0 25.0 | |
1280x1024 60.0 | |
1360x768 59.8 | |
1280x720 60.0 50.0 | |
1440x576i 25.0 | |
1024x768 60.0 |
This file contains 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
sudo dd if=/dev/sdb of=/dev/sdc bs=4096 conv=noerror |
This file contains 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
$ cd to/grails/application/directory/ | |
$ grails integrate-with --git | |
| Created Git '.gitignore' file.. | |
$ cat .gitignore | |
*.iws | |
*Db.properties | |
*Db.script | |
.settings | |
stacktrace.log | |
/*.zip |
This file contains 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
What is present? | |
$ fdisk -l | |
To edit the partitions on /dev/sdz: | |
$ fdisk /dev/sdz | |
Follow the instructions. | |
Remove the partitions you want to remove, create new ones in their place. | |
Make sure to verify and write. | |
Then, update the kernel: | |
$ partprobe /dev/sdz | |
Then, create the filesystem(s): |
This file contains 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
import pdb, inspect | |
... | |
for m in inspect.getmembers(object): | |
print m | |
pdb.set_trace() |
NewerOlder