Skip to content

Instantly share code, notes, and snippets.

@ParityError
ParityError / mizf.sh
Created Jun 29, 2019
mizf (Original)
View mizf.sh
#!/bin/sh
#
# Mizar Verifier, example shell command
#
accommodate()
{
makeenv $1
if [ "$?" = "0" ]
then
@ParityError
ParityError / clang.analyzer.checkers-9.0.md
Created Mar 1, 2019
LLVM Clang Analyzer Checker Additions 9.0
View clang.analyzer.checkers-9.0.md

The following analyzer checkers have been added to the latest svn version of llvm vs macOS 10.14 llvm:

alpha.cplusplus.EnumCastOutOfRange
Check integer to enumeration casts for out of range values

alpha.cplusplus.InvalidatedIterator
Check for use of invalidated iterators

alpha.cplusplus.IteratorModeling
Models iterators of C++ containers

@ParityError
ParityError / get_cert_locations.php
Created Jan 24, 2019
Default macOS ssl cert locations
View get_cert_locations.php
$ php -r "print_r(openssl_get_cert_locations());"
Array
(
[default_cert_file] => /private/etc/ssl/cert.pem
[default_cert_file_env] => SSL_CERT_FILE
[default_cert_dir] => /private/etc/ssl/certs
[default_cert_dir_env] => SSL_CERT_DIR
[default_private_dir] => /private/etc/ssl/private
[default_default_cert_area] => /private/etc/ssl
[ini_cafile] =>
@ParityError
ParityError / pecl_test.php
Created Jan 24, 2019
Testing fsockopen with pecl ssl
View pecl_test.php
$fp = fsockopen("ssl://pecl.php.net", 443, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br />\n";
} else {
$out = "GET / HTTP/1.1\r\n";
$out .= "Host: www.example.com\r\n";
$out .= "Connection: Close\r\n\r\n";
fwrite($fp, $out);
while (!feof($fp)) {
echo fgets($fp, 128);
@ParityError
ParityError / telnetlib.py
Created Jan 21, 2019
TELNET client class
View telnetlib.py
#!/usr/bin/python
"""TELNET client class.
Updated for Python 3.x, Parity Error 2019
Based on RFC 854: TELNET Protocol Specification, by J. Postel and
J. Reynolds
Example:
@ParityError
ParityError / UISounds.txt
Created Mar 12, 2018
iOS 11.2.6 Audio Services Sounds
View UISounds.txt
/System/Library/Audio/UISounds/Modern/camera_shutter_burst.caf
/System/Library/Audio/UISounds/Modern/camera_shutter_burst_begin.caf
/System/Library/Audio/UISounds/Modern/camera_shutter_burst_end.caf
/System/Library/Audio/UISounds/New/Anticipate.caf
/System/Library/Audio/UISounds/New/Bloom.caf
/System/Library/Audio/UISounds/New/Calypso.caf
/System/Library/Audio/UISounds/New/Choo_Choo.caf
/System/Library/Audio/UISounds/New/Descent.caf
/System/Library/Audio/UISounds/New/Fanfare.caf
/System/Library/Audio/UISounds/New/Ladder.caf
View dashboard.yml
dashboard "Computers":
- h1 text: Computers
- h2 text: By OS type
- 3 columns:
- rows:
- h3 text: macOS
- pie chart: {
"columns": [
["Quality", 15], ["Lifecycle", 15], ["Malware", 20], ["Stability", 3]
]
You can’t perform that action at this time.