Skip to content

Instantly share code, notes, and snippets.

View arindas's full-sized avatar
:octocat:
Focusing

Arindam Das arindas

:octocat:
Focusing
View GitHub Profile
/*
* Brian Anderson, Com S 352 Project 1
* UThread a User Thread Library, it uses only 1 "kernel thread"
*/
#ifdef __APPLE__
#define _XOPEN_SOURCE /* See note at the bottom about this */
#endifult_activeContext
@ciarand
ciarand / README.md
Created January 24, 2014 04:43
Making xrandr modifications permanent with lightdm

Overview

xrandr is the easiest way to make a multiple display configuration work in Linux. Lightdm is my current display manager. This file explains how to make lightdm run an arbritrary script (in this case an xrandr script) on startup.

Here's the command we need:

@disintegrator
disintegrator / https-during-dev.macos.sh
Last active October 23, 2024 08:32
Use Caddy, mkcert and dnsmasq to expose your development server over HTTPS
brew install caddy mkcert nss dnsmasq
mkcert -install
mkcert '*.app.test' '*.cdn.test'
# rename the certs and move them under /usr/local/etc/caddy/certs
cat <<EOF > /usr/local/etc/caddy/Caddyfile
*.app.test:443, *.cdn.test:443 {
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active August 14, 2025 06:35
Conventional Commits Cheatsheet
@mrk-han
mrk-han / emulator-install-using-avdmanager.md
Last active August 10, 2025 07:12
Installing and creating Emulators with AVDMANAGER (For Continuous Integration Server or Local Use)

Install and Create Emulators using AVDMANAGER and SDKMANAGER

TL;DR

For an emulator that mimics a Pixel 5 Device with Google APIs and ARM architecture (for an M1/M2 Macbook):

  1. List All System Images Available for Download: sdkmanager --list | grep system-images

  2. Download Image: sdkmanager --install "system-images;android-30;google_atd;arm64-v8a"

@grhbit
grhbit / 24-bit-color.sh
Last active August 1, 2025 08:33 — forked from lifepillar/24-bit-color.sh
Test 24 bit colors in terminals
#!/bin/bash
#
# This file echoes a bunch of 24-bit color codes
# to the terminal to demonstrate its functionality.
# The foreground escape sequence is ^[38;2;<r>;<g>;<b>m
# The background escape sequence is ^[48;2;<r>;<g>;<b>m
# <r> <g> <b> range from 0 to 255 inclusive.
# The escape sequence ^[0m returns output to default
setBackgroundColor()
@ZoeLiao
ZoeLiao / django_logging_watchtower.py
Last active February 7, 2025 14:22
Plug your Django application logging directly into AWS CloudWatch by watchtower
import logging
from boto3.session import Session
AWS_ACCESS_KEY_ID = 'your aws key ID'
AWS_SECRET_ACCESS_KEY = 'your aws secret access key'
AWS_REGION_NAME = 'your region name. e.g, us-east-1'
AWS_LOG_GROUP = 'MyLogGroup', # your log group
AWS_LOG_STREAM = 'Mystream', # your stream
AWS_LOGGER_NAME = 'watchtower-logger' # your logger
from kernel_ffi import KP_ARGS_MODIFY, callback, current, ftrace, kprobe
# create struct casters
tcphdr = partial_struct("tcphdr")
sk_buff = partial_struct("sk_buff")
net_protocol_s = partial_struct("net_protocol")
def swap16(n):
n = n & 0xffff
@emilianavt
emilianavt / BestVTuberSoftware.md
Last active August 10, 2025 20:52
Best VTuber Software

Best VTuber software

This is a list of the most commonly used and relevant vtubing software. The "best" will always be subjective and depend on your specific requirements. Overall, the information in this list is as accurate as I could figure it out, but there might be errors or some details might become out of date. If you find anything that needs to be corrected, please let me know. You can also note it in a comment.

Additional explanations:

  • iPhone means that an iPhone is basically required
  • iFacialMocap support means that tracking data can be received from the iFacialMocap iPhone app
  • VMC protocol means that the application can send and/or receive tracking data from other VMC protocol capable applications, allowing the combination of multiple tracking methods (e.g. VSeeFace receiving VR tracking from Virtual Motion Capture and iPhone/ARKit face tracking from Waidayo)
  • Tobii means that the Tobii eye tracker is supported
@sanketsudake
sanketsudake / kind-kubernetes-metrics-server.md
Last active June 19, 2025 05:56
Running metric-server on Kind Kubernetes

I have created a local Kubernetes cluster with kind. Following are changes you need to get metric-server running on Kind.

Deploy latest metric-server release.

kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.5.0/components.yaml

Within existing arguments to metric-server container, you need to add argument --kubelet-insecure-tls.