Skip to content

Instantly share code, notes, and snippets.

View robiXxu's full-sized avatar
🏠
Working from home

Robert Schiriac robiXxu

🏠
Working from home
View GitHub Profile
@sounishnath003
sounishnath003 / concurrentProcessExecutor.js
Last active August 25, 2022 17:49
Easily perform Concurrent Execution to LongRunning Processes using Simple ConcurrentQueue. Feel free to improve and share feedback.
const delay = (seconds = 1) =>
new Promise((resolve, reject) =>
setTimeout(() => {
resolve("process completed...");
}, seconds * 1000)
);
const tasks = [
delay(1),
delay(4),
@Mluckydwyer
Mluckydwyer / opengl-in-wsl.md
Last active April 8, 2024 09:14
Install OpenGL on Ubuntu in WSL

How to Install OpenGL in Ubuntu in WSL2

These steps have been tested on Windows 10 with WSL2 running Ubuntu.

1. Dependencies

First install the dependencies:

apt install mesa-utils libglu1-mesa-dev freeglut3-dev mesa-common-dev

There are more than we need, but also include GLut and Glu libraries to link aginst during compilation for application development (these can be removed if that functionality is not required).

@Nurgiel
Nurgiel / wow-macros.md
Last active December 29, 2023 19:40
WoW Macros

Vanilla WoW Macros

Initial Setup

/console WeatherDensity 0
/console ffxGlow 0

Toggle Master/Group Loot Macro

@Gavinok
Gavinok / config.py
Last active January 12, 2024 11:02
This is a simplified version of my qutebrowser config
import subprocess
import os
from qutebrowser.api import interceptor
"""
qutebrowser settings for video
for more settings check out
https://qutebrowser.org/doc/help/settings.html
"""
// resources: https://del.dog/v/edypeginge.js
// https://www.hackerfactor.com/blog/?/archives/432-Looks-Like-It.html
// https://sharp.pixelplumbing.com/api-output#raw
// https://github.com/AndrewLaneX/photohash/blob/master/photohash/photohash.py#L22-L32
const fs = require('fs');
const sharp = require('sharp');
async function averageHash(filePath, hashSize = 8) {
const buffer = await fs.promises.readFile(filePath);
@sorny
sorny / x11_forwarding_macos_docker.md
Last active April 30, 2024 02:00
X11 forwarding with macOS and Docker

X11 forwarding on macOS and docker

A quick guide on how to setup X11 forwarding on macOS when using docker containers requiring a DISPLAY. Works on both Intel and M1 macs!

This guide was tested on:

  • macOS Catalina 10.15.4
  • docker desktop 2.2.0.5 (43884) - stable release
  • XQuartz 2.7.11 (xorg-server 1.18.4)
  • Macbook Pro (Intel)
@NaniteFactory
NaniteFactory / setcookie.go
Created October 21, 2019 06:30
chromedp set-cookie example
package main
import (
"context"
"fmt"
"log"
"time"
"github.com/chromedp/cdproto/cdp"
"github.com/chromedp/cdproto/network"
@llbbl
llbbl / fix_openssl_catalina.sh
Last active November 3, 2023 06:05
fix missing openssl files in catalina
#!/bin/bash
echo 'update brew'
brew update
echo 'upgrade brew'
brew upgrade
@vianhanif
vianhanif / Dockerfile
Last active October 20, 2023 19:01
Golang (chromedp) + Xvfb + Chrome + Docker
FROM golang:1.11-alpine as builder
WORKDIR /myapp
COPY go.mod .
COPY go.sum .
RUN apk add --no-cache ca-certificates git
# Get dependancies - will also be cached if we won't change mod/sum
RUN go mod download
@Cogitri
Cogitri / .configalacrittyalacritty.yml
Created January 20, 2019 11:40
.config/alacritty/alacritty.yml
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty itself.
env:
# TERM variable
#
# This value is used to set the `$TERM` environment variable for
# each instance of Alacritty. If it is not present, alacritty will