Skip to content

Instantly share code, notes, and snippets.

View nfedyashev's full-sized avatar

Nikita Fedyashev nfedyashev

View GitHub Profile
@nfedyashev
nfedyashev / install-rabbitmq.sh
Created January 5, 2020 04:15 — forked from yetanotherchris/install-rabbitmq.sh
RabbitMQ on Docker with admin UI
# AWS specific install of Docker
sudo yum update -y
sudo yum install -y docker
sudo service docker start
sudo usermod -a -G docker ec2-user
# exit the SSH session, login again
# Docker
docker run -d --hostname my-rabbit --name some-rabbit -p 4369:4369 -p 5671:5671 -p 5672:5672 -p 15672:15672 rabbitmq
@nfedyashev
nfedyashev / burn.sh
Created December 7, 2019 12:34
burn manjaro iso to flash drive
diskutil list
diskutil partitionDisk /dev/disk1 1 "Free Space" "unused" "100%"
sudo dd bs=1m of=/dev/rdisk1 if=manjaro-kde-17.0-stable-x86_64.iso
https://www.youtube.com/feeds/videos.xml?channel_id=CHANNELID
@nfedyashev
nfedyashev / elisp
Created November 7, 2019 00:26
loop through all outline headings in the current file and add an ID if there's not already one there:
(require 'org-id)
(save-excursion
(goto-char (point-max))
(while (outline-previous-heading)
(org-id-get-create)))
cd ~/.emacs.d/elpa/
cd develop
find org*/*.elc -print0 | xargs -0 rm
#spacemacs/recompile-elpa
setw -g mode-keys vi
#bind h select-pane -L
#bind j select-pane -D
#bind k select-pane -U
#bind l select-pane -R
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
# act like GNU screen
unbind C-b
cd ~/.emacs.d
git checkout -b fix-org-projectile
git cherry-pick 6063466
rm CHANGELOG.develop
git add -A .
git cherry-pick --continue
alias whitespace='find . -not \( -name .svn -prune -o -name .git -prune \) -type f -print0 | xargs -0 file -In | grep -v binary | cut -d ":" -f1 | xargs -0 sed -i '' -E "s/[[:space:]]*$//"'
@nfedyashev
nfedyashev / A4.txt
Created October 31, 2019 19:38
To print
helm-ag-edit
avy-goto-char-timer
view-lossage
SPC v v - expand selection region
dump jump
#+BEGIN_SRC emacs-lisp
;; active Babel languages
(org-babel-do-load-languages
'org-babel-load-languages
'((gnuplot . t)))
;; add additional languages with '((language . t)))
#+END_SRC