Skip to content

Instantly share code, notes, and snippets.

View PXNX's full-sized avatar
:shipit:
Detective in a crime where I'm the suspect and victim.

nyx69 PXNX

:shipit:
Detective in a crime where I'm the suspect and victim.
  • somewhere in front of a monitor
  • 18:06 (UTC +02:00)
View GitHub Profile
use std::convert::Infallible;
use axum::{
async_trait,
extract::FromRequestParts,
http::{request::Parts, Request, header::CONTENT_LENGTH},
middleware::{from_fn, Next},
response::{Html, IntoResponse, IntoResponseParts, Response},
routing::get,
Router, body::{Full, self},
@Eng-Fouad
Eng-Fouad / SampleMingw.kt
Created July 9, 2019 22:38
Kotlin Native Win32 GUI Sample
package sample
import kotlinx.cinterop.*
import platform.windows.*
@ExperimentalUnsignedTypes
fun WndProc(hwnd: HWND?, msg: UINT, wParam: WPARAM, lParam: LPARAM) : LRESULT
{
// This switch block differentiates between the message type that could have been received. If you want to
// handle a specific type of message in your application, just define it in this block.
@emxsys
emxsys / raspberry_pi_script_as_service.md
Last active April 6, 2024 13:46
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

@rrcfesc
rrcfesc / brutus.py
Created April 17, 2018 23:48 — forked from Phillip-C/brutus.py
Python FTP Brute-Force and Dictionary Attack Tool
#!/usr/bin/python
################################################################################
# tool: Brutus - FTP Brute-Force/Dictionary Attack Tool
# version: 0.3
# email: mrh@bushisecurity.com
# www: bushisecurity.com/brutus/
################################################################################
# MIT License