Skip to content

Instantly share code, notes, and snippets.

@zuiki
zuiki / gist:9af5bb2f8f9650599d3f86477c86f5d5
Created April 1, 2018 12:56 — forked from hiroaki256/gist:8142865
GitLabとRedmineをインストールし連携させる

gitlab 6.2簡単インストール

# 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

run install script

@zuiki
zuiki / gist:c1c06038648b91240abeb963ee40c422
Created February 18, 2018 09:44 — forked from jberkel/gist:1087757
HOWTO: compile mkbootimg/mkbootfs
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
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"
#!/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