Skip to content

Instantly share code, notes, and snippets.

050y9lhe8p.com
0914.global.ssl.fastly.net
0c3-a.tlnk.io
0i0i0i0.com
1-100-62-1.b.cdn13.com
101order.com
1197817332.peerclicktrk.com
123found.com
123mov.is
140proof.com
@mannih
mannih / gist:6bd27a3663ff9ff5781ba82f8cf94214
Last active December 21, 2020 11:31
make won't find make
# do this in some temporary empty directory:
echo -e "all:\n\tmake" > Makefile
mkdir -p foo/make
export PATH=foo:$PATH
make
@mannih
mannih / gist:164076d44103720d3abe6a70f67c3b86
Created December 20, 2020 17:42
plenv install 5.32.0: make[1]: make: Permission denied
make[1]: Leaving directory '/home/manni/.plenv/build/1608485718.71483/perl-5.32.0/dist/IO'
./miniperl -Ilib make_ext.pl lib/auto/IPC/SysV/SysV.so MAKE="make" LIBPERL_A=libperl.a LINKTYPE=dynamic
Setting license tag...
Generating a Unix-style Makefile
Writing Makefile for IPC::SysV
make[1]: Entering directory '/home/manni/.plenv/build/1608485718.71483/perl-5.32.0/cpan/IPC-SysV'
Running Mkbootstrap for SysV ()
chmod 644 "SysV.bs"
/home/manni/.plenv/build/1608485718.71483/perl-5.32.0/cpan/IPC-SysV/../../miniperl "-I../../lib" -MExtUtils::Command::MM -e 'cp_nonempty' -- SysV.bs ../../lib/auto/IPC/SysV/SysV.bs 644
make[1]: make: Permission denied
@mannih
mannih / gist:9f595cbfbb2eacb92947c93d36b390bc
Created October 30, 2020 14:18
Jenkins error on save project configuration
2020-10-30 08:37:29.937+0000 [id=69] WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving http://foobarexample.com/tools/jenkins/job/FAQ_Stage/configSubmit
java.lang.ClassNotFoundException: ["hudson.plugins.im.build_notify.DefaultBuildToChatNotifier","hudson.plugins.im.build_notify.ExtraMessageOnlyBuildToChatNotifier","hudson.plugins.im.build_notify.SummaryOnlyBuildToChatNotifier","hudson.plugins.im.build_notify.BuildParametersBuildToChatNotifier","hudson.plugins.im.build_notify.PrintFailingTestsBuildToChatNotifier"]
at hudson.PluginManager$UberClassLoader.findClass(PluginManager.java:2065)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:669)
Caused: java.lang.IllegalArgumentException: Class ["hudson.plugins.im.build_notify.DefaultBuildToChatNotifier","hudson.plugins.im.build_notify.ExtraMessageOnlyBuildToChatNotifier","hudson.plugins.im.build_notify.Summa
@mannih
mannih / gist:1ca4977f633b73237315
Created February 18, 2016 14:10
multissh with tmux
multissh() {
local hosts=( $* )
local win=$( tmux new-window -dP "ssh ${hosts[0]}" )
unset hosts[0]
for i in "${hosts[@]}"; do
tmux split-window -ht$win "ssh $i"
tmux select-layout -t$win tiled > /dev/null
done
tmux select-pane -t $win
@mannih
mannih / hl-var.vim
Last active August 29, 2015 14:01
Automatic variable highlighting in vim the easy way
" Vim plugin to highlight variables in Perl.
" I now created a repository from this: https://github.com/mannih/vim-perl-variable-highlighter
function! s:hlvar()
if ( exists( "w:current_match" ) )
call matchdelete( w:current_match )
unlet w:current_match
endif
let l:old_iskeyword = &iskeyword
@mannih
mannih / gist:2400939
Created April 16, 2012 19:29
bash function to disable git ci -am ...
git () {
if [ "$1" = "ci" -a "$2" = "-am" ]; then
curl --silent http://www.trout.me.uk/cgi-bin/mstomatic.cgi | grep h1 | cut -d '>' -f 3 | cut -d '<' -f 1
return 1;
fi
command git $@
}