Skip to content

Instantly share code, notes, and snippets.

View chadfurman's full-sized avatar

Chad Furman chadfurman

View GitHub Profile
@chadfurman
chadfurman / test.sh
Created October 30, 2018 04:14
test.sh
#!/bin/bash
for WEBROOT in $(echo "webroot1 webroot2 webroot3")
do
echo $WEBROOT
HOSTNAME=`echo $WEBROOT | awk -F\/ '{print $NF}'`
echo $HOSTNAME
#touch /etc/letsencrypt/renewal/.$HOSTNAME
#ADDITIONALHOSTNAMELIST=`ls /etc/letsencrypt/renewal/.$HOSTNAME`
@chadfurman
chadfurman / cmake_from_gn
Created October 15, 2018 01:27
cmake_from_gn?
[Lotus@lotus examples]$ gn desc out/examples //examples:peerconnection_client
Target //examples:peerconnection_client
Type: executable
Toolchain: //build/toolchain/linux:clang_x64
visibility
//*
testonly
true
[Lotus@lotus ctf]$ cat /proc/asound/
card0/ cards devices hwdep modules oss/ PCH/ pcm seq/ timers version
[Lotus@lotus ctf]$ cat /proc/asound/modules
0 snd_hda_intel
[Lotus@lotus ctf]$ cat /proc/asound/pcm
00-00: ALC295 Analog : ALC295 Analog : playback 1 : capture 1
00-03: HDMI 0 : HDMI 0 : playback 1
00-07: HDMI 1 : HDMI 1 : playback 1
00-08: HDMI 2 : HDMI 2 : playback 1
00-09: HDMI 3 : HDMI 3 : playback 1
Production: 2.4.1
Staging : 2.7.8
Dev: 2.7.8
Changelog:
2.7.8 Merging in hotfixes from staging
2.7.7 Mirror removed from liveroom (preroom only)
For reasons of draw tool on local stream, streams must be same on both
ends
  • Tim Bug fixes across the application ranging from JS warnings to UI / UX improvements
  • Sam Draw tool fixes and optimizations, then OBS exploration
  • Chad Usage report enhancement, general security cleanup
  • Fred Draw tool UI fixes, 2FA UI
  • Lexi Integration tests, invite system overhaul
  • Victor SSR integration, tests, general bug fixes, and 2FA back-end integration

Tickets to estimate: https://docs.google.com/spreadsheets/d/1t-h796nNieJoWyhF7yRo1u9KVzhS4bjuRcrgW21V4is/edit#gid=0

@chadfurman
chadfurman / email.md
Created June 25, 2018 00:15
Retro email example

What Went Well?

  • Draw Tool
    • The work we've done on the Draw Drawer is pretty good I think, although we have few bugs in it
    • Draw tool so far seems to be in a great path. Still needs testing on live environment and further improvements like recording but we had great progress.
    • The draw tool MVP is amazing!
    • Draw tools MVP is a great feature
    • Draw MVP is exciting
    • Drawing - amazing work!
  • Team / Process
  • Project seems to be in a great spot overall
@chadfurman
chadfurman / email.md
Last active June 25, 2018 00:13
Example Daily Update email

Accomplished

Tim

  • Did some work for #3521 - janus.js:1136 WebSocket is already in CLOSING or CLOSED state
  • Switched over to #3573 - Edge detection issue
  • Planning

Victor

  • Sprint tasks estimation
  • #3594 Merge SSR into the boilerplate branch
#!/bin/bash
## Get envs from environment and echo them
echo "Updating janus config files using variables from ENVIRONMENT"
## rewrite needed configurations
sed -i "s/wss_port = 8989;/wss_port = ${JANUS_SIGNAL_PORT};/" /opt/janus/etc/janus/janus.transport.websockets.cfg
sed -i "s/admin_secure_port = 7889/admin_secure_port = ${JANUS_ADMIN_PORT}/" /opt/janus/etc/janus/janus.transport.http.cfg
sed -i "s/rtp_port_range = 20000-40000/rtp_port_range = ${JANUS_RTP_RANGE}/" /opt/janus/etc/janus/janus.cfg
sed -i "s/api_secret = vcast_j4nus/api_secret = ${JANUS_SIGNAL_PASSWORD}/" /opt/janus/etc/janus/janus.cfg
@chadfurman
chadfurman / graphqlp1.md
Last active January 24, 2018 10:40
Full-Stack GraphQL, Simple and Quick Part 1

Full-Stack GraphQL, Simple and Quick

with Relay, Postgres, and Graphile

Part 1: Choosing GraphQL

Do you recognize the inefficiencies of having to either make a custom endpoint for every page or make multiple requests for different resources on page load? Do you have a small team with big requirements looking at a greenfield project?

GraphQL, a transport-layer query language by Facebook, is revolutionizing web application development. We can now:

  • Build a fully-typed, self-documenting API via database introspection
  • Optionally extend that schema with Node (i.e. emails, external APIs, etc)
@chadfurman
chadfurman / smb_enum.sh
Last active July 17, 2017 02:41
smb_enum.sh
#! /bin/bash
glob_pids=""
hosts=""
all=
outdir="smb.out"
trap "echo Exited!; exit 1;" SIGINT SIGTERM
echo "Started SMB enumeration"