Skip to content

Instantly share code, notes, and snippets.

View rielcfb's full-sized avatar
🎯
Focusing

Riel CFB rielcfb

🎯
Focusing
View GitHub Profile
@rielcfb
rielcfb / webar-audience-client.js
Created July 12, 2022 07:53 — forked from digitallysavvy/webar-audience-client.js
An implementation of the Agora RTC and RTM Web SDKs for use within the Agora WebXR tutorial.
// create client
var client = AgoraRTC.createClient({mode: 'live', codec: 'vp8'}); // vp8 to work across mobile devices
const agoraAppId = ''; // insert Agora AppID here
const channelName = 'WebAR';
var streamCount = 0;
// set log level:
// -- .DEBUG for dev
@rielcfb
rielcfb / README-setup-tunnel-as-systemd-service.md
Created August 30, 2022 13:37 — forked from drmalex07/README-setup-tunnel-as-systemd-service.md
Setup a secure (SSH) tunnel as a systemd service. #systemd #ssh #ssh-tunnel #ssh-forward

README

Create a template service file at /etc/systemd/system/secure-tunnel@.service. The template parameter will correspond to the name of target host:

[Unit]
Description=Setup a secure tunnel to %I
After=network.target
@rielcfb
rielcfb / Httpd-Apache-2.4.6-VHost-Config-Reverse-Proxy.conf
Last active September 22, 2022 11:05
Httpd Apache/2.4.6 VHost Config Reverse Proxy Node.js App RHEL CENTOS 7
# Httpd Apache/2.4.6 VHost Config Reverse Proxy Node.js App RHEL CENTOS 7
# Websocket / ws / wss / socket.io
# Solved after errors:
# connection_error: code 3 Bad Request
# engine invalid transport upgrade
# engine error handshaking to transport "websocket"
# socket.io-client: websocket error
# socket.io-client: failed wss connection
# socket.io-client: failed connection using transport websocket / ws / wss
@rielcfb
rielcfb / linux-cmd-cheatsheet.md
Created January 11, 2023 18:10 — forked from riipandi/linux-cmd-cheatsheet.md
Linux Command Cheat Sheet

#Linux Cheat Sheet

##File Commands:

  • ls – directory listing
  • ls -al – formatted listing with hidden files
  • cd dir - change directory to dir
  • cd – change to home
  • pwd – show current directory
  • mkdir dir – create a directory dir
  • rm file – delete file
@rielcfb
rielcfb / Caddyfile
Created February 23, 2023 07:38 — forked from turtlemonvh/Caddyfile
Multi-host wildcard caddy example
a.myhost.com {
tls off
root /var/www/
proxy / localhost:8091
log log/access.a.log
}
b.myhost.com {
tls off
root /var/www/
@rielcfb
rielcfb / pages.yml
Created February 24, 2023 05:57 — forked from AndrewLester/pages.yml
Github Actions Workflow Deploy SvelteKit Github Pages
name: Build and Deploy to Pages
on:
push:
branches: ["main"]
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
@rielcfb
rielcfb / README.md
Created February 28, 2023 12:47 — forked from tobiashm/README.md
Setting up local domain for Docker

Example for setting up <whatever>.docker as a local domain (for Docker services)

What to do:

  • Install dnsmasq for resolving hostnames
  • Configure dnsmasq to resolve .docker requests to localhost
  • Configure macOS to send .docker requests to dnsmasq
brew install dnsmasq
# Create config files

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example