This file contains hidden or 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 | |
# | |
# convert a Kryoflux stream of an Olivetti M20 disk to a raw disk image that | |
# can be used in MAME. | |
# | |
# usage: | |
# conv_m20.sh <dir> [<output-file>] | |
# where <dir> is the directory where the stream files are stored as | |
# dump.xx.y.raw files. <output-file> is dir to write the raw image to | |
# It defaults to <dir>.raw |
This file contains hidden or 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
package main | |
// go test array_test.go | |
import "fmt" | |
// accepts an array[4], passed-by-value | |
func func1(a [4]int, x int) { | |
a[1] = x | |
} |
This file contains hidden or 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 sys | |
from zope.interface import provider | |
from twisted.logger import ILogObserver, formatEvent | |
from twisted.logger import textFileLogObserver | |
from twisted.logger import LogLevelFilterPredicate | |
from twisted.logger import FilteringLogObserver | |
from twisted.logger import LogLevel | |
def DemoLogObserverFactory(): |
This file contains hidden or 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 sys | |
import pytest | |
from twisted.application import service | |
@pytest.fixture | |
def fresh_reactor(): | |
"""provides a "fresh" reactor instance for integration tests - | |
check when twisted version changes . Tested with twisted 17.9.0""" | |
try: |
This file contains hidden or 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 | |
USERNAME=<your no-ip.com username> | |
PASSWORD=<your no-ip.com password> | |
HOSTNAME=<your hostname (FQDN)> | |
curl -u $USERNAME:$PASSWORD "https://dynupdate.no-ip.com/nic/update?hostname=$HOSTNAME" |