Skip to content

Instantly share code, notes, and snippets.

@ParityError
ParityError / pecl_test.php
Created January 24, 2019 05:29
Testing fsockopen with pecl ssl
$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 January 21, 2019 20:58
TELNET client class
#!/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 March 12, 2018 21:11
iOS 11.2.6 Audio Services Sounds
/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
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]
]