Skip to content

Instantly share code, notes, and snippets.

View RobertMatkulcik's full-sized avatar
🖥️
Computing....

Róbert Matkulčík RobertMatkulcik

🖥️
Computing....
View GitHub Profile
@GAS85
GAS85 / http2_apache2_ubuntu20.04.md
Last active April 19, 2024 18:11
How to Enable HTTP/2 in Apache 2.4 on Ubuntu 20.04

Based on https://gist.github.com/GAS85/8dadbcb3c9a7ecbcb6705530c1252831

Requirements

  • A self-managed VPS or dedicated server with Ubuntu 20.04 running Apache 2.4.xx.
  • A registered domain name with working HTTPS (TLS/SSL). HTTP/2 only works alongside HTTPS because most browsers, including Firefox and Chrome, don’t support HTTP/2 in cleartext (non-TLS) mode.

Step 1: Install Apache2

Per default it will be apache2 version 2.4.41 what is enought for http2 support.

@bgadrian
bgadrian / setup.dev.sh
Last active October 25, 2022 21:38
Linux web dev setup (made for ubuntu 17+)
#chrome
cd /tmp
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo apt-get -f install
#docker
sudo apt-get update
sudo apt-get install -y \
apt-transport-https \
@yablko
yablko / sublime_settings_2k17.md
Last active October 8, 2020 14:57
Sublime Text JS kurz 2017/18 settings

Sublime Text 3 nastavenia

Package Control.sublime-settings
CTRL + SHIFT + P, "Package Control Settings - User"
(CMD + SHIFT + P na Macu)

{
	"bootstrapped": true,
	"in_process_packages":

[

alias gitlog="git log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(bold white)— %an%C(reset)' --abbrev-commit"
@veggiemonk
veggiemonk / .gitconfig
Last active February 19, 2024 16:49
simple zshrc config file with Oh-My-ZSH
[user]
name = Julien Bisconti
email = ******
[core]
excludesfile = ~/.gitignore
pager = diff-so-fancy | less --tabs=1,5 -R
editor = /usr/bin/vim
[alias]
wow = log --all --graph --decorate --oneline --simplify-by-decoration
@yablko
yablko / sublime_settings.md
Last active December 17, 2023 17:56
Sublime Text 3 nastavenia pre Webrebel kurz

Nové Sublime Text 3 nastavenia

Package Control.sublime-settings
CTRL + SHIFT + P, "Package Control Settings - User"
(CMD + SHIFT + P na Macu)

{
	"auto_upgrade_last_run": null,
	"bootstrapped": true,

"in_process_packages":

@powellc
powellc / pg_backup_all.sh
Last active October 1, 2023 19:14
Bash script to backup all postgresql databases on a server, run with cron once a day or 5 times a day, whatever. Just updated it so it ignores your postgres db, and also bzips the backups and adds a symlink to a latest directory. Sweet.
#!/bin/bash
# Location to place backups.
backup_dir="/var/backups/databases/"
nightly_dir="/var/backups/databases/latest/"
#String to append to the name of the backup files
backup_date=`date +%d-%m-%Y`
#Numbers of days you want to keep copie of your databases
number_of_days=15
databases=`psql -l -t | cut -d'|' -f1 | sed -e 's/ //g' -e '/^$/d'`
for i in $databases; do if [ "$i" != "postgres" ] && [ "$i" != "template0" ] && [ "$i" != "template1" ] && [ "$i" != "template_postgis" ]; then