Skip to content

Instantly share code, notes, and snippets.

View qba73's full-sized avatar
👨‍💻

Jakub Jarosz qba73

👨‍💻
View GitHub Profile
@sharjeelaziz
sharjeelaziz / .tmux.conf
Last active November 12, 2023 02:19
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
@BretFisher
BretFisher / pcat-install.sh
Last active February 6, 2024 14:41
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'

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@phips
phips / wip.py
Last active June 19, 2017 14:20
VMware Fusion Ansible dynamic inventory
#!/usr/bin/env python
import sys
import subprocess
import re
import string
try:
import json
except:
import simplejson as json
@gosukiwi
gosukiwi / .vimrc
Last active February 24, 2020 06:01
.vimrc
" ---------------------- USABILITY CONFIGURATION ----------------------
" Basic and pretty much needed settings to provide a solid base for
" source code editting
" don't make vim compatible with vi
set nocompatible
" turn on syntax highlighting
syntax on
" and show line numbers
@qba73
qba73 / git-commands
Last active August 29, 2015 13:56
GIT, checkout remote branch
To fetch a branch:
------------------------------------------
git fetch origin
git checkout -b test origin/test
Delete remote branch:
------------------------------------------
git push origin --delete <branchName>
@inglesp
inglesp / gist:8866459
Created February 7, 2014 16:39
Django tutorial exercises
Here are some ideas for ways to extend the polls app built during the Django tutorial at https://docs.djangoproject.com/en/1.6/intro/tutorial01/.
# On the index page
* show the date that each poll was published
* show the total number of votes for each poll
* show the most popular response(s) for each poll
* only show the polls whose `pub_date` field is in the past
# On the detail page
* add a link to see the results directly, without voting
* order the options alphabetically
@akkerman
akkerman / Install PostGIS and GeoServer on Ubuntu 13.04.md
Last active May 28, 2023 01:53
Install PostGIS and GeoServer on Ubuntu 13.04

Install PostGIS and GeoServer on Ubuntu 13.04

PostGIS installation

Postgresql

Install the server:

sudo apt-get install postgresql-9.1 postgresql-contrib-9.1 pgadmin3

Execute the psql command under user postgres (sudo -u postgres)
and connect to database postgres (psql postgres):

@namuan
namuan / gist:6329179
Last active December 21, 2015 15:49
Push JMeter reports to elastic search
Start elastic search
./bin/elasticsearch -f
Start logstash
Logstash configuration to process JMeter data
$ cat dlogs.conf
input {
stdin {