Skip to content

Instantly share code, notes, and snippets.

View epichub's full-sized avatar

Bjørn Magnus Mathisen epichub

View GitHub Profile
(defun epicemacs/save-and-kill-tramp-buffers ()
(interactive)
(let* (
(filter "\*") ;; not any meta buffers such as #<buffer *tramp/ssh rootepicvps*> - let them be
(ssh-buffers (seq-filter (lambda (buf)
(not (string-match-p filter (buffer-name buf))))
(tramp-list-remote-buffers)))
(ssh-buffer-names (mapcar #'buffer-name ssh-buffers))
(prettylist (mapconcat 'identity ssh-buffer-names " "))
)

Keybase proof

I hereby claim:

  • I am epichub on github.
  • I am bjornmagnus (https://keybase.io/bjornmagnus) on keybase.
  • I have a public key ASDJaLdr2uGXTMjDfDPL8flpnQbFIrx1H_rnh_dwKYIoZwo

To claim this, I am signing this object:

@epichub
epichub / # aspell - 2018-05-21_17-08-54.txt
Created May 21, 2018 15:16
aspell on macOS 10.13.4 - Homebrew build logs
Homebrew build logs for aspell on macOS 10.13.4
Build date: 2018-05-21 17:08:54
@epichub
epichub / # aspell - 2018-05-21_15-07-35.txt
Created May 21, 2018 13:17
aspell on macOS 10.13.4 - Homebrew build logs
Homebrew build logs for aspell on macOS 10.13.4
Build date: 2018-05-21 15:07:35
@epichub
epichub / csh_history_to_zsh_history.py
Last active December 20, 2017 00:25
Convert CSH history to ZSH history from https://gist.github.com/op/3802158
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This is how I used it:
# $ cat ~/.history | bash-history-to-zsh-history >> ~/.zsh_history
import sys
import re
def pairwise(iterable):
epic at bjornsretinapro $ git rebase local/master (2d17h0m)|*[master]
First, rewinding head to replay your work on top of it...
error: The following untracked working tree files would be overwritten by checkout:
figs/scopus graf år.png
Please move or remove them before you can switch branches.
Aborting
could not detach HEAD
epic at bjornsretinapro $ rm "figs/scopus graf år.png" (2d17h1m)|*[master]
Debugger entered--Lisp error: (void-variable 㬻㬠潲札敬摯挮敬‭ⴭ⁤楳灬慹牧⁨敡摥爠慮搠獲挠扬潣欠楮景⁵獩湧⁥汤潣ਊ㬻⁃潰祲楧桴
挩′〱㐠䙲敥⁓潦瑷慲攠䙯畮摡瑩潮Ⱐ䥮挮ਊ㬻⁁畴桯爺⃅腵歡獺⁇牵湥爠㱬畫慳穀杲畮敲⹬甾਻㬠䵡楮瑡楮敲㨠얁畫慳稠䝲畮敲‼汵歡獺䁧牵湥爮汵㸊㬻⁖敲獩潮㨠㘊㬻⁐慣歡来ⵒ敱畩牥猺
⡯牧•㠢⤩਻㬠啒䰺⁨瑴灳㨯⽢楴扵捫整⹯牧⽵歡獺术潲札敬摯挊㬻⁃牥慴敤㨠㈵⼰㔯㈰ㄴ਻㬠䭥祷潲摳㨠敬摯挬畴汩湥Ⱐ扲敡摣牵浢Ⱐ潲本⁢慢敬Ⱐ浩湩扵晦敲ਊ㬻⁔桩猠晩汥⁩猠湯琠灡牴映䕭慣献ਊ㬻⁇乕⁅浡捳⁩猠晲敥⁳潦瑷慲攺⁹潵⁣慮⁲敤楳瑲楢畴攠楴⁡湤⽯爠浯摩晹਻㬠楴⁵湤敲⁴桥⁴敲浳映瑨攠䝎唠䝥湥牡氠偵扬楣⁌楣敮獥⁡猠灵扬楳桥搠批਻㬠瑨攠䙲敥⁓潦瑷慲攠䙯畮摡瑩潮Ⱐ敩瑨敲⁶敲獩潮″映瑨攠䱩捥湳攬爊㬻
慴⁹潵爠潰瑩潮⤠慮礠污瑥爠癥牳楯渮ਊ㬻⁇乕⁅浡捳⁩猠摩獴物扵瑥搠楮⁴桥⁨潰攠瑨慴⁩琠睩汬⁢攠畳敦畬Ⰺ㬻⁢畴⁗䥔䡏啔⁁乙⁗䅒剁乔夻⁷楴桯畴⁥癥渠瑨攠業灬楥搠睡牲慮瑹昊㬻⁍䕒䍈䅎呁䉉䱉呙爠䙉呎䕓匠䙏删䄠偁剔䥃啌䅒⁐啒偏卅⸠⁓敥⁴桥਻㬠䝎唠䝥湥牡氠偵扬楣⁌楣敮獥⁦潲潲攠摥瑡楬献ਊ㬻⁙潵⁳桯畬搠桡癥⁲散敩癥搠愠捯灹映瑨攠䝎唠䝥湥牡氠偵扬楣⁌楣敮獥਻㬠慬潮朠睩瑨⁇乕⁅浡捳⸠⁉映湯琬⁳敥‼桴瑰㨯⽷睷⹧湵⹯牧⽬楣敮獥猯㸮ਊ㬻㬠䍯浭敮瑡特㨊਻㬻⁃桡湧敬潧㨊਻㬠䅳映〱⼱ㄯㄴ⁳睩瑣桩湧楣敮獥⁴漠䝐䰳⁴漠慬汯眠獵扭楳獩潮⁴漠潲札浯摥⸊㬻‰㠯ㄱ⼱㐠獷楴捨⁣潤攠瑯⁡畴潭慴楣慬汹⁤敦楮攠敬摯挭摯捵浥湴慴楯渭晵湣瑩潮Ⱐ扵琠摯渧琠慵瑯獴慲琠敬摯挭浯摥⸊਻㬻⁃潤攺ਊ⡲敱畩牥‧潲朩ਨ牥煵楲攠❯戭捯牥⤊⡲敱畩牥‧敬摯挩ਊ⡤敦杲潵瀠潲札敬摯挠湩氠∢›杲潵瀠❯牧⤊ਨ摥晣畳瑯洠潲札敬摯挭扲敡摣牵浢⵳数慲慴潲•⼢ਠ•䉲敡摣牵浢⁳数慲慴潲⸢ਠ›杲潵瀠❯牧ⵥ汤潣ਠ›瑹灥‧獴物湧⤊ਨ摥晣畳瑯洠潲札敬摯挭瑥獴ⵢ畦晥爭湡浥•‪佲札敬摯挠瑥獴⁢畦晥爪∊†≎慭攠潦⁴桥⁢畦晥爠畳敤⁷桩汥⁴敳瑩湧⁦潲潤攭汯捡氠癡物慢汥⁶慬略献∊†㩧牯異‧潲札敬摯挊†㩴祰攠❳瑲楮朩ਊ⡤敦畮牧ⵥ汤潣ⵧ整ⵢ牥慤捲畭戠⠩ਠ•剥瑵牮⁢牥慤捲畭戠楦渠愠桥慤汩湥爠湩氮∊†⡬整
⡣慳攭景汤⵳敡牣栠琩⁣畲⤊††⡳慶攭數捵牳楯渊†††⡢敧楮湩湧ⵯ昭汩湥⤊†††⡳慶攭浡瑣栭摡瑡ਠ†††
睨敮
汯潫楮札慴牧ⵣ潭灬數⵨敡摩湧⵲敧數瀩ਠ††††
獥瑱⁣畲
浡瑣栭獴物湧‴
Debugger entered--Lisp error: (void-variable 㬻㬠潲札敬摯挮敬‭ⴭ⁤楳灬慹牧⁨敡摥爠慮搠獲挠扬潣欠楮景⁵獩湧⁥汤潣ਊ㬻⁃潰祲楧桴
挩′〱㐠䙲敥⁓潦瑷慲攠䙯畮摡瑩潮Ⱐ䥮挮ਊ㬻⁁畴桯爺⃅腵歡獺⁇牵湥爠㱬畫慳穀杲畮敲⹬甾਻㬠䵡楮瑡楮敲㨠얁畫慳稠䝲畮敲‼汵歡獺䁧牵湥爮汵㸊㬻⁖敲獩潮㨠㘊㬻⁐慣歡来ⵒ敱畩牥猺
⡯牧•㠢⤩਻㬠啒䰺⁨瑴灳㨯⽢楴扵捫整⹯牧⽵歡獺术潲札敬摯挊㬻⁃牥慴敤㨠㈵⼰㔯㈰ㄴ਻㬠䭥祷潲摳㨠敬摯挬畴汩湥Ⱐ扲敡摣牵浢Ⱐ潲本⁢慢敬Ⱐ浩湩扵晦敲ਊ㬻⁔桩猠晩汥⁩猠湯琠灡牴映䕭慣献ਊ㬻⁇乕⁅浡捳⁩猠晲敥⁳潦瑷慲攺⁹潵⁣慮⁲敤楳瑲楢畴攠楴⁡湤⽯爠浯摩晹਻㬠楴⁵湤敲⁴桥⁴敲浳映瑨攠䝎唠䝥湥牡氠偵扬楣⁌楣敮獥⁡猠灵扬楳桥搠批਻㬠瑨攠䙲敥⁓潦瑷慲攠䙯畮摡瑩潮Ⱐ敩瑨敲⁶敲獩潮″映瑨攠䱩捥湳攬爊㬻
慴⁹潵爠潰瑩潮⤠慮礠污瑥爠癥牳楯渮ਊ㬻⁇乕⁅浡捳⁩猠摩獴物扵瑥搠楮⁴桥⁨潰攠瑨慴⁩琠睩汬⁢攠畳敦畬Ⰺ㬻⁢畴⁗䥔䡏啔⁁乙⁗䅒剁乔夻⁷楴桯畴⁥癥渠瑨攠業灬楥搠睡牲慮瑹昊㬻⁍䕒䍈䅎呁䉉䱉呙爠䙉呎䕓匠䙏删䄠偁剔䥃啌䅒⁐啒偏卅⸠⁓敥⁴桥਻㬠䝎唠䝥湥牡氠偵扬楣⁌楣敮獥⁦潲潲攠摥瑡楬献ਊ㬻⁙潵⁳桯畬搠桡癥⁲散敩癥搠愠捯灹映瑨攠䝎唠䝥湥牡氠偵扬楣⁌楣敮獥਻㬠慬潮朠睩瑨⁇乕⁅浡捳⸠⁉映湯琬⁳敥‼桴瑰㨯⽷睷⹧湵⹯牧⽬楣敮獥猯㸮ਊ㬻㬠䍯浭敮瑡特㨊਻㬻⁃桡湧敬潧㨊਻㬠䅳映〱⼱ㄯㄴ⁳睩瑣桩湧楣敮獥⁴漠䝐䰳⁴漠慬汯眠獵扭楳獩潮⁴漠潲札浯摥⸊㬻‰㠯ㄱ⼱㐠獷楴捨⁣潤攠瑯⁡畴潭慴楣慬汹⁤敦楮攠敬摯挭摯捵浥湴慴楯渭晵湣瑩潮Ⱐ扵琠摯渧琠慵瑯獴慲琠敬摯挭浯摥⸊਻㬻⁃潤攺ਊ⡲敱畩牥‧潲朩ਨ牥煵楲攠❯戭捯牥⤊⡲敱畩牥‧敬摯挩ਊ⡤敦杲潵瀠潲札敬摯挠湩氠∢›杲潵瀠❯牧⤊ਨ摥晣畳瑯洠潲札敬摯挭扲敡摣牵浢⵳数慲慴潲•⼢ਠ•䉲敡摣牵浢⁳数慲慴潲⸢ਠ›杲潵瀠❯牧ⵥ汤潣ਠ›瑹灥‧獴物湧⤊ਨ摥晣畳瑯洠潲札敬摯挭瑥獴ⵢ畦晥爭湡浥•‪佲札敬摯挠瑥獴⁢畦晥爪∊†≎慭攠潦⁴桥⁢畦晥爠畳敤⁷桩汥⁴敳瑩湧⁦潲潤攭汯捡氠癡物慢汥⁶慬略献∊†㩧牯異‧潲札敬摯挊†㩴祰攠❳瑲楮朩ਊ⡤敦畮牧ⵥ汤潣ⵧ整ⵢ牥慤捲畭戠⠩ਠ•剥瑵牮⁢牥慤捲畭戠楦渠愠桥慤汩湥爠湩氮∊†⡬整
⡣慳攭景汤⵳敡牣栠琩⁣畲⤊††⡳慶攭數捵牳楯渊†††⡢敧楮湩湧ⵯ昭汩湥⤊†††⡳慶攭浡瑣栭摡瑡ਠ†††
睨敮
汯潫楮札慴牧ⵣ潭灬數⵨敡摩湧⵲敧數瀩ਠ††††
獥瑱⁣畲
浡瑣栭獴物湧‴
#!/bin/bash
./cleanupPlan.sh
./start.sh 2&> startoutput.log
sleep 100s
curl -d "method=CreateCis&cisName=trekkies&mode=PUBLIC" http://localhost:8080/societies-test/create-cis-step-3.html | grep success
removal of "
<dependency>
<groupId>uk.ac.gate</groupId>
<artifactId>gate-core</artifactId>
<version>7.0</version>
<exclusions>
<exclusion>
<groupId>urbanophile</groupId>
<artifactId>java-getopt</artifactId>
</exclusion>