Skip to content

Instantly share code, notes, and snippets.

Azilet Beishenaliev bazi

View GitHub Profile
View vimrc
" settings for vim
" 2016-20xx, Azilet
"
" set tab width and replace it with spaces
set tabstop=4
set shiftwidth=4
set expandtab
set nu
set ruler " not set on macos
@bazi
bazi / bash_aliases.bash
Last active Sep 18, 2019
Configuration files
View bash_aliases.bash
# some more ls aliases
alias ll='ls -lGF'
alias la='ls -AG'
# commented out in preference to using GREP_OPTIONS
#alias grep='grep --color=auto'
#alias fgrep='fgrep --color=auto'
#alias egrep='egrep --color=auto'
@bazi
bazi / ssl_configuration.md
Last active Jun 30, 2016
Generating certificates and keys for SSL to used in Jetty
View ssl_configuration.md

Generate key pair, pass phrase will be asked

openssl genrsa -aes128 -out jetty.key

Generate a certificate for the key generated above (you should know the pass phrase for the key). You will be asked to enter some info about you/your org to build a Distinguished Name (DN). The only mandatory response to provide is the fully qualified host name of the server at the "Common Name". Note that i used -days 365 option to make certificate valid for one year, change as needed

@bazi
bazi / java.gitignore
Last active Oct 21, 2019
gitignore file for java projects
View java.gitignore
target/
logs/
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
# jetbrains related ignores
.idea/
@bazi
bazi / key_binding.sh
Last active Mar 18, 2017
Disable key binding in Ubuntu (Unity)
View key_binding.sh
# to disable default key bindings, here Alt+F7(move window) and Alt+F8(resize window)
gsettings set org.gnome.desktop.wm.keybindings begin-resize []
gsettings set org.gnome.desktop.wm.keybindings begin-move []
# to revert
gsettings reset org.gnome.desktop.wm.keybindings begin-move
gsettings reset org.gnome.desktop.wm.keybindings begin-resize
@bazi
bazi / keybase.md
Last active Jun 16, 2016
Keybase proof
View keybase.md

Keybase proof

I hereby claim:

  • I am bazi on github.
  • I am azilet (https://keybase.io/azilet) on keybase.
  • I have a public key whose fingerprint is 791F 1BDC 9C50 54D2 CED1 5D72 2515 193D E2DB 58B4

To claim this, I am signing this object:

@bazi
bazi / MultipartSignedTemplateEngine
Created Mar 26, 2015
A try to implement MIME multipart/signed content type generator aka template engine in Ninja framework
View MultipartSignedTemplateEngine
package controllers.helper;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Base64;
import java.util.UUID;
@bazi
bazi / first
Created Jan 19, 2015
Some gist
View first
Hello Gist World!
You can’t perform that action at this time.