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
Homebrew build logs for pypy3 on macOS 11.2 | |
Build date: 2021-02-11 16:42:11 |
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
gg_replace() { | |
if [[ "$#" -lt "2" ]]; then | |
echo " | |
Usage: | |
$0 term replacement file_mask | |
Example: | |
$0 cappuchino cappuccino '*.html' | |
"; | |
else |
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
# When you get an error like | |
# ('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed') | |
# when using twisted, autobahn, etc... | |
# on macos | |
# than you may have to install trust roots | |
# Do this by using brew: | |
# (install brew) | |
brew update | |
brew install [email protected] # this must match the current version that the macOS cryptography wheel is built against |
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 Mechanism(object): | |
m = MethodicalMachine() | |
def __init__(self): | |
self.value = 1 | |
@m.state(serialized="first-state") | |
def first(self): | |
"First state." | |
@m.state(serialized="second-state") | |
def second(self): | |
"Second state." |
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 Mechanism(object): | |
m = MethodicalMachine() | |
def __init__(self): | |
self.value = 1 | |
@m.state(serialized="first-state") | |
def first(self): | |
"First state." | |
@m.state(serialized="second-state") | |
def second(self): | |
"Second state." |
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
$ touch 'a b' c d | |
$ for c in `echo *`; do echo "$c"; done | |
a | |
b | |
c | |
d | |
$ for c in `echo "*"`; do echo "$c"; done | |
a b | |
c | |
d |
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
# This is a stripped-down example based on Selecta's TTY handling. We store the | |
# TTY state in `tty_state`, then go into an infinite loop. When the loop is | |
# terminated by a ^C, we try to restore the TTY state. It's important that this | |
# work, but it doesn't in some subtle situations, and I don't know why. | |
# | |
# Save this file as test.rb and run it via this command, where `stty` should | |
# successfully restore the TTY state: | |
# bash -c 'echo | ruby test.rb' | |
# | |
# Next, run it via this command, where `stty` should fail to restore the TTY |
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
glyph@elfa:~/Projects/Mimic VE:Mimic BR:pr/103 | |
★ python setup.py py2app | |
↩ Tue Mar 3 17:48:02 PST 2015 | |
running py2app | |
creating /Users/glyph/Projects/Mimic/build | |
creating /Users/glyph/Projects/Mimic/build/bdist.macosx-10.10-intel | |
creating /Users/glyph/Projects/Mimic/build/bdist.macosx-10.10-intel/python2.7-semi_standalone | |
creating /Users/glyph/Projects/Mimic/build/bdist.macosx-10.10-intel/python2.7-semi_standalone/app | |
creating /Users/glyph/Projects/Mimic/build/bdist.macosx-10.10-intel/python2.7-semi_standalone/app/collect | |
creating /Users/glyph/Projects/Mimic/build/bdist.macosx-10.10-intel/python2.7-semi_standalone/app/temp |
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
glyph@elfa:~/Projects/Mantissa VE:Mantissa BR:master | |
★ trial xmantissa.test.test_people.PeopleUtilitiesTestCase.test_makeThumbnail116 ↩ Tue Mar 3 17:12:20 PST 2015 | |
xmantissa.test.test_people | |
PeopleUtilitiesTestCase | |
test_makeThumbnail116 ... ('extremas', ((0, 119),)) | |
('extremas', ((0, 119),)) | |
('extremas', ((0, 119),)) | |
('extremas', ((0, 119),)) | |
('extremas', ((0, 119),)) | |
('extremas', ((0, 119),)) |
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
... | |
{ | |
"endpoints": [ | |
{ | |
"publicURL": "http://localhost:8900/mimicking/MyAPIMock-523f81/ORD/v3/248246335143936", | |
"region": "ORD", | |
"tenantId": "248246335143936" | |
} | |
], | |
"name": "TestResource", |
NewerOlder