Skip to content

Instantly share code, notes, and snippets.

View jasalt's full-sized avatar

Jarkko Saltiola jasalt

View GitHub Profile
@justinmklam
justinmklam / flask-port80-without-sudo.md
Last active June 21, 2024 19:59
Run a flask app on port 80 without sudo.

Flask apps are bound to port 5000 by default. To bind it to port 80, you would need to change the port as follows:

if __name__ == '__main__':
    app.run(host='0.0.0.0', port=80, debug=True)

And to run it:

@christoph-frick
christoph-frick / Awesome-Fennel.md
Last active March 5, 2025 19:06
Use fennel to write the awesome-wm config

How to write an awesome-wm config with Fennel

Awesome-WM is a X11 window manager, that is configured via Lua. Fennel is a Lisp for Lua. This shows a general setup of how to write your awesome-wm config using fennel directly without the compilation step (which would also work, but is not needed).

General setup

Fetch a recent Fennel version (the

@mao-odoo
mao-odoo / odoo_versions.md
Last active April 14, 2025 10:26
Odoo version timeline - saas vs main version

Current Versions

Major Version SaaS Version Official Release Date Planned End of life Bug fix New On Premise New Odoo Online New Odoo.sh
16.0 October 12th 2022 Q4 2025 🔴
saas-16.1 February 2023 June 2023 🔴 🔴 🔴 🔴
saas-16.2 March 2023 Q4 2023 🔴 🔴 🔴 🔴
saas-16.3 June 2023 Q4 2023 🔴 :red_circ
@GuiSim
GuiSim / Traktor Kontrol S4 MIDI input port 0.djayMidiMapping
Created June 12, 2017 07:51
Traktor S4 configuration file for DJay Pro
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>controls</key>
<array>
<dict>
<key>controlType</key>
<string>button</string>
<key>keyPath</key>
@luckydev
luckydev / gist:b2a6ebe793aeacf50ff15331fb3b519d
Last active April 3, 2025 18:13
Increate max no of open files limit in Ubuntu 16.04/18.04 for Nginx
# maximum capability of system
user@ubuntu:~$ cat /proc/sys/fs/file-max
708444
# available limit
user@ubuntu:~$ ulimit -n
1024
# To increase the available limit to say 200000
user@ubuntu:~$ sudo vim /etc/sysctl.conf
@kamiheku
kamiheku / djbb.py
Created September 26, 2016 09:32
#!/usr/bin/env python3
import requests
import re
import shutil
def download(id):
r = requests.get("http://www.breakbeat-paradise.com/bb_download.php?sampleid={}".format(id))
html = r.text
url = re.search('http://.+\.zip', html).group(0)

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by
@cheynewallace
cheynewallace / nginx-ssl-wordpress-letsencrypt
Last active June 28, 2018 11:51
Nginx Site Running WordPress SSL Config Using LetsEncrypt Cert
server {
listen 80;
server_name yoursite.com www.yoursite.com;
return 301 https://www.yoursite.com$request_uri;
}
# HTTPS server
server {
listen 443;
server_name www.yoursite.com yoursite.com;
@mothsART
mothsART / pelicanconf.py
Last active December 16, 2015 11:54
i18n site
PLUGINS = [
'i18n_subsites',
]
# i18n
JINJA_EXTENSIONS = ['jinja2.ext.i18n']
I18N_GETTEXT_LOCALEDIR = 'themes/lab/translations'
DEFAULT_LANG = 'fr'
# define "I18N_SUBSITES" as a empty dictionary doesn't really matters : it's initialized on i18n_subsites.py on line 65
# I18N_SUBSITES = {}