Skip to content

Instantly share code, notes, and snippets.

@supun19
supun19 / nginx-socketio-ssl-reverse-proxy.conf
Created February 6, 2019 07:54 — forked from gmanau/nginx-socketio-ssl-reverse-proxy.conf
How to setup nginx as nodejs/socket.io reverse proxy over SSL
upstream upstream-apache2 {
server 127.0.0.1:8080;
}
upstream upstream-nodejs {
server 127.0.0.1:3000;
}
server {
listen 80;
server {
if ($host = barcode.meetrix.io) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
server_name barcode.meetrix.io;
return 301 https://$host$request_uri;
@supun19
supun19 / CheetSheet
Last active November 12, 2018 13:06
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
mac os commands:
printenv
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Docker Commands:
===============================
login container
sudo docker exec -i -t 7fbb78213417 /bin/bash
===============================
stop all container
@supun19
supun19 / npm-using-https-for-git.sh
Created October 1, 2018 08:27 — forked from taoyuan/npm-using-https-for-git.sh
Force git to use https:// instead of git://
git config --global url."https://github.com/".insteadOf git@github.com:
git config --global url."https://".insteadOf git://
config/index.js change default url
make alise nginx
# Backward compatibility
location ~ /external_api.* {
root /opt/jitsi-meet/libs;
}
copy /opt/jitsi-meet/libs/extenal_api.min.js /opt/jitsi-meet/libs/extenal_api.js
fix dpkg-checkbuilddeps: error: Unmet build dependencies: debhelper (>= 9)
https://github.com/sipwise/rtpengine/issues/421
======================
build xcode project
cd IXCSoftswitch
mkdir build
cd build
cmake -G Xcode ..
======================
mvn -U package -DskipTests -Dassembly.skipAssembly=false
./jicofo.sh --host=localhost --domain=czmeet.meetrix.io --secret=@4wt1rUl --user_domain=auth.czmeet.meetrix.io --user_name=focus --user_password=1234
@supun19
supun19 / screenrecording.txt
Last active August 1, 2018 08:36 — forked from keepitsimple/gist:a0aa7a2e10ab930d741d
Ubuntu 14.04 install Xvfb
# Dependencies to make "headless" chrome/selenium work:
sudo apt-get -y install xvfb gtk2-engines-pixbuf
sudo apt-get -y install xfonts-cyrillic xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable
echo "Starting X virtual framebuffer (Xvfb) in background..."
Xvfb -ac :99 -screen 0 1280x1024x16 &
export DISPLAY=:99
# serverless.yml
service:
name: beekeeper-serverless
frameworkVersion: 1.23.0
plugins:
- serverless-plugin-split-stacks
- serverless-plugin-custom-roles