Skip to content

Instantly share code, notes, and snippets.

@Xbeninni
Xbeninni / worker.js
Created March 17, 2023 03:11 — forked from bcnzer/worker.js
Cloudflare Worker that uses Workers KV to get Authorization data. All authentication and authorization is done on the edge
addEventListener('fetch', event => {
event.respondWith(handleRequest(event))
})
/**
* Entry point of the worker
*/
async function handleRequest(event) {
try {
// Get the JWT
@Xbeninni
Xbeninni / imap-search
Created November 1, 2021 08:27 — forked from martinrusev/imap-search
IMAP Search criteria
@Xbeninni
Xbeninni / raspberry_pi_script_as_service.md
Created August 23, 2021 03:12 — forked from emxsys/raspberry_pi_script_as_service.md
How to run a python script as a service in Raspberry Pi - Raspbian Jessie

How to Run a Script as a Service in Raspberry Pi - Raspbian Jessie

By: Diego Acuña

Original Article: http://www.diegoacuna.me/how-to-run-a-script-as-a-service-in-raspberry-pi-raspbian-jessie/

A pretty common task when using this device, is to run some script (for example a python script) as a service in the operating system so it can start on boot, stop and restart using systemctl and more. In this post I'm going to explain how to set a little script as a service using Raspbian Jessie in a Raspberry Pi.

Example Python Script

@Xbeninni
Xbeninni / raycast.py
Created August 3, 2019 22:02 — forked from SpaceVoyager/raycast.py
raycast.py
# RayCast
# Simple raycasting based renderer
# Touch the left part to rotate, and touch the right part to move forward
# Coded in a few hours during my holidays, July 2014, straight from my iPhone - thanks Pythonista !!!
# Feel free to upgrade !
# Enjoy !
# Emmanuel ICART
# eicart@momorprods.com
from scene import *