Skip to content

Instantly share code, notes, and snippets.

View cgokmen's full-sized avatar

Cem Gökmen cgokmen

View GitHub Profile
@cgokmen
cgokmen / nginx.conf
Created March 18, 2024 10:14
Nginx reverse proxy for running Isaac Sim WebRTC on Colab
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 80;
location /streaming/ {
proxy_pass http://localhost:8211/streaming/;
@cgokmen
cgokmen / purge_artifacts.js
Created November 23, 2021 19:11
Purge all GitHub Actions artifacts in a repo
const { Octokit, App } = require("octokit");
const { throttling } = require("@octokit/plugin-throttling");
var argv = require("yargs/yargs")(process.argv.slice(2))
.usage('Usage: $0 token org_name repo_name')
.demandCommand(2)
.argv;
const ThrottledOctokit = Octokit.plugin(throttling);
@cgokmen
cgokmen / lc3test.py
Created September 23, 2018 17:32
Sample Unit Test file using pyLC3
from pyLC3 import LC3UnitTestCase
import unittest
import xmlrunner
import six
class LC3UnitTestCaseTest(LC3UnitTestCase):
def loadCodeFile(self, filename):
with open(filename, "r") as f:
self.state.loadCode(f.read())