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 | |
not_available() { echo -- "$1 is not available"; exit 1; } | |
ensure_command_available() { which -- "$1" >/dev/null && return; not_available "$1"; } | |
ensure_gnu_tar() { tar --version | grep -F 'GNU tar' >/dev/null || not_available 'GNU tar'; } | |
ensure_command_available curl | |
ensure_command_available jq | |
ensure_gnu_tar |
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 <stdio.h> | |
#include <stdarg.h> | |
#include <stddef.h> | |
typedef int jint; | |
typedef int jclass; | |
typedef int jobject; | |
typedef int jmethodID; | |
typedef int jfieldID; | |
typedef int JNIEnv; |
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
class TigerVnc < Formula | |
desc "High-performance, platform-neutral implementation of VNC" | |
homepage "https://tigervnc.org/" | |
url "https://github.com/TigerVNC/tigervnc/archive/refs/tags/v1.13.1.tar.gz" | |
sha256 "b7c5b8ed9e4e2c2f48c7b2c9f21927db345e542243b4be88e066b2daa3d1ae25" | |
license "GPL-2.0-or-later" | |
# Tags with a 90+ patch are unstable (e.g., the 1.9.90 tag is used for the | |
# 1.10.0 beta release) and this regex should only match the stable versions. | |
livecheck do |
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
#!/usr/bin/env python3 | |
import argparse | |
import hashlib | |
import os | |
SMB_SYMHDRLEN = (4+1)+(4+1)+(32+1) | |
MAXPATHLEN = 0x400 | |
# see smbfs_create_windows_symlink_data | |
def symlink(target: str, link: str) -> None: |
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
(gdb) set $rip=0xdeadbeef | |
(gdb) c | |
Continuing. | |
Program received signal SIGSEGV, Segmentation fault. | |
0x00000000deadbeed in ?? () | |
=> 0x00000000deadbeed: | |
Cannot access memory at address 0xdeadbeed |
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
1.2.840.113635.100.6.1 Leaf Certificate | |
1.2.840.113635.100.6.1.2 iOS Development | |
1.2.840.113635.100.6.1.3 iOS App Store Application | |
1.2.840.113635.100.6.1.4 iOS Distribution | |
1.2.840.113635.100.6.1.6 iOS App Store VPN Application | |
1.2.840.113635.100.6.1.7 3rd Party Mac Developer Application | |
1.2.840.113635.100.6.1.8 3rd Party Mac Developer Installer | |
1.2.840.113635.100.6.1.9 Mac App Store Application | |
1.2.840.113635.100.6.1.10 Mac App Store Installer | |
1.2.840.113635.100.6.1.11 Mac App Store Receipt |
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 | |
: "${FORKED:=}" | |
if [ -z "${FORKED}" ]; then | |
echo >&2 'mongod for initdb is going to shutdown' | |
mongod --pidfilepath /tmp/docker-entrypoint-temp-mongod.pid --shutdown | |
echo >&2 'replica set will be initialized later' | |
FORKED=1 "${BASH_SOURCE[0]}" & | |
unset FORKED | |
mongodHackedArgs=(:) # bypass mongod --shutdown in docker-entrypoint.sh |
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
#!./tclkit | |
## prepare runtime environment | |
proc init {} { | |
## mount optional.pak (for tcltwofish) | |
set optionalPak installbuilder/paks/optional.pak | |
vfs::mk4::Mount $optionalPak $optionalPak -readonly | |
## adjust library search path | |
set ::auto_path [list $tcl::kitpath/lib/tcl$::tcl_version $tcl::kitpath/lib $tcl::kitpath/libraries $optionalPak/linux-x64 $tcl::kitpath] |
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
#!/usr/bin/env python3 | |
from msvcrt import get_osfhandle | |
from ctypes.wintypes import * | |
from ctypes import * | |
import os | |
import struct | |
if sizeof(c_ulong) == sizeof(c_void_p): | |
ULONG_PTR = c_ulong | |
elif sizeof(c_ulonglong) == sizeof(c_void_p): |
NewerOlder