Skip to content

Instantly share code, notes, and snippets.

View qba73's full-sized avatar
👨‍💻

Jakub Jarosz qba73

👨‍💻
View GitHub Profile
@qba73
qba73 / .tmux.conf
Created October 23, 2023 17:23 — forked from sharjeelaziz/.tmux.conf
tmux commands refresher with config
set -g @plugin 'tmux-plugins/tmux-logging'
#set prefix
set -g prefix C-a
bind C-a send-prefix
unbind C-b
set -g history-limit 100000
set -g allow-rename off
@qba73
qba73 / pcat-install.sh
Created January 8, 2019 09:27 — forked from BretFisher/pcat-install.sh
On macOS: Install pygmentize and alias pcat for shell code syntax highlighting
# first install pygmentize to the mac OS X or macOS system with the built-in python
sudo easy_install Pygments
# then add alias to your ~/.bash_profile or ~/.bashrc or ~/.zshrc etc.
alias pcat='pygmentize -f terminal256 -O style=native -g'
@qba73
qba73 / cbed-targz02
Created July 12, 2018 14:18
cbed-targz02
$ tar -xvzf terraform.tar.gz
x terraform-test/
x terraform-test/terraform.tfstate
x terraform-test/main.tf
$ ls terraform-test/
main.tf terraform.tfstate
@qba73
qba73 / cbed-targz
Created July 12, 2018 14:03
cbed-snippet001
$ ls terraform-test/
main.tf terraform.tfstate
$ tar -zcvf terraform.tar.gz terraform-test
a terraform-test
a terraform-test/terraform.tfstate
a terraform-test/main.tf
$ ls | grep terraform.tar
terraform.tar.gz
@qba73
qba73 / infosec_newbie.md
Created February 18, 2018 19:49 — forked from mubix/infosec_newbie.md
How to start in Infosec

FWIW: I didn't produce the content present here. I've just copy-pasted it from somewhere over the Internet, but I cannot remember exactly the original source. I was also not able to find the author's name, so I cannot give him/her the proper credit.


Effective Engineer - Notes

What's an Effective Engineer?

#!/bin/bash
echo "Updating brew..."
brew update
echo "Upgrading packages..."
brew upgrade
echo "Making cleanup..."
brew cleanup
@qba73
qba73 / acloudguru_ec2_1
Created January 7, 2017 15:00
EC2 basic web page - script executed when EC2 instance starts
#!/bin/bash
yum install httpd -y
yum update -y
service httpd start
chkconfig httpd on
echo "<html><h1>Hello Cloud Gurus!</h1></html>" > /var/www/html/index.html
@qba73
qba73 / gitclone
Created December 30, 2016 22:02
git-clone
git -c http.sslVerify=false clone -b master --single-branch https://<repo>
@qba73
qba73 / brew-cleanup
Created November 17, 2016 05:48
Cleanup macos
brew update && brew upgrade && brew cleanup && brew cask cleanup