#Mac OS X
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
- (NSMutableArray *) processCSV: (NSString *)csvData | |
{ | |
// Character delimiter sets | |
NSCharacterSet *lineCharacterSet = [NSCharacterSet characterSetWithCharactersInString:@"\r\n"]; | |
NSCharacterSet *fieldCharacterSet = [NSCharacterSet characterSetWithCharactersInString:@","]; | |
NSCharacterSet *quotedCharacterSet = [NSCharacterSet characterSetWithCharactersInString:@"\""]; | |
// Temporary line and field holders | |
// The scanner will alloc and init this variables as needed | |
NSString *line; |
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
/ip firewall mangle | |
add action=mark-connection chain=prerouting comment=APPLETV disabled=no new-connection-mark=APPLETV passthrough=no \ | |
src-address=192.168.0.249 | |
add action=log chain=prerouting comment=APPLETV disabled=yes log-prefix=APPLETV src-mac-address=28:CF:DA:1D:13:31 | |
add action=mark-packet chain=prerouting connection-mark=APPLETV disabled=no new-packet-mark=Data-APPLETV passthrough=no | |
/queue type | |
add kind=pcq name=LAN-PCQ pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=10s pcq-classifier=dst-address pcq-dst-address-mask=24 \ | |
pcq-dst-address6-mask=128 pcq-limit=10 pcq-rate=100M pcq-src-address-mask=24 pcq-src-address6-mask=128 pcq-total-limit=1000000000 | |
add kind=pcq name=WAN-PCQ pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=10s pcq-classifier=dst-address pcq-dst-address-mask=32 \ |
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 | |
# reset.fw - Reset firewall | |
# set x to 0 - No reset | |
# set x to 1 - Reset firewall | |
# --------------------------------------------------------------------------------------------------------------- | |
# Added support for IPV6 Firewall | |
# --------------------------------------------------------------------------------------------------------------- | |
# Written by Vivek Gite <vivek@nixcraft.com> | |
# --------------------------------------------------------------------------------------------------------------- | |
# Modified by Dave Carlton <davec@polymicro.net> to use watchdog file |
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
: parsing-regexp ( x -- x ) | |
(parse-regexp) <compiled-pcre> <matcher> ; | |
SYNTAX: P! CHAR: ! parsing-regexp ; | |
Stack effect declaration is wrong | |
inferred ( -- x ) | |
declared ( parsed -- parsed ) |
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
struct st_mysql_methods; | |
typedef struct st_mysql | |
{ | |
NET net; /* Communication parameters */ | |
unsigned char *connector_fd; /* ConnectorFd for SSL */ | |
char *host,*user,*passwd,*unix_socket,*server_version,*host_info; | |
char *info, *db; | |
struct charset_info_st *charset; | |
MYSQL_FIELD *fields; |
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
[mbpr]/Sources/Factor (db4): git remote -v | |
fc https://factorcode.org/git/factor.git (fetch) | |
fc https://factorcode.org/git/factor.git (push) | |
gh https://github.com/factor/factor.git (push) | |
gh https://github.com/factor/factor.git (fetch) | |
origin git@github.com:tgunr/factor.git (push) | |
origin git@github.com:tgunr/factor.git (fetch) | |
slava https://github.com/slavapestov/factor.git (fetch) | |
slava https://github.com/slavapestov/factor.git (push) |
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
IN: alien.libraries | |
GENERIC: dlsym? ( name string/dll -- ? ) | |
M: string dlsym? dup lookup-library [ nip dll>> dlsym? ] [ no-library-named ] if* ; | |
M: dll dlsym? dlsym >boolean ; | |
IN: secure | |
MEMO: best-tls-method ( -- class ) | |
{ | |
{ [ "TLSv1_2_method" "libssl" dlsym? ] [ TLSv1.2 ] } | |
{ [ "TLSv1_1_method" "libssl" dlsym? ] [ TLSv1.1 ] } |
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
enum ShortcutIdentifier: String { | |
case Start | |
case Stop | |
case Share | |
init?(fullType: String) { | |
guard let last = fullType.components(separatedBy: ".").last else { return nil } | |
self.init(rawValue: last) | |
} | |
var type: String { |
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 IncidentList: NSObject, NSCoding { | |
var incidents: [Incident] | |
static let sharedInstance = IncidentList() | |
var stagedIncident: Incident? | |
let ArchiveURL = DocumentsDirectory.appendingPathComponent("incidents").standardizedFileURL.path | |
// private override init() { | |
// } | |
public override init() { |
OlderNewer