via Sangria Craft hat sku list https://pastebin.com/raw/qTc9Xd9Y
View .env.json
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
{ | |
"key": "ABC123" | |
} |
View BackpackSocketManager.ts
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 ReconnectingWebSocket from 'reconnecting-websocket'; | |
import WS from 'ws'; | |
import * as Events from 'reconnecting-websocket/events'; | |
export default class BackpackSocketManager { | |
private ws: ReconnectingWebSocket; | |
constructor() { | |
this.ws = new ReconnectingWebSocket('wss://ws.backpack.tf/events', [], { | |
WebSocket: WS, |
View https.ts
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 https from "https"; | |
export async function httpsPost<T>(params: { hostname: string, path: string, headers: Record<string, any>, body?: string }): Promise<{ status: number, data: T | string }> { | |
let {path, hostname, body, headers} = params; | |
let options = { | |
hostname, | |
port: 443, | |
path, | |
method: 'POST', | |
headers |
View index.d.ts
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
declare module 'pushbullet' { | |
import { EventEmitter } from 'events'; | |
import { Response } from 'node-fetch'; | |
interface MakeRequestOptions<T> { | |
qs?: Record<string, string> | |
json?: T | |
} | |
export interface MeResponse { |
View get.ts
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
const data: string = await new Promise((resolve, reject) => { | |
https.get(targetUrl, (res) => { | |
res.setEncoding('utf8'); | |
let rawData = ''; | |
res.on('data', (chunk) => { | |
rawData += chunk; | |
}); | |
res.on('end', () => { | |
try { | |
resolve(rawData); |
View device-farm-action.ts
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 codepipeline = require('@aws-cdk/aws-codepipeline'); | |
import iam = require('@aws-cdk/aws-iam'); | |
import cdk = require('@aws-cdk/core'); | |
import { ActionCategory } from '@aws-cdk/aws-codepipeline'; | |
import { Action } from '@aws-cdk/aws-codepipeline-actions'; | |
/** | |
* The OS and type of application you are testing. | |
*/ | |
export enum DeviceFarmAppType { |
View raw_stack.py
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 yaml | |
from aws_cdk import core | |
class RawStack(core.Stack): | |
def __init__(self, scope: core.Construct, name: str, template_path: str, wrapped_parameters=None, | |
**kwargs) -> None: | |
"""import a stack off a path and munge in ssm variables if desired | |
:param template_path: path to raw stack being imported | |
:param wrapped_parameters: map of Parameter keys and default values |
View nuke.sh
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
for p in $(aws iam list-policies --query 'Policies[?starts_with(PolicyName, `start-pipeline`) == `true`].Arn' --output text); do | |
for v in $(aws iam list-policy-versions --policy-arn $p --query 'Versions[?IsDefaultVersion == `false`].VersionId' --output text); do | |
aws iam delete-policy-version --policy-arn $p --version-id $v | |
done | |
aws iam delete-policy --policy-arn $p | |
done |
View query_timestamp.sql
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
-- Setup an AWS Athena Application Load Balancer table via | |
-- http://docs.aws.amazon.com/athena/latest/ug/application-load-balancer-logs.html | |
-- Use the following to query between timestamps. | |
SELECT * FROM "sampledb"."alb_logs" | |
where date_parse(time, '%Y-%m-%dT%H:%i:%s.%fZ') | |
between TIMESTAMP'2017-12-20 03:00:00' and TIMESTAMP'2017-12-20 05:00:00' | |
limit 10; |
NewerOlder