Skip to content

Instantly share code, notes, and snippets.

View chase2981's full-sized avatar

Chase Gibbons chase2981

View GitHub Profile
@chase2981
chase2981 / README.md
Created January 10, 2022 06:54 — forked from felixhammerl/README.md
Write TLS keys system-wide in macOS via SSLKEYLOGFILE and launchd
  1. Put tlskeylogger.plist at ~/Library/LaunchAgents/tlskeylogger.plist
  2. launchctl load ~/Library/LaunchAgents/tlskeylogger.plist, so it will load on the next restart
  3. launchctl start ~/Library/LaunchAgents/tlskeylogger.plist, so it will load the environment variable immediately
  4. Restart your browser(s)
  5. See how TLS keys are being written to ~/.tlskeyfile via tail -f ~/.tlskeyfile
@chase2981
chase2981 / _all_commands.md
Last active February 12, 2024 23:30
commands

Here are some useful commands

@chase2981
chase2981 / ssh_multikeys.md
Created December 6, 2021 06:00 — forked from jmcaldera/ssh_multikeys.md
Multiple SSH Keys macOS

Multiple SSH Keys on same client

Check if you have existing keys by opening the terminal and entering: ssh-add -l OR ls -al ~/.ssh and check for any file called (usually) id_rsa or similar

Identify the host you're using your current key for. You probably added this key to, for example your github or gitlab account. We will use this later on.

If you don't have a config file on ~/.ssh folder, you will need to create one. We'll get back to this later.

@felixhammerl
felixhammerl / README.md
Last active June 24, 2024 14:58
MitM TLS encrypted traffic in macOS using SSLKEYLOGFILE

Option 1: Via macOS environment variable:

  1. mkdir -p ~/Library/LaunchAgents
  2. Put tlskeylogger.plist at ~/Library/LaunchAgents/tlskeylogger.plist
  3. launchctl load ~/Library/LaunchAgents/tlskeylogger.plist, so it will load on the next restart
  4. launchctl start ~/Library/LaunchAgents/tlskeylogger.plist, so it will load the environment variable immediately
  5. Restart your browser(s)
  6. See how TLS keys are being written to ~/.tlskeyfile via tail -f ~/.tlskeyfile

NB: This may be hit or miss and many apps do not respect the env var.

@chase2981
chase2981 / rdBaseTaskRouterTaskAttributes.js
Last active February 9, 2021 23:16
Omnichannel Task Router Base Attributes
// task
// snake case
var taskJson = {
// this shows up in flex on the task as the primary text
"name": "chase@rentdynamics.com",
// differentiates between different task queues based on acceptable response times
"type": "short-lived",
"rd": {
// contactCenter -- we might not need this tbh -- especially if we do different flex projects or even different workspaces or workflows per contact center
"contact_center_id":1,
@chase2981
chase2981 / README.md
Last active December 7, 2020 01:39
RD Flex Style Guide Issues To Be Voted On

RD Flex Style Guide Issues To Be Voted On

Feel free to add to this as you see fit and make suggestions, I think anyone can commit to this gist if I'm not mistaken, or at very least quote it and comment on it.

This is still a work-in-progress. I plan to provide brief pros/cons foreach item in the final variation, as well as organize things a little better into common sections.

Right now I'm thinking we will just vote on these issues using a plain old google form, that way I know we will be able to reference the results within our documentation, but even our voting mechanism is up for debate at this point.

@jengel3
jengel3 / authentication-1.controller.ts
Last active April 23, 2024 19:26
NestJS - Implementing Access & Refresh Token Authentication
// app/modules/authentication/authentication.controller.ts
import { Body, Controller, Post } from '@nestjs/common'
import { RegisterRequest } from './requests'
import { User } from '../../modules/user'
import { UsersService } from '../users/users.service'
@abhijitmehta
abhijitmehta / flex_outbound_preview_Dialing.md
Last active February 27, 2021 08:44
Script for Sequence diagram to build preview dialing on Flex using Flex Action startOutboundCall and Task Creation API

Preview Dialing on Flex using Flex Action startOutboundCall and Task Creation API

Preview Dialing

Diagram Script

@chase2981
chase2981 / SupervisorTaskCanvasComponent.tsx
Created April 5, 2020 05:27
Twilio Flex MessagingCanvas Examples
import * as React from "react";
import {
Manager, Actions, MessagingCanvas, MessagingCanvasContext, DynamicComponent, ContextProvider, MessageList, StateHelper, TaskHelper, ITask,
Supervisor,
TaskChannelDefinition,
TaskContextProps,
Theme
} from '@twilio/flex-ui';
import CoreApiService from '../Shared/CoreApiService';
import { Channel } from 'twilio-chat/lib/channel';
fetch("https://botsentinel.com/blocklist", {
credentials: "include",
headers: {
accept:
"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
"accept-language": "en-AU,en;q=0.9,en-US;q=0.8",
"cache-control": "no-cache",
"content-type": "application/x-www-form-urlencoded",
pragma: "no-cache",
"sec-fetch-mode": "navigate",