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
/* | |
* Based on keytable.c by Mauro Carvalho Chehab | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, version 2 of the License. | |
* | |
* This program is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
This file has been truncated, but you can view the full 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
a | |
aah | |
aahed | |
aahing | |
aahs | |
aardvark | |
aardvarks | |
aardwolf | |
ab | |
abaci |
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 | |
# requires jq | |
# arg 1: iCloud web album URL | |
# arg 2: folder to download into (optional) | |
function curl_post_json { | |
curl -sH "Content-Type: application/json" -X POST -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
%option noyywrap | |
%x C_COMMENT | |
%% | |
"/*" { BEGIN(C_COMMENT); } | |
<C_COMMENT>"*/" { BEGIN(INITIAL); } | |
<C_COMMENT>. { } | |
<C_COMMENT>\n { } |
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
(* | |
To use: | |
1- Launch Photos | |
2- Select photos for which you want to set the GPS location based on a .gpx file | |
3- Adjust date/time of photos (if necessary) | |
4- Launch script, select GPX file, wait | |
*) |
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
''' | |
Solution to the realism challenge from CSAW'17 Quals. | |
https://github.com/isislab/CSAW-CTF-2017-Quals/tree/master/rev/realism | |
''' | |
from z3 import * | |
s = Solver() | |
# This is a simplification of the array of bytes found at 0x7D90: | |
# 0xff => 1, 0x00 => 0; where 1 means "include this value in the psadbw sum" |
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
fn digits_to_vec(digits: String) -> Vec<u32> { | |
let mut result = Vec::new(); | |
for c in digits.chars() { | |
match c.to_digit(10) { | |
Some(v) => result.push(v), | |
None => {} | |
} | |
} | |
return result; | |
} |
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
fn digits_to_vec(digits: String) -> Vec<u32> { | |
let mut result = Vec::new(); | |
for c in digits.chars() { | |
match c.to_digit(10) { | |
Some(v) => result.push(v), | |
None => {} | |
} | |
} | |
return result; | |
} |
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
precedencegroup ExponentPrecedence { | |
associativity: right | |
higherThan: MultiplicationPrecedence | |
} | |
infix operator **: ExponentPrecedence | |
fileprivate enum Expr: CustomStringConvertible { | |
case Int(n: Int) | |
indirect case Var(x: 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
import networkx as nx | |
class DominatorTreeNode(object): | |
__slots__ = ("value", "depth", "parent", "children") | |
def __init__(self, value): | |
self.value = value | |
self.depth = None | |
self.parent = None |
OlderNewer