Skip to content

Instantly share code, notes, and snippets.

@arya2004
arya2004 / README.md
Created July 14, 2024 06:48
A guide and script to temporarily disable and enable the laptop keyboard while using an external keyboard in Linux Mint.

Step-by-Step Guide

  1. Identify Your Laptop Keyboard Device ID: Open a terminal and run:
    xinput list
    This command will display a list of all input devices connected to your system. Look for an entry that corresponds to your laptop keyboard, such as "AT Translated Set 2 keyboard" or something similar. Note down the device ID (e.g., 11).
@moshiurse
moshiurse / readme.md
Created July 25, 2023 09:28
Install tar.gz file in linux
  1. Download the desired .tar.gz or (.tar.bz2) file.
  2. Open Terminal
  3. Extract the .tar.gz or (.tar.bz2) file with the following commands

    tar xvzf package.tar.gz
    tar xvjf package.tar.bz2

  4. Navigate to the extracted folder using cd command

    cd package

  5. Now run the following command to install the tarball

    ./configure
    > make

@cheesits456
cheesits456 / RemoveButtons.theme.css
Last active December 27, 2025 03:16
Custom CSS for Discord to remove the GIF picker and Nitro Gift buttons from the message bar
/**
* @name Remove Buttons
* @version 1.1.1
* @author cheesits456
* @authorId 306018440639152128
* @description Remove the nitro gift, GIF picker, and sticker picker buttons from the message box. Also remove the sticker suggestion popup
* @source https://gist.github.com/cheesits456/41d659f932b5a574b5dfb9b391a4506e
* @invite 7QH4YeD
* @donate https://donate.haileybot.com
* @website https://cheesits456.dev
@toxicantidote
toxicantidote / lancache.py
Last active December 27, 2025 03:15
Uses LANcache DNS lists to create a DNSmasq compatible config file to redirect DNS queries to an existing LANcache server
## LANcache server IP
cache_ip = '192.168.0.1'
## DNSmasq output file (don't overwrite main config)
## Add "conf-file=/etc/dnsmasq.lancache" to the bottom of /etc/dnsmasq.conf to activate
output_file = '/etc/dnsmasq.lancache'
###
import requests
import os
@tomasdev
tomasdev / minecraft-emoji.md
Last active December 27, 2025 03:14
Minecraft allowed emojis

Minecraft allowed emojis

Ever wondered how to insert emoji in minecraft? Well turns out Minecraft supports only a subset of emoji (old one) but you can copy-paste these in it!

Screenshot of the emojis being rendered in Minecraft

These also look great on signs!

Minecraft sign with glowing effect showcasing arrows

@ImRLopezAI
ImRLopezAI / convex-helpers.ts
Last active December 27, 2025 03:13 — forked from jacobsamo/convex-helpers.ts
I created this neat little helper function for defining tables for convex using zod, it utilises the convex-helpers (https://github.com/get-convex/convex-helpers) package for transforming zod into convex schemas, this apporach reduces code duplicated as well as reducing the change of missing a type or field in queries or mutations.
// convex/helpers.ts
import { NoOp } from "convex-helpers/server/customFunctions";
import {
zCustomAction,
zCustomMutation,
zCustomQuery,
} from "convex-helpers/server/zod4";
import { components } from "./_generated/api";
import type { Id } from "./_generated/dataModel";
import {
@lucascosti
lucascosti / GitHub-code-font-size.js
Created April 7, 2022 07:04
Violentmonkey script for slightly bumping up the font size when editing code on GitHub on my M1 MacBook Pro.
// ==UserScript==
// @name GitHub source editing font size on my M1 MacBook Pro.
// @description For some reason the font size is a little too small _only_ when editing in the source view.
// @author Lucas Costi
// @namespace https://lucascosti.com
// @match https://github.com/*/*/edit/*
// @match https://github.com/*/*/new/*
// @match https://gist.github.com/*/*/edit
// @match https://gist.github.com/
// @grant none
@ejolly
ejolly / model_results_to_googledoc.ipynb
Created April 17, 2021 19:36
How to save a pandas dataframe to a google sheet that's dynamically linked to a table in a google doc
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@liuran001
liuran001 / config.yaml
Last active December 27, 2025 03:05
mihomo (Clash Meta) 懒人配置
# AFF
# 如果你想支持我,可以通过我的邀请链接购买机场
# 感谢支持
# 1. ssLinks 邀请码: fSo2OhzH https://98a6251b6cd7471da86cca993b6dbe6f.36d.biz/#/register?code=fSo2OhzH
# 2. 一元机场 邀请码: r3f1duds https://xn--4gq62f52gdss.top/#/register?code=r3f1duds
# 一定要填我的邀请码,不填我哭给你看😭
# mihomo (Clash Meta) 懒人配置
# 版本 V1.23-251221
<?xml version="1.0" encoding="utf-8"?>
<Profile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Name>Sony PlayStation 3 (Movian)</Name>
<Identification>
<FriendlyName>movian</FriendlyName>
<ModelNumber />
<SerialNumber />
<ModelName />
<ModelDescription />
<ModelUrl />