struct nonce_seeds_header {
uint32_t blob_version;
uint8_t pad[6];
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
// | |
// ViewController.swift | |
// Journal-Calendar-Demo | |
// | |
// Created by Seb Vidal on 30/04/2024. | |
// | |
import UIKit | |
class ViewController: UIViewController { |
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
struct libshortcutsign_header_info { | |
char *header; | |
int keyCount; | |
uint32_t fieldKeys[30]; | |
uint32_t fieldKeyPositions[30]; | |
uint32_t currentPos; | |
}; | |
uint32_t get_aa_header_field_key(struct libshortcutsign_header_info info, uint32_t i) { | |
if (i >= info.keyCount) { |
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
{ | |
description = "Minimal NixOS installation media"; | |
inputs.nixos.url = "nixpkgs/nixos-23.11"; | |
outputs = { self, nixos }: { | |
nixosConfigurations = { | |
exampleIso = nixos.lib.nixosSystem { | |
system = "x86_64-linux"; | |
modules = [ | |
"${nixos}/nixos/modules/installer/cd-dvd/installation-cd-graphical-plasma5.nix" | |
({ |
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
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks. | |
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/) | |
(() => { | |
const SHOW_SIDES = false; // color sides of DOM nodes? | |
const COLOR_SURFACE = true; // color tops of DOM nodes? | |
const COLOR_RANDOM = false; // randomise color? | |
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com) | |
const MAX_ROTATION = 180; // set to 360 to rotate all the way round | |
const THICKNESS = 20; // thickness of layers | |
const DISTANCE = 10000; // ¯\\_(ツ)_/¯ |
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
% openssl pkcs7 -print_certs -text -in embedded.provisionprofile -inform der | |
Certificate: | |
Data: | |
Version: 3 (0x2) | |
Serial Number: 134752589830791184 (0x1debcc4396da010) | |
Signature Algorithm: sha1WithRSAEncryption | |
Issuer: C=US, O=Apple Inc., OU=Apple Certification Authority, CN=Apple Root CA | |
Validity | |
Not Before: Feb 7 21:48:47 2013 GMT | |
Not After : Feb 7 21:48:47 2023 GMT |
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/sh | |
if [ ! -z "$*" ]; then | |
echo "this is ~/bin/df, use /bin/df" | |
exit 1 | |
fi | |
protect=`mount | grep -v "read-only" | grep "protect" | cut -f 3 -w` | |
nosuid=`mount | grep -v "read-only" | grep "nosuid" | cut -f 3 -w` |
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 Foundation | |
struct psem_fdinfo { | |
struct proc_fileinfo { | |
var fi_openflags: UInt32 | |
var fi_status: UInt32 | |
var fi_offset: Int64 | |
var fi_type: Int32 | |
var fi_guardflags: UInt32 | |
} |
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
# Clang compiler is recommended. It does much better job at understanding and optimizing SIMD code. | |
all: | |
clang brute-inc.c -o brute-inc -O3 -Wall -lpthread -maes -march=native -msse2 -msse -msse4.1 | |
clean: | |
rm brute-inc |
NewerOlder