Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Nikita Dudnik Nek

🎯
Focusing
View GitHub Profile
@Nek
Nek / uninstall_homebrew.sh
Last active Aug 23, 2020 — forked from mxcl/uninstall_homebrew.sh
Uninstall Homebrew
View uninstall_homebrew.sh
#!/bin/sh
# Just copy and paste the lines below (all at once, it won't work line by line!)
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY!
function abort {
echo "$1"
exit 1
}
set -e
View keybase.md

Keybase proof

I hereby claim:

  • I am nek on github.
  • I am dudnik (https://keybase.io/dudnik) on keybase.
  • I have a public key ASC8jl5ig4G_4A4GN2ZtqUiL1EjlFd5ShfXpRTKvnL2B-go

To claim this, I am signing this object:

@Nek
Nek / eslint.json
Last active Jan 2, 2019
JS support in Emacs
View eslint.json
// Part of package.json with eslint configuration I use.
// You'll need eslint-plugin-prettier in your dev dependencies
// and probably a bunch of other things. Eslint will complain.
// Just install what it asks for.
"eslintConfig": {
"extends": "react-app",
"plugins": [
"prettier"
],
@Nek
Nek / stuff.txt
Last active Dec 29, 2018
stuff to install
View stuff.txt
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install cask
brew cask install alfred
brew cask install karabiner-elements
brew cask install gitup
brew cask install telegram
brew cask install google-chrome
brew cask install google-chrome-canary
brew cask install omnifocus
brew cask install selfcontrol
View countup-and-countdown.markdown

Countup and Countdown

A countdown to a specific date that animates up from 0 and then starts the countdown.

A Pen by Nikita Dudnik on CodePen.

License.

View init.el
(require 'package)
(setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
("melpa" . "https://melpa.org/packages/")
("marmalade" . "https://marmalade-repo.org/packages/")
("org" . "http://orgmode.org/elpa/")
("sunrise" . "http://joseito.republika.pl/sunrise-commander/")))
(package-initialize)
(defun package-install-if-not (package)
"Install PACKAGE if it's not installed yet."
View bash_to_fish.txt
setting variables
bash: var=value
fish: set var value
function arguments
bash: "$@"
fish: $argv
function local variables
bash: local var
@Nek
Nek / .emacs
Last active Jan 4, 2018
Dot files
View .emacs
(require 'package)
(setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
("melpa" . "https://melpa.org/packages/")
("marmalade" . "https://marmalade-repo.org/packages/")
("org" . "http://orgmode.org/elpa/")
("sunrise" . "http://joseito.republika.pl/sunrise-commander/")))
(package-initialize)
(defun package-install-if-not (package)
"Install PACKAGE if it's not installed yet."
@Nek
Nek / shell.md
Last active Dec 21, 2017
Shell tricks
View shell.md

Files changed in current branch relatively to some other branch:

git checkout <notMainDev>
git diff --name-only <mainDev>

Take .js and .jsx file names from log and feed them to prettier rewiting them with output:

View bootstrap.sh
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install fish
brew install wget
brew install gnutls
brew install git
brew install jq
brew install rlwrap
# clojure
brew install leiningen
# js stuff
You can’t perform that action at this time.