Skip to content

Instantly share code, notes, and snippets.

View ibihim's full-sized avatar
🎉

Krzysztof Ostrowski ibihim

🎉
View GitHub Profile
@ibihim
ibihim / spacemacs-cheshe.md
Last active September 28, 2018 14:43 — forked from robphoenix/spacemacs-cheshe.md
Spacemacs Cheat Sheet

Useful Spacemacs commands

  • SPC q q - quit
  • SPC w / - split window vertically
  • SPC w - - split window horizontally
  • SPC 1 - switch to window 1
  • SPC 2 - switch to window 2
  • SPC w c - delete current window
  • SPC TAB - switch to previous buffer
  • SPC b b - switch buffers

Keybase proof

I hereby claim:

  • I am ibihim on github.
  • I am ibihim (https://keybase.io/ibihim) on keybase.
  • I have a public key ASBfpRHC6oZtYxb7ehj5I1gMe5VqOmaKK3xQZ8yhuyE1wAo

To claim this, I am signing this object:

@ibihim
ibihim / encrypt-partition.sh
Last active June 4, 2018 19:17
Encrypted Partition creation with cryptsetup
# Convert partition to LUKS format
sudo cryptsetup --verbose --cipher aes-xts-plain64 --key-size 512 --hash sha512 --iter-time 4000 --use-random luksFormat /dev/sdd
# Gather information about newly encrypted partition
sudo cryptsetup luksDump /dev/sdd
# Map partition to device name
sudo cryptsetup luksOpen /dev/sdd secrets
# Gather information about new device
@ibihim
ibihim / iterm2-solarized.md
Created April 17, 2018 06:43 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k

@ibihim
ibihim / arch_install.sh
Last active March 26, 2023 16:27
Arch install in progress
# Installation on Lenovo X1 5th Generation
# Installation guide: https://wiki.archlinux.org/index.php/Installation_Guide
# Encryption: https://wiki.archlinux.org/index.php/Dm-crypt/Device_encryption#Cryptsetup_usage
# LVM: https://wiki.archlinux.org/index.php/LVM
# Set large font, if necessary
setfont latarcyrheb-sun32
# Connect to Internet
@ibihim
ibihim / roles.js
Created September 5, 2017 07:45
Power of reduce
const getAuthData = (users) =>
users.reduce((authObj, user) => {
const { roles, organizations, clients } = user;
authObj.userRoles.push(roles.toStirng());
authObj.organizations.push(organizations.toString()) ;
authObj.userClient.push(clients.toSring()) ;
}, { userRoles: [], organizaionts: [], userClients: [] });