Skip to content

Instantly share code, notes, and snippets.

View ajinkyapuar's full-sized avatar

Ajinkya Puar ajinkyapuar

View GitHub Profile
@tcarrio
tcarrio / background-noise-reduction-tools.md
Last active November 21, 2022 07:58
Background noise reduction tools (alternatives to RTX Voice)
@ryanfb
ryanfb / blender_compress_mesh.py
Created May 21, 2020 12:48
Blender Python script for converting a mesh to GLB with Draco compression
# Blender Python script for converting a mesh to GLB with Draco compression.
# Tested on Blender 2.82
# Usage:
# blender --background --factory-startup --addons io_scene_gltf2 --python blender_compress_mesh.py -- -i #{source_path} -o #{out_path}
from os import path
from contextlib import redirect_stdout
from sys import argv
import argparse
import io
import bpy
@andreyryabtsev
andreyryabtsev / backmatting.ipynb
Last active June 5, 2024 04:56
BackMatting.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MarcinZukowski
MarcinZukowski / X11-in-docker.md
Last active January 22, 2024 04:53
Making X work inside docker

Making X11 apps work inside docker

TL;DR

xhost +local:docker
docker run -e DISPLAY=$DISPLAY -v /tmp/.X11-unix/:/tmp/.X11-unix ...

Details

Every now and then I want to run X apps inside docker, and then I always hit some issues.

@imami
imami / anydesk-enable-remote-access.md
Last active May 8, 2024 00:52
AnyDesk - How Enable Remote Access from ubuntu/debian terminal

###AnyDesk - How Enable Remote Access from ubuntu/debian terminal.

Note:

Here are the commands might be usefull in this purpose:

  • anydesk --get-status : To get current status of anydesk, which might be offlien,online or nothing.
  • anydesk --get-id : To get the ID that your system can be accessed by.
  • anydesk --service : To start anydesk service if not already running (for Linux).
  • anydesk --restart-service : To restart anydesk service
  • anydesk --stop-service : To stop anydesk service
@calderarchinuk
calderarchinuk / UnityAssistant.cs
Last active December 8, 2023 09:50
Unity Editor Assistant. Adds a context-sensitive right-click menu, automatically disables auto-generate lightmaps
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System.Reflection;
using UnityEditor.SceneManagement;
[InitializeOnLoad]
public class UnityAssistant
{
@sbinlondon
sbinlondon / synthwaveglow.md
Last active February 22, 2024 22:40
Get the synth wave glow theme working for VS Code on Mac

Get the synth wave glow working for VS Code on Mac

These notes are pretty much the same steps as the two extensions list, it's just that I had to collate them together because neither seems to list it fully in the proper order.

  1. Install Synthwave ’84/Synthwave + Fluoromachine theme on VS Code (I used the Fluoromachine one)

  2. Install Custom CSS and JS Loader

  3. Command + Shift + P to open command palette > "Preferences: Open settings (JSON)"

@icywind
icywind / AgoraApiHandlersImpl.cs
Created October 21, 2019 18:52
Actual implementation for the Agora SDK event callbacks.
using UnityEngine;
using agora_gaming_rtc;
public class AgoraApiHandlersImpl
{
private IRtcEngine mRtcEngine;
public AgoraApiHandlersImpl(IRtcEngine engine)
{
mRtcEngine = engine;
@Sacristan
Sacristan / push_commits_by_chunks.sh
Last active June 3, 2024 12:54
Push commits by chunks
REMOTE=origin
BRANCH=$(git rev-parse --abbrev-ref HEAD)
BATCH_SIZE=10
# check if the branch exists on the remote
# if git show-ref --quiet --verify refs/remotes/$REMOTE/$BRANCH; then
# # if so, only push the commits that are not on the remote already
# range=$REMOTE/$BRANCH..HEAD
# else
# # else push all the commits
@bradtraversy
bradtraversy / node_nginx_ssl.md
Last active June 3, 2024 20:19
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user