Skip to content

Instantly share code, notes, and snippets.

View balazsdukai's full-sized avatar

Balázs Dukai balazsdukai

View GitHub Profile
@fwrite
fwrite / AHN4.md5
Last active January 25, 2023 08:48
Checksums AHN4 LAZ
56c731a1814dd73c79a0a5347f8a04c7 C_01CZ1.LAZ
26de158dc2699e1e35a06d336047461f C_01CZ2.LAZ
ba05f53a6a4f67fff37a75f2bdbae46c C_01DZ1.LAZ
b3f40a5bd4ac649d2e1a2d27602f5ca9 C_01DZ2.LAZ
eef0906961c2c96984629502ab56ecd8 C_01GN1.LAZ
6cecccdc203050cd8197ac662e211783 C_01GN2.LAZ
fa8276a1e660d80a44be7cf96b26c436 C_01GZ1.LAZ
6d7783014c05ed189a74f3cedd1d78db C_01GZ2.LAZ
e0f58b55eebf15b9f7cf2a6779e8669b C_01HN1.LAZ
e1b2ae51eb6d39256376869329390cf2 C_01HN2.LAZ
bd955696a6c134bbd0e8eb6d40814feb R_01CZ1.ZIP
b9175c1aab0e0e7983a7461faf8596c3 R_01CZ2.TIF
b53c57db6be6d452af8e4bb6d6ab4635 R_01CZ2.ZIP
e234b9ec085a8e140f3d4364fc3d817f R_01DZ1.ZIP
5b9f8af65da0936360e84e564fb1168f R_01DZ2.ZIP
c83da5e331b870587b153e8205d3bb21 R_01GN1.ZIP
f78bb3e6212ee0817e6bf75aef7f38dd R_01GN2.ZIP
e2756d0b95c83636e2149ef6fb07c945 R_01GZ1.ZIP
7a59c43819eba663a47e7c6b468d5d24 R_01GZ2.ZIP
5db2361d5d37ef124196477d49f3cfd0 R_01HN1.ZIP
@rochacbruno
rochacbruno / send_email.py
Created March 25, 2020 22:11
Send Email Python Local SMTP postfix
"""
sudo systemcrl start sendmail
"""
import smtplib
from dynaconf import settings
def get_email_server():
"""Creates an instance of email server.
@bhaskarvk
bhaskarvk / Setup GCC and CLANG Toolchains.md
Last active July 4, 2024 09:47
Proper GCC (vers. 5/6/7) & LLVM/CLANG (vers. 4/5) Toolchain Setup on Ubuntu/Linux Mint

This approach uses update-alternatives to manage GCC and LLVM/CLANG C/C++ compiler toolchains. Although tested on Linux Mint 18.3, this approach should work on any Debian based distro or for that matter any Linux distro with update-alternatives support, provided the packages are installed correctly.

There are 3 files

  • gcc-alternatives.sh installs GCC versions 5/6/7 and sets up alternatives for gcc/g++/cpp/gfortran.
  • llvm-clang-alternatives.sh installs LLVM and CLANG versions 4/5 and sets up alternatives for various LLVM and CLANG programs including clang and clang++.
  • cc-alternatives.sh sets up alternatives for the cc, cxx, and the ld commands. This script can be used to change systemwide default compiler/linker combination to either GCC or CLANG.

Once these scripts are run you can change the system GCC/CLANG versions by running sudo update-alternatives --config gcc|clang. To change the default compiler/linker combo used by t

@randy3k
randy3k / nginx.conf
Last active August 26, 2018 15:26
jupyterhub and rstudio server setups
user www-data;
worker_processes auto;
pid /run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;
}
http {
@kissgyorgy
kissgyorgy / sqlalchemy_conftest.py
Last active April 21, 2025 11:44
Python: py.test fixture for SQLAlchemy test in a transaction, create tables only once!
from sqlalchemy import create_engine
from sqlalchemy.orm import Session
from myapp.models import BaseModel
import pytest
@pytest.fixture(scope="session")
def engine():
return create_engine("postgresql://localhost/test_database")