Skip to content

Instantly share code, notes, and snippets.

@lopspower
lopspower / README.md
Last active March 26, 2025 00:12
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@SapphicMoe
SapphicMoe / pds.md
Last active March 26, 2025 00:10
This is a very quick guide detailing how to set up a Bluesky PDS (Personal Data Server) using Docker Compose and Caddy.

Bluesky PDS using Docker Compose + Caddy

This is a very quick guide detailing how to set up a Bluesky PDS (Personal Data Server) using Docker Compose and Caddy.

For any questions, leave a comment on this GitHub Gist below, contact me on Bluesky at @sapphic.moe, or leave an email at [email protected]

Note

This guide assumes your website is behind Cloudflare.

Prerequisites

@jasonsperske
jasonsperske / README.md
Last active March 26, 2025 00:09
JavaScript Obfuscator

Based on @VisioN's profile signature in StackOverflow, turned into a configurator that anyone can use.

@nkhitrov
nkhitrov / structlog_fastapi.py
Created March 16, 2023 00:04
Structlog FastAPI example
"""
Structlog example configuration with FastAPI.
Features:
- async bound logger
- contextvars to log request-id and other meta data
- custom format for default logging loggers and structlog loggers
"""
import asyncio
import logging
@arsho
arsho / update_pypi_package.md
Last active March 26, 2025 00:06
Update existing Python package in Pypi

Update PyPI package (Tested on 12/31/2023)

I updated my package autolike today using the following steps:

Update the project locally

  • Changed the version number in setup.py and modify package as necessary.

Test in development

Assuming you’re in the root of your project directory, then run:

pip install -e .

Created a build

@pjobson
pjobson / plex_media_permissions_4_noobies.md
Last active March 26, 2025 00:04
Plex Media Permissions for Linux Noobies

Plex Media Permissions for Linux Noobies

There is no problem with being a noobie and I do not use the term to sligtht or disparage anyone.

This is a way to setup your permissions for running Plex in Linux. Different folks may use different methods.

The permissions concepts provided here apply to OSX, but the users and groups are controlled and modified differently, so much of this will not work properly. I think the command is dscl, but that could be out of date.

There are many ways to setup your permissions scheme in Linux, this methodology describes a way to do it, not everyone will like it, but it works for me, so whatever.

@iTaysonLab
iTaysonLab / CoilVibrancyTransformation.android.kt
Last active March 26, 2025 00:02
Multiplatform Coil Blur Transformer imitating iOS blurring materials
package bruhcollective.itaysonlab.libvibrancy
import android.graphics.Bitmap
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.Paint
import androidx.core.graphics.applyCanvas
import bruhcollective.itaysonlab.libvibrancy.VibrancyMaterial
import coil3.size.Size
import coil3.transform.Transformation
import com.google.android.renderscript.Toolkit

How to make a 1 click connect to bluetooth device button

image

making a shortcut

  • Install Bluetooth Command Line Tools
  • you can use the command line tools to display all device ids by simply running btdiscovery
  • Create a Connect batch script:
@avoidwork
avoidwork / gist:0c5170900146c936b29b5e0de4c87921
Last active March 25, 2025 23:55
Debian 12 nvidia drivers (apt/sources.list)
# Disable SecureBoot in UEFI for kernel module to load
# add options to primary
non-free contrib
# add source
deb https://ftp.debian.org/debian/ bookworm-proposed-updates contrib main non-free non-free-firmware