commit fafd4ccb3af29c5d5dfd6d5860c2697c47bc0e37
parent 00daf327ae89cd13ca268c10eb827376e72c13c9
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Thu, 10 Jan 2019 21:45:21 +0100
Fix shebang lines
Diffstat:
6 files changed, 46 insertions(+), 34 deletions(-)
diff --git a/links/.weechat/sec.conf b/links/.weechat/sec.conf
@@ -17,23 +17,23 @@ salt = on
[data]
__passphrase__ = on
-freenode_username = "26F46C0FA71C5C26EC3E3A8955560AB8B3420D250E6D74B6B346A3CBECE6FE310EA602963779081A66DF83DA"
-gitterpass = "E9F49CB176BB5FC06F52A064F0ED1FFB45145F936E3B1145576E79C90D6C08520C60996E673E5F14156102B1F337F3635FEDD14D27C992F0136B428A1637FE340521805F57A70196FFAE3215EA5B900BB3"
-esip-all_password = "D25B0002758FB70402B047F838E57F89265371CCC6CF347A32AC71F79EF85DDA31EBA543EA64E305C2FB5A361DFE2947FD06C24DD9B18B71D5D3ECB90E59E1E778DE65FB2297"
-qualitystreet_password = "15CFEB92D36872C56B5E2C6C802FE6C4716FE1D3F395DA9AD05F750AD14043067FFF34B1156FC2FFDDB926010060C63EB7478651A805FFE3770703D30EB5C52740A4E2E0FFED89063E66DA"
-qualitystreet_username = "F06326F5A4128A00827C5CBFF2477FB366050E5A3BEAF8B5F3EA4ACC1D850E20AE8CE73A6DBA926296CE160CE8DA0FAD"
-takuglacierpass = "E9F07D18BD5A64210E8AACF5BB32700D34529C38DDFDCDF0DD675D70924E3620F8B989EAE4CDDAB5F66DF95F2E1130FA739F859E878A62704FED548D92DEB943DB6AE7C896557F0B0E"
-pushapikey = "2AB604B75BEB0EE7A4C0D180E07CAD7ABFB73EFA11BCD72041B82E164F7C44A12A2E3FC15996716C92BD8FEDC29542EE0B248567A50DACBC92250862BCB2D2951B04B79C9DFB88"
-slack-sigma-stanford_password = "711A3AF8CB69366F8BA8755F8C03B16D2E1101C3AE0984866E30BEECDE368E876BD8E717F334D62ED226459BCD7659E0D57DB2AC431707A3B39A9D8DE7E27676021B3E5E0EF48A2AA27921FF"
-pushoverkey = "A4C92BAD54D1E18774D9152B595C317A963B62C7A17B4A9398324C2FB08F9FE0E1FCF9B3D80D0937C8FF1975A56187931A3140741DF0C8E8DF655719900CDFED5BFACCC4677528"
-bitlbee_password = "A58255AC6DBBD482B84C420920B1FF05D22621BE4E80382A100D796BDD8CC3366FDDC6B1ABBAF3CE0D49D65173A4F5683189FEBC66733F98801F9CC0015F"
-esip-all_username = "E946D6C299B7804A2E1554BE2164951DD9C2D65768DAF989A6D4441FE48EEFB5B01388A9221F564F4A58482678BE09FF"
-iceberg-model_password = "BB5109522DADD0FDCE3A8AD661689FE08B234BA223C9009D42005FA06CA8A9DB53A0EA00830FBA6310FA12B87690487A5626172FBBFEB1EDE06C09E1C4ECBE0C3E4729D9D91CF3D62B8E73"
-iceberg-model_username = "74B35ADFBF95E1829753C4F869BB45764F025ED43C00E93075A8B941EBE294EF5555C5CA6268F609865B0F693DC65D"
-pushuserkey = "2DD7475922ACC43079ADD3026CA210C9A2D77824F33D8631BBE0838161701C729AE714FFCDF3B0E9E51A64C94B92D686C2676F90DD298E638D565DDC3E14BEF60D29FF3130D4A4"
-freenode_password = "88FA719F7BDCAF6BA4233257D41A10B6DC773FF133BDD17DF5D88D99AD41D6405CD6F31A731FE29FA20E9DAAC6B230E99A3B7DC0AAFA4847E18F2E8DDD0BBE"
-slack-taku_username = "F33311F5E4F4D8332EC2179EBE310482DB0D1E15722F34207A02828CB0B63D0CE487C16BEC0EAC877494DF6B1819F7081F7DCDCBFA280F83D9"
-MOM6_password = "0B5421CB0947775D0A4370E6BE2DB054CA8EC6E17CB248B6B66B6F1998FE936220241176910D6FF54313350A5F5AFEE8BFFD79346020D996AF22BFEF7D4A41272F17"
-MOM6_username = "2AA0EF9A2A53761E1B503F468068F408406E0AA84ACE8F26CD11406A6466FE211C102D535A540918A03A23B3A41E15"
-slack-sigma-stanford_username = "F1FBC20559FBBC06DB661F9DFABABB20DDD7AEB119E9A215B051EAD669A1B841184043D9C2A44D8A13BF08FC053871BC910BFD0F403C1F2227"
-slack-taku_password = "6B85385D1FCD2DAF6AAB430CFE08E78935911630295BDC4AF4AAF30F8029B1B8B6BAFF9D8EB670B219706B21303EED7023B17A08534524CBF63307E10FC0FA841EAA93463CE2DA15F3"
+freenode_username = "267BA1A2CAF33A698B8E904956C22AB58BA422238E2D19C6098E6C91615F10D527AA12E8746A39EABDC7BACC"
+gitterpass = "0EE52B3FF69903AB53196EDEF720966F8B03BA2B9408D0BFCA1539CE5B7675F6B79C72FCFFD29FBCAF52BE28C372F4BE3861F331BC3CF6A90D81E6099467D4A3CA96E4C4F212C77CC222C6A699C45E9EBE"
+esip-all_password = "FA60CBE3C811A987C3FB1584701BFE1734EC1F6ADF71737A8C1E3BB5A3A660B905B9E34B1EFE636574A1FCB4A340B66291E69334C7530AE9AB85B203E1B715B1F95AA68B48BD"
+qualitystreet_password = "701ED5FC0C027BDF47A0829852F36F787B2AB3831CB0C4D414C8D219E1BCA4B84678CBB8A33302B3ED6258AF745B11F01D89C3AEE69FA6DF3EE4B2686B8B6048DFB4DED54645F58F56B436"
+qualitystreet_username = "0E921B5C41D022775AAC6F22284A6E4C206E03E351F7F823CEA98C8AB7AA642B528BB7C84054398765C62C20DD652570"
+takuglacierpass = "1661BF54F35184A57A477EB0FC74BC531B929E2674E91D279299B0BC5EE0ACF1FF37DFF4E44CCD465F48F98240196BA4268B6831D454737ED8020EE537396D6A09A6B6E21E63644F9C"
+pushapikey = "990DF91AE725DCDB2C39A53DC01BF68861C3199032A25FFB1916FCA07DDD50C23DED8E5E8C2B34AFA4BA0F1985FE97B90DC516FFE3A6ABF5FFF7CC6B88D3275ABEA03BEC4BF5C5"
+slack-sigma-stanford_password = "9BEBAC6CB596A7F9A15B1CF44BAA0B9C5D32EB27129BBE99190BE055FAD3B620C70EFD1D821DC693F69FB669D35C3741514DBA61C89E0430689F3113B6B12BF8EE2E4ACFC983B5C7C4FA597E"
+pushoverkey = "CB07F4855D3A761199BC0D5C1E80AF3DDA60E170C6B68013DD8DC27F85D31120786F68D7C5252C3C49013EE14291166B0114178B29DE0700CEBECFB1B9F300BEC19389C5D2CA81"
+bitlbee_password = "B1BB9EED2133F896E5A6D9038A4B6DE30F5EAF6650712E5BDF92F9479FA3ADC508F5C60F52A0777DE8D6CE107E5662B90BB7E2650C17EC1EA8DBB56DD106"
+esip-all_username = "7885819A57C5E2BE91AB2E8B996EF332F8C25692215BE27440AB13A7503B06B3FF525FEB8FCEC7C82D487BADF31EB490"
+iceberg-model_password = "88A13C3828AA7D6C66A7470B767739A52FF3B3CA117DBE41E038131ACCA0DBA331BD91BD6AB075BC1007AEE78060CE20F37441022449D6F4BE6DBED753DC68AC87F1423B81D866BF9C6B77"
+iceberg-model_username = "24CE8FDE1BE959744F8996459C86DB20780C5C6563C8B4D84840314E17D587FD09422C14944BC483008845FFF5A3F9"
+pushuserkey = "C52AFF4FC20B6EB87FA0232CD751B28A43D315B6986799BAA2522D9FD53D662F47143172034BB94D064693BD403E6DCAD4EB8A672130D45797E8AB846791FAC48414B6084771D0"
+freenode_password = "A3AC4D21EB8E27705AE1BD6E7D8535664E5AD181B50F6426E72645AD83A1C103EA71A9A27725261CA52F6171FAB6501692B408EF655D4FBEDF19E44EC44671"
+slack-taku_username = "16B49D40E99D5B892D624EAB2DD21A491C7AF9B96CB67B2D3DC4BA837D906B6A9EA224E513F7539B1DA5E3BAC764320484601291E39A708948"
+MOM6_password = "D4A97604608B24A617846CED33648A69D653D8F8E3CCE0468CD35B54DDE1125B45BEA5A29603AD4D99B0C55C44B18E4B5838978D1F9B90D68FC65F547F7DCFA244DB"
+MOM6_username = "4860E3C58C096CC5CD61DB90CCC51DCEEB204EA1C7CFCC286C62387FA56BF64276C727B563BBACA36898A9E2FEBE77"
+slack-sigma-stanford_username = "D0ECC860DCE02249FFF82E7428F8370DE21A6406ED4D3FA567C9E6FF10ADF1329635E1FCF361E1F068A09163EA55EF9CE207069C10A500A8F1"
+slack-taku_password = "D82FDEE6131A5D3B730A963E28CB0F3577D52280FCC8875E37F65AA6CA485642C214B5E6DE88B6E9BE9683BACC605C6A020BD9E945D4DEA8F6ED5A9BE9EAD2182114C6490103E14A22"
diff --git a/links/bin/irc.sh b/links/bin/irc.sh
@@ -1,18 +1,17 @@
-#!/bin/bash
+#!/usr/bin/env bash
+set -e
-#USER=ircuser
-#USER=adc
-USER=andersdc
-#HOST=susanoganders.dk
+USER=irc
HOST=adamsgaard.dk
-#PORT=12344
-PORT=22
+PORT=12344
#POSTCMD=\'bin/tmux-irc.sh\'
-POSTCMD=
+POSTCMD="tmux ls > tmuxcmd.log 2>&1"
-UNAMESTR=`uname`
+UNAMESTR=$(uname)
if [[ "$UNAMESTR" == 'Linux' ]]; then
- autossh -t -p $PORT $USER@$HOST $POSTCMD
+ #autossh -t -p $PORT $USER@$HOST $POSTCMD
+ mosh --server=/usr/local/bin/mosh-server \
+ --ssh="ssh -p $PORT" $USER@$HOST "$POSTCMD"
elif [[ "$UNAMESTR" == 'Darwin' ]]; then
#ssh -t -p $PORT $USER@$HOST $POSTCMD
mosh $USER@$HOST $POSTCMD
@@ -20,4 +19,3 @@ else
echo "Platform not supported"
exit 1
fi
-
diff --git a/links/bin/tmux-irc.sh b/links/bin/tmux-irc.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+SESSION=irc
+echo "starting $SESSION tmux session"
+
+if ! tmux has-session -t "$SESSION"
+then
+
+ # Create new session, name it, name the window, detach
+ tmux new-session -s "$SESSION" -d
+ tmux send-keys -t "$SESSION" "mutt; exit" C-m
+ tmux select-pane -t "$SESSION":1.1
+
+fi
+tmux attach -t "$SESSION"
diff --git a/links/bin/tmux-mutt.sh b/links/bin/tmux-mutt.sh
@@ -1,4 +1,4 @@
-##!/bin/bash
+#!/bin/bash
SESSION=mail
echo "starting $SESSION tmux session"
diff --git a/links/bin/tmux-newsboat.sh b/links/bin/tmux-newsboat.sh
@@ -1,4 +1,4 @@
-##!/bin/bash
+#!/bin/bash
SESSION=rss
echo "starting $SESSION tmux session"
diff --git a/links/bin/tmux-utility.sh b/links/bin/tmux-utility.sh
@@ -1,4 +1,4 @@
-##!/bin/bash
+#!/bin/bash
SESSION=utility
echo "starting $SESSION tmux session"