update
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
		
					parent
					
						
							
								899979d3ba
							
						
					
				
			
			
				commit
				
					
						cf4aed7452
					
				
			
		
					 9 changed files with 44 additions and 22 deletions
				
			
		
							
								
								
									
										16
									
								
								myremotegit
									
										
									
									
									
								
							
							
						
						
									
										16
									
								
								myremotegit
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -24,21 +24,27 @@
 | 
			
		|||
host=git.schottelius.org
 | 
			
		||||
dir="/home/services/git"
 | 
			
		||||
 | 
			
		||||
if [ $# -ne 2 ]; then
 | 
			
		||||
   echo "$0 name description"
 | 
			
		||||
if [ $# -lt 2 ]; then
 | 
			
		||||
   echo "$0 name description [remotename]"
 | 
			
		||||
   exit 1
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
name=$1; shift
 | 
			
		||||
desc=$1; shift
 | 
			
		||||
 | 
			
		||||
if [ $# -ge 1 ]; then
 | 
			
		||||
    remote=$1; shift
 | 
			
		||||
else
 | 
			
		||||
    remote=origin
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
remote_dir="$dir/$name"
 | 
			
		||||
remote="$host:$remote_dir"
 | 
			
		||||
remote_url="$host:$remote_dir"
 | 
			
		||||
 | 
			
		||||
# Create on remote side
 | 
			
		||||
ssh "$host" "GIT_DIR=$remote_dir git init"
 | 
			
		||||
ssh "$host" "echo $desc > $remote_dir/description"
 | 
			
		||||
 | 
			
		||||
# Initialise git
 | 
			
		||||
git remote add origin "$remote"
 | 
			
		||||
git push origin master
 | 
			
		||||
git remote add "$remote" "$remote_url"
 | 
			
		||||
git push "$remote" master
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -19,17 +19,20 @@ HOST="213.146.113.242"
 | 
			
		|||
HOST="nico@62.65.138.78"
 | 
			
		||||
HOST="home.schottelius.org"
 | 
			
		||||
HOST="nico@77.109.138.222"
 | 
			
		||||
# HOST="root@backup1.ungleich.ch"
 | 
			
		||||
 | 
			
		||||
if [ $# -ge 1 ]; then
 | 
			
		||||
    HOST=$1; shift
 | 
			
		||||
fi
 | 
			
		||||
    #-L2323:mx3.schottelius.org:$IMAPS   \
 | 
			
		||||
    #-L4241:mx3.schottelius.org:$SMTP    \
 | 
			
		||||
 | 
			
		||||
ssh -T -f -C -N \
 | 
			
		||||
    -L2323:mx3.schottelius.org:$IMAPS   \
 | 
			
		||||
    -L4241:mx3.schottelius.org:$SMTP    \
 | 
			
		||||
    -L2323:77.109.138.221:$IMAPS   \
 | 
			
		||||
    -L4241:77.109.138.221:$SMTP    \
 | 
			
		||||
    -L2324:imap.googlemail.com:$IMAPS   \
 | 
			
		||||
    -L2325:mail.zhaw.ch:$IMAPS          \
 | 
			
		||||
    -R :4242:localhost:22 \
 | 
			
		||||
    -R :4242:localhost:22               \
 | 
			
		||||
    -D 12345                            \
 | 
			
		||||
    "$HOST" "$@"
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -13,16 +13,17 @@
 | 
			
		|||
# -----------------------
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
CALDIR=~/.calendar
 | 
			
		||||
CALDIR=~/.calendar/
 | 
			
		||||
 | 
			
		||||
if [ $# -lt 1 ]; then
 | 
			
		||||
   echo `basename $0` 'day.month [day.month.year]'
 | 
			
		||||
   exit 1
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
grep_param="-e ^TO.DO:"
 | 
			
		||||
# grep_param="-e ^TO.DO:"
 | 
			
		||||
for arg in "$@"; do
 | 
			
		||||
    grep_param="${grep_param} -e ^${arg}:"
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
find "$CALDIR" -type f -exec egrep --with-filename -A 2 "$grep_param" {} \;
 | 
			
		||||
# set -x
 | 
			
		||||
find "$CALDIR" -type f -exec egrep --with-filename -A 2 $grep_param {} \;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										7
									
								
								sync-to
									
										
									
									
									
								
							
							
						
						
									
										7
									
								
								sync-to
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -11,8 +11,8 @@ case "$dsthost" in
 | 
			
		|||
    loch)
 | 
			
		||||
        dst=root@loch:/home/services/backup/bento-manuell
 | 
			
		||||
    ;;
 | 
			
		||||
    zuhause)
 | 
			
		||||
	    dst=root@zuhause.schottelius.org:/home/services/backup/bento-manuell
 | 
			
		||||
    luchsingen)
 | 
			
		||||
	    dst=root@luchsingen.schottelius.org:/home/services/backup/bento-manuell
 | 
			
		||||
    ;;
 | 
			
		||||
    *)
 | 
			
		||||
        echo "Unknown $1" >&2
 | 
			
		||||
| 
						 | 
				
			
			@ -26,6 +26,9 @@ rsync -avS --delete --progress 	\
 | 
			
		|||
	--exclude '/tmp/*' 	\
 | 
			
		||||
	--exclude '/sys/*' 	\
 | 
			
		||||
	--exclude '/dev/*' 	\
 | 
			
		||||
	--exclude '/run/*' 	\
 | 
			
		||||
	--exclude '/home/services/usbhd' 	\
 | 
			
		||||
	--exclude '/home/users/nico/.cache/chromium/' \
 | 
			
		||||
	--exclude '/home/users/nico/.bitcoin/blocks/' 	\
 | 
			
		||||
	--exclude '/home/users/nico/.bitcoin/chainstate/' 	\
 | 
			
		||||
	"$@" 			\
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										3
									
								
								wake-up
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								wake-up
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -6,6 +6,9 @@ case "$host" in
 | 
			
		|||
    blank)
 | 
			
		||||
        mac=60:a4:4c:cf:f0:25
 | 
			
		||||
    ;;
 | 
			
		||||
    zucker)
 | 
			
		||||
        mac=d4:9a:20:f8:cc:b4
 | 
			
		||||
    ;;
 | 
			
		||||
    *)
 | 
			
		||||
        echo "Unknown host $host" >&2
 | 
			
		||||
        exit 1
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										10
									
								
								wlan
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								wlan
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -12,8 +12,14 @@
 | 
			
		|||
#ip link set wlp0s3 up
 | 
			
		||||
#iwconfig wlp0s3 essid public
 | 
			
		||||
 | 
			
		||||
dev=wlp2s0
 | 
			
		||||
dev=wlp3s0
 | 
			
		||||
if [ "$#" -ge 1 ]; then
 | 
			
		||||
	dev=$1; shift
 | 
			
		||||
else
 | 
			
		||||
	dev=wlp2s0
 | 
			
		||||
	dev=wlp3s0
 | 
			
		||||
	dev=wlan0
 | 
			
		||||
	dev=wlp1s0
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
set -x
 | 
			
		||||
set +e
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										4
									
								
								x-links
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								x-links
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1,5 +1,5 @@
 | 
			
		|||
#!/bin/sh
 | 
			
		||||
x-off
 | 
			
		||||
 | 
			
		||||
xrandr --output HDMI1 --auto --rotate normal --left-of LVDS1
 | 
			
		||||
xrandr --output DP1 --auto --rotate normal --left-of LVDS1
 | 
			
		||||
xrandr --output HDMI1 --auto --rotate normal --left-of eDP1
 | 
			
		||||
xrandr --output DP1 --auto --rotate normal --left-of eDP1
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										6
									
								
								x-oben
									
										
									
									
									
								
							
							
						
						
									
										6
									
								
								x-oben
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
#!/bin/sh
 | 
			
		||||
x-off
 | 
			
		||||
 | 
			
		||||
xrandr --output HDMI1 --auto --rotate normal --above LVDS1
 | 
			
		||||
xrandr --output DP1 --auto --rotate normal --above LVDS1
 | 
			
		||||
xrandr --output VGA1 --auto --rotate normal --above LVDS1
 | 
			
		||||
xrandr --output HDMI1 --auto --rotate normal --above eDP1
 | 
			
		||||
xrandr --output DP1 --auto --rotate normal --above eDP1
 | 
			
		||||
xrandr --output VGA1 --auto --rotate normal --above eDP1
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										4
									
								
								x-rechts
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								x-rechts
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1,5 +1,5 @@
 | 
			
		|||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
x-off
 | 
			
		||||
xrandr --output DP1 --auto --rotate normal --right-of LVDS1
 | 
			
		||||
xrandr --output HDMI1 --auto --rotate normal --right-of LVDS1
 | 
			
		||||
xrandr --output DP1 --auto --rotate normal --right-of eDP1
 | 
			
		||||
xrandr --output HDMI1 --auto --rotate normal --right-of eDP1
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue