Skip to content

Instantly share code, notes, and snippets.

View ssskip's full-sized avatar
I may be slow to respond.


I may be slow to respond.
View GitHub Profile
ssskip /
Created February 19, 2022 04:25
what is great test

Great Tests

  • Test on thing
  • If that things break,only one test fails
  • Repeatable
  • Don't rely on run order
  • Don't require external resources
ssskip /
Last active February 16, 2022 08:31
Computer Program Efficiency Optimizing Best Practice

Computer Program Efficiency Optimizing Best Practice.

Why Do?

  • High impact, High value if fixed.
  • Valid, Required functionality
  • We can set reasonable efficiency
  • Nothing more important
ssskip / getDisplayMedia.js
Created December 1, 2020 13:44
getDisplayMedia (prefers detail over fluent video.)
* @param {Object} [constraints={ video: true }] constraints - MediaStreamConstraints
* @returns {Promise<MediaStream>}
export function getDisplayMedia(constraints = defaultDisplayMediaConstraints) {
return global.navigator.mediaDevices
.then(stream => {
// support for Chrome's content hint stuff which prefers detail over fluent video.
ssskip / coturn.service
Last active October 27, 2020 12:43
coturn, systemd with reload & CAP_NET_BIND_SERVICE
Description=coTURN STUN/TURN Server
Documentation=man:coturn(1) man:turnadmin(1) man:turnserver(1)
ssskip /
Created May 5, 2019 14:19
build WebRTC

iOS bitcode not support yet

H264 Hardware Acceleration

Enabled by default for the latest builds of WebRTC

iOS Required

  • libresolv.tbd
  • AVFoundation.framework
  • CoreMedia.framework
ssskip / .gitlab-ci.yml
Last active February 26, 2024 22:58
gitlab-ci AWS ECS build & deploy
image: docker:latest
REGION: us-west-2
ssskip /
Created December 4, 2018 06:20
open file limit ECS

Configuring Linux usage limits with Docker and AWS ECS

  • ECS TASK Definitions.
"containerDefinitions": [
      "ulimits": [
ssskip / P12toPEM.txt
Created May 2, 2018 08:13 — forked from shahdhiren/P12toPEM.txt
Convert P12 file for Push Notification to PEM format
Development Phase:
Step 1: Create Certificate .pem from Certificate .p12
Command: openssl pkcs12 -clcerts -nokeys -out apns-dev-cert.pem -in apns-dev-cert.p12
Step 2: Create Key .pem from Key .p12
Command : openssl pkcs12 -nocerts -out apns-dev-key.pem -in apns-dev-key.p12
Step 3: Optional (If you want to remove pass phrase asked in second step)
Command : openssl rsa -in apns-dev-key.pem -out apns-dev-key-noenc.pem
ssskip / opendkim.conf
Created January 2, 2018 10:00
# This is a basic configuration that can easily be adapted to suit a standard
# installation. For more advanced options, see opendkim.conf(5) and/or
# /usr/share/doc/opendkim/examples/opendkim.conf.sample.
# Log to syslog
Syslog yes
# Required to use local socket with MTAs that access the socket as a non-
# privileged user (e.g. Postfix)
UMask 002
ssskip /
Last active November 8, 2017 14:58
Replicate External 5.6 Mysql Slave to AWS RDS (with Replicate Filters)
  1. Update nginx conf (/etc/nginx/nginx.conf)
  http {
    real_ip_header X-Forwarded-For; # Get Client IP From X-Forwarded_For
    set_real_ip_from;  # AWS ELB ip ranges