Skip to content

Instantly share code, notes, and snippets.

View NullCode1337's full-sized avatar
🖊️
Studying

NullCode NullCode1337

🖊️
Studying
  • I wonder where...
View GitHub Profile
@NullCode1337
NullCode1337 / shell.md
Created March 26, 2025 09:20
Mount disks in GNOME without password
# usermod -aG disk <user>
# vim /etc/polkit-1/rules.d/10-udisks2.rules

ADD THE FOLLOWING

// See the polkit(8) man page for more information
// about configuring polkit.
@NullCode1337
NullCode1337 / nim_install.md
Last active April 3, 2024 04:27
How to install the Nim Compiler on your Windows PC

Installing Nim on Windows

What is Nim?

Nim is a (pretty obscure) "statically typed compiled systems programming language". It's unique because the syntax is very reminiscent of Python, while being a compiled language (; anyone?), hence making it accessible to Python devs. Now let's cut to the chase - how to install this:

Installing Nim

Method 1: The boring:tm:

(Powershell only)

  1. Install chocolatey
  2. choco install nim
@NullCode1337
NullCode1337 / bot.py
Created June 21, 2021 07:33
Make discord.py bot run ONLY after internet connection is validated
# Only tested on Windows 10
# -------------------------
# Here is a basic discord.py bot
import discord
from discord.ext import commands
from socket import create_connection
client = commands.Bot(command_prefix = "your prefix")
token = "bot token"