Skip to content

Instantly share code, notes, and snippets.

@arafathusayn
arafathusayn / Emoji-on-Ubuntu.md
Last active April 11, 2025 02:41
Guide to enable system-wide Emoji support on Ubuntu 🤩

1. Install Fonts

sudo apt install fonts-noto-color-emoji

2. Add Font Configuration

  • Open ~/.config/fontconfig/conf.d/01-emoji.conf file in an editor.
  • Copy-paste the lines below:
@snoopen
snoopen / AIAIAI_H05_firmware.md
Last active April 11, 2025 02:39
Update AIAIAI H05 firmware from Windows
@bspguy
bspguy / pulseview_driver_fix.txt
Created March 30, 2023 06:58
Fix for Ubuntu/Pop_OS!: pulseview failed to open device generic/unspecified error
First in pulsview set the log level to 5.
If the error is fx2lafw: unable to get version info: libusb_error_timeout.
Then to fix it install the firmware with:
apt install sigrok-firmware-fx2lafw
@acidtib
acidtib / readme.md
Created August 28, 2023 17:56
kamal + github actions

Example of Kamal deployment from Github Actions.

Add your applications .env variables to the Github repo as a repository secret, you can find this under the repo settings => secrets and variables => actions

https://github.com/username/repo_name/settings/secrets/actions

you are going to need an ssh private key that your deployment server is aware of (add public key to servers .ssh/authorized_keys) and add the ssh private key as a repo secret

create action workflows

@alfchee
alfchee / NumeroALetras.js
Last active April 11, 2025 02:32
Código en JavaScript que convierte números a letras, bastante útil para formularios de documentos contables y similares
/*************************************************************/
// NumeroALetras
// The MIT License (MIT)
//
// Copyright (c) 2015 Luis Alfredo Chee
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights

tnw-metro-api - /stream

This endpoint is a Server-Sent Events (SSE) stream that provides real-time updates about train statuses and other relevant events without the need for polling.

Query Parameters

Parameter
@JPersson77
JPersson77 / nVAppAppApp.ps1
Last active April 11, 2025 02:30
nVAppAppApp - workaround NVIDIA DLSS4 whitelisting
<# Workaround for NVIDIA's DLSS4 whitelisting
DLSS4 was launched alongside the RTX 5000 series and comprise several new and interesting
features, f.e. additional presets for Super Resolution, using a newer Transformer model.
Arguably these features increase image quality significantly. To various degrees these
features are also available for older RTX cards, and older games using DLSS3/2.
Using third party apps like DLSS Swapper etc remains a convenient way to, on a manual basis,
swap out DLLs which contain the above mentioned functionality, per game. Downsides to this is
primarily that swapping out DLLs for online multi-player games may trigger an Anti-Cheat
system, and there is of course also some manual work of updating to newer versions/DLLs.
@rsms
rsms / macos-distribution.md
Last active April 11, 2025 02:30
macOS distribution — code signing, notarization, quarantine, distribution vehicles
@okineadev
okineadev / commit-message-guidelines.md
Last active April 11, 2025 02:29
🤖 Copilot commit messages instructions for VS Code

Paste it to settings.json:

"github.copilot.chat.commitMessageGeneration.instructions": [
  {
    "text": "Follow the Conventional Commits format strictly for commit messages. Use the structure below:\n\n```\n<type>[optional scope]: <gitmoji> <description>\n\n[optional body]\n```\n\nGuidelines:\n\n1. **Type and Scope**: Choose an appropriate type (e.g., `feat`, `fix`) and optional scope to describe the affected module or feature.\n\n2. **Gitmoji**: Include a relevant `gitmoji` that best represents the nature of the change.\n\n3. **Description**: Write a concise, informative description in the header; use backticks if referencing code or specific terms.\n\n4. **Body**: For additional details, use a well-structured body section:\n   - Use bullet points (`*`) for clarity.\n   - Clearly describe the motivation, context, or technical details behind the change, if applicable.\n\nCommit messages should be clear, informative, and professional, aiding readability and project tracking."
  }
]
@macroxela
macroxela / Alien.java
Created April 24, 2014 01:46
A Galaga game developed in Java
import java.util.*;
public class Alien extends GameObject
{
Random dice;
int cnt = 1;
int dx;
int rand = 0;
boolean shot;