# modify install script
curl https://raw.github.com/jbhannah/gitlab-installer/master/gitlab-install-el6.sh > gitlab-install-el6.sh
chmod 744 gitlab-install-el6.sh
sed -i "s/https:\/\/raw\.github\.com\/gitlabhq\/gitlab-recipes\/master\/apache\/gitlab/https:\/\/raw\.github\.com\/gitlabhq\/gitlab-recipes\/master\/web-server\/apache\/gitlab\.conf/g" gitlab-install-el6.sh
sed -i "s/https:\/\/raw\.github\.com\/gitlabhq\/gitlabhq\/master\/lib\/support\/init.d\/gitlab/https:\/\/raw\.github\.com\/gitlabhq\/gitlab-recipes\/master\/init\/sysvinit\/centos\/gitlab-unicorn/g" gitlab-install-el6.sh
sed -i "s/GL_GIT_BRANCH=\"6-0-stable\"/GL_GIT_BRANCH=\"6-2-stable\"/g" gitlab-install-el6.sh
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
| get Android source code: http://source.android.com/source/downloading.html | |
| $ cd /path/to/android-src | |
| $ cd system/core/libmincrypt/ | |
| $ gcc -c *.c -I../include | |
| $ ar rcs libmincrypt.a *.o | |
| $ cd ../mkbootimg | |
| $ gcc mkbootimg.c -o mkbootimg -I../include ../libmincrypt/libmincrypt.a | |
| $ cd ../cpio | |
| $ gcc mkbootfs.c -o mkbootfs -I../include |
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
| KERNEL!="sd[a-z][0-9]", GOTO="media_by_label_auto_mount_end" | |
| # Import FS infos | |
| #IMPORT{program}="/sbin/blkid -o udev -p %N" | |
| # Get a label if present, otherwise specify one | |
| ENV{ID_FS_LABEL}!="", ENV{dir_name}="%E{ID_FS_LABEL}" | |
| ENV{ID_FS_LABEL}=="", ENV{dir_name}="usbhd-%k" | |
| # Global mount options | |
| ACTION=="add", ENV{mount_options}="relatime" | |
| # Filesystem-specific mount options | |
| ACTION=="add", ENV{ID_FS_TYPE}=="vfat|ntfs", ENV{mount_options}="$env{mount_options},utf8,gid=100,umask=002" |
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 | |
| USER="root" | |
| SSH_SERVER="192.168.10.160" | |
| DEST_PATH="/home/inn/sdb1/" | |
| SOURCE_DIR=$1 | |
| rsync -ahvzu --delete --progress -e ssh $SOURCE_DIR $USER@$SSH_SERVER:$DEST_PATH$SOURCE_DIR |