Skip to content

Instantly share code, notes, and snippets.

View ErnHem's full-sized avatar
🌴
Awesome place!

ErnHem

🌴
Awesome place!
View GitHub Profile
#/usr/bin/env bash
echo "####### UPDATING #######"
sudo apt-get update -yq
sudo apt-get upgrade -yq
sudo apt-get autoclean -yq
sudo apt-get autoremove -yq
echo "####### INSTALLING zsh curl wget bat #######"
sudo apt-get install -yq zsh curl wget bat
# Boot USB
DiskUtil -> View -> show all devices
Erize USB Drive -> Scheme GUID partition map + exFat
## Terminal
diskutil list
hdiutil convert -format UDRW -o ~/Yandex.Disk.localized/Downloads/kali-linux-lxde-2019-3-amd64-iso/kali-linux-lxde-2019.3-amd64 ~/Yandex.Disk.localized/Downloads/kali-linux-lxde-2019-3-amd64-iso/kali-linux-lxde-2019.3-amd64.iso
diskutil unmountDisk /dev/disk3
sudo dd if=~/Yandex.Disk.localized/Downloads/kali-linux-lxde-2019-3-amd64-iso/kali-linux-lxde-2019.3-amd64.dmg of=/dev/disk3 bs=1m
@ErnHem
ErnHem / aws.md
Created April 23, 2019 12:26 — forked from colinvh/aws.md
AWS Region Names

Alternative naming schemes for AWS regions

Purpose

The intent is to define terse, standards-supported names for AWS regions.

Schemes

@ErnHem
ErnHem / iterm2-solarized.md
Created January 17, 2019 16:26 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k

@ErnHem
ErnHem / YETI
Last active August 14, 2018 16:39
Error in prod with running /lib/systemd/system/yeti_uwsgi.service
https://github.com/yeti-platform/yeti/issues/82
In all /lib/systemd/system/yeti_* service files change "ExecStart=/usr/local/bin/celery" to "ExecStart=/sbin/celery"
@ErnHem
ErnHem / ssh
Last active August 14, 2018 10:35
*server*
useradd username
passwd username
su username
*host*
cat ~/.ssh/id_rsa.pub | ssh username@remote_host "mkdir -p ~/.ssh && touch ~/.ssh/authorized_keys && chmod -R go= ~/.ssh && cat >> ~/.ssh/authorized_keys"
*Disable Password Authentication on your Server*
sudo vi /etc/ssh/sshd_config
...
ImportError: No module named magic
sudo apt-get install python3-magic
import sys
sys.path.append('/opt/splunk/bin/scripts/TheHive4py/')
Windows needs
libmagic
4e10e1b70d091c64291b5fcbccf61f396e103249941d41be4aeda78d06dc3391