Skip to content

Instantly share code, notes, and snippets.

View odoo_logorate_config_creator.sh
#!/bin/bash
# Origingal source:
# https://github.com/ventor-tech/odoo-install-script/blob/main/logrotate.sh
# RUN AS ROOT
OE_LOG_PATH="/var/log/odoo/log"
cat <<EOF > /etc/logrotate.d/odoo
#Path odoo logs
${OE_LOG_PATH}/*.log {
@samveen
samveen / setup-vpn.sh
Last active Feb 24, 2022
MicroHOWTO - NetworkManager controlled OpenVPN connections
View setup-vpn.sh
#!/bin/bash
# {MicroHOWTO|Script} to setup a NetworkManager controlled openvpn connection
# OVPN Config file is the parameter to the script (no checks, blind faith)
OVPN_CONF="$1"
# Install the requirements if not available
# SUDO REQUIRED
sudo apt install -y openvpn network-manager-openvpn # Debian 10/*buntu 20.04 and later
# yum -y install openvpn NetworkManager-openvpn # RHEL 7/Rocky 7/Fedora ?? and later
@samveen
samveen / laravel-queue@.service
Last active Jan 12, 2022 — forked from thomasjsn/laravel-queue.service
Laravel queue worker unit template for systemd.
View laravel-queue@.service
# Laravel systemd queue worker unit template
# ----------------------------------
#
# /etc/systemd/system/laravel-queue@.service
# Config at /etc/laravel-queue-${INSTANCE}.conf
#
# To enable an instance of this service:
# - Create a conf file /etc/-laravel-queue-SOME_NAME.conf which contains:
# - LARAVEL_USER= (required)
# - LARAVEL_GROUP= (required)
View Archive::piratebox.cc:raspberry_pi:diy:armbian.txt
====== Raspbian and Armbian based manual instructions ======
The prebuilt images are ArchLinux based, but for various reasons, it can be helpful to step to Armbian or Raspbian. These distributions do support other or sometimes better the different onechip computers. For CHIP, check out the [[other:chip|ChiPirate-BOX: the chipest and cheapest Pirate-BOX ever]] manual. It contains some additional hints.
After everything is correctly setup, the following parameters are valid:
* IP Address via wifi: 192.168.77.1 (use ssh)
* SSID: PirateBox - Share Freely
* IP Range: 192.168.77.10 - 192.168.77.250
* Hostname: piratebox.lan
View raw-colemak.kbd.json
[
[
{
"a": 7
},
"Tab",
"Q",
"W",
"F",
"P",
@samveen
samveen / ctrl-backtick-to-esc.json.erb
Created May 27, 2018
Karabiner-Elements complex_modifications rule to map `ctrl+backtick` to `esc`
View ctrl-backtick-to-esc.json.erb
{
"title": "control grave accent (backtick) posts escape",
"rules": [
{
"description": "Post Escape if Left Ctrol + grave_accent_and_tilde (backtick) is pressed.",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "grave_accent_and_tilde",
@samveen
samveen / Hybridized-Palm-3245ww-in-White-with-just-a-dot.kbd.json
Last active May 12, 2018
Hybridized Palm 3245ww in White with just a dot
View Hybridized-Palm-3245ww-in-White-with-just-a-dot.kbd.json
[
{
"backcolor": "#ffffff",
"name": "Hybridized Palm 3245ww in White with just a dot",
"author": "Samveen"
},
[
{
"x": 1,
"a": 7,
@samveen
samveen / Hybridized-Palm-3245ww-in-White-with-dot.kbd.json
Last active May 12, 2018
Hybridized Palm 3245ww in White with dot
View Hybridized-Palm-3245ww-in-White-with-dot.kbd.json
[
{
"name": "Hybridized Palm 3245ww in White with dot",
"author": "Samveen"
},
[
{
"x": 1,
"a": 7,
"f": 6,
View Hybridized-Palm-3245ww.kbd.json
[
{
"backcolor": "#414141",
"name": "Hybridized Palm 3245ww",
"author": "Samveen",
"plate": true
},
[
{
"x": 1,
@samveen
samveen / Dumper.py
Last active Oct 7, 2016 — forked from karelin/Dumper.py
A Perl Dumper clone for python
View Dumper.py
# -*- coding: utf-8 -*-
"""
A perl Data.Dumper clone for Python
Author: simon@log4think.com
2011-07-08
"""
#!/bin/env python
import sys
from types import *