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
from mitmproxy import http | |
def request(flow: http.HTTPFlow) -> None: | |
if "geforce" in flow.request.pretty_host: | |
flow.request.headers["User-Agent"] = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36" | |
flow.request.headers["X-Resolution"] = "2560x1440" | |
flow.request.headers["X-Refresh-Rate"] = "120" |
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
// React Component | |
function ProfileBookmarksScreen(props): JSX.Element { | |
const { componentId, relayPagination } = props | |
const { data: user, loadNext, hasNext, refetch } = relayPagination | |
return ( | |
<> | |
<div> | |
{(user?.bookmarkedPostsWithCursor?.edges ?? []).map((edge) => { |
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
Show hidden characters
{ | |
"root": true, | |
"parser": "@typescript-eslint/parser", | |
"parserOptions": { | |
"project": "./tsconfig.json" | |
}, | |
"plugins": ["@typescript-eslint", "prettier"], | |
"extends": [ | |
"eslint:recommended", | |
"plugin:@typescript-eslint/eslint-recommended", |
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 | |
# This script is designed to replace the existing cdk.out asset directory used by SAM | |
# otherwise a new asset directory will be created that can't be seen by SAM until SAM is re-run. | |
echo "Creating cdk output directory" | |
mkdir -p tmp/cdk.out | |
ASSET_DIRS=($(ls -d1 tmp/cdk.out/asset*)) | |
DIR_COUNT=${#ASSET_DIRS[*]} |
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
// GraphQL Utils | |
// Module Vars | |
import { | |
graphql, | |
GraphQLObjectType, | |
GraphQLInputObjectType, | |
GraphQLID | |
} from 'graphql'; | |
import { isInputType } from 'graphql/type/definition'; |
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
processQueueItem = function(value, callback) { | |
var queueObj = value; | |
var adjustment = queueObj.adjustment; | |
var userUID = queueObj.userUID; | |
var obj = queueObj.obj; | |
var objs = queueObj.objs; | |
//We can store multilpe objects within a single queue'd item so that they get processed together. | |
if (objs) { |
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
Why I love contracting. | |
**Flexibility** | |
While I definitely taylor my hours to the clients I'm working with, the flexibility of contracts allow me to change the hours I work on a day to day basis. Maybe I'll sleep in on Monday and make up for the hours on the evening, or do some extra hours at the weekend to get a head start on the week. Some people need structure, maybe I'm just lucky that I don't and have a great drive in me to work. | |
**Control** | |
If I want a new Mac for work...I'll not only buy one, I'll buy the fastest one the software I run can make use of. I want some software to make my work easier, or at least feel easier - I'll purchase it. If I need temporary servers to make tasks easier, I get them. If I want to watch a film or write a blog post during the day, I will. | |
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
Why I love contracting. | |
**Flexibility** | |
While I definitely taylor my hours to the clients I'm working with, the flexibility of contracts allow me to change the hours I work on a day to day basis. Maybe I'll sleep in on Monday and make up for the hours on the evening, or do some extra hours at the weekend to get a head start on the week. Some people need structure, maybe I'm just lucky that I don't and have a great drive in me to work. | |
**Control** | |
If I want a new Mac for work...I'll not only buy one, I'll buy the fastest one the software I run can make use of. I want some software to make my work easier, or at least feel easier - I'll purchase it. If I need temporary servers to make tasks easier, I get them. If I want to watch a film or write a blog post during the day, I will. | |
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
//Return type 'id' must match previous return type 'void *' when block literal has unspecified explicit return type | |
typedef id (^AEURLResponseProcessor)(NSURLResponse *, id, NSError **); | |
+ (AEURLResponseProcessor)statusCode:(NSIndexSet *)acceptableCodes { | |
return [[^(NSURLResponse *response, id data, NSError **error){ | |
if (![response isKindOfClass:[NSHTTPURLResponse class]]) { | |
if (error) { | |
*error = [AEExpect error:AEExpectResponseNotHTTPError |
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
Incident Identifier: 670E5206-9295-4BC1-891C-E767AF9A7FAD | |
CrashReporter Key: 8032dfc4784a8d5e1721794ced3590db04cdef21 | |
Hardware Model: iPhone4,1 | |
Process: PusherApp [2188] | |
Path: /var/mobile/Applications/2F3C771A-8428-49BC-BFF1-9BE8A5BE2CB3/Football Feeder.app/Football Feeder | |
Identifier: PusherApp | |
Version: ??? (???) | |
Code Type: ARM (Native) | |
Parent Process: launchd [1] |
NewerOlder