Skip to content

Instantly share code, notes, and snippets.

View Oakchris1955's full-sized avatar
🇺🇦
#SlavaUkraini!

Oakchris1955 Oakchris1955

🇺🇦
#SlavaUkraini!
View GitHub Profile
@Softwave
Softwave / README.md
Last active November 27, 2025 14:05
Fibonacci Program

Fib

Simple fibonacci number calculator.

Usage: fib nth Fibonacci number

@dominiwe
dominiwe / uninstall-guix.md
Created December 27, 2022 14:27
Uninstall guix after installing it on top of an existing GNU/Linux system

How to uninstall guix

Date of creation: 2022-12-27

First of all, if the install script referenced here was used to install guix, ideally the output of that script as well as the script itself should have been saved somewhere. This makes it easier to see which components were installed and where and thus makes it easier for you to uninstall them.

As for me personally, I used the install script to install guix on a debian derivative distribution with systemd. This guide thus focuses on uninstalling guix from a debian derivative distribution but will probably work for your distribution as well with some slight changes.

@ConnerWill
ConnerWill / ANSI-escape-sequences.md
Last active May 16, 2026 11:00
ANSI Escape Sequences cheatsheet

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@atkvishnu
atkvishnu / dino.md
Last active December 8, 2022 15:38
chrome://dino/
  1. Disable gameover functionality
var original = Runner.prototype.gameOver
Runner.prototype.gameOver = function (){}
  1. Enable gameover functionality
@maalos
maalos / microsnek.html
Last active November 3, 2023 15:45
smallest snake game in js (498 characters)
<canvas id=g width=256 height=256 style="border:solid"><script>[c,j,s,z,h]=[g.getContext("2d"),16,[[8,8]]];a=s[0];onkeydown=({key:e})=>[z,h]={d:[z||1,0],a:[z||-1,0],s:[0,h||1],w:[0,h||-1]}[e];setInterval(()=>{if(s.unshift([s[0][0]+z&15,s[0][1]+h&15]),""+s[0]==a)with(Math)for(r=random(),f=floor(j*r);a=[f,f],s.some(e=>""+e==a););else s.slice(1).some(e=>""+e==s[0])?s.splice(1):s.pop();c.clearRect(0,0,256,256);c.fillRect(j*a[0],j*a[1],j,j);s.forEach(([e,l])=>c.fillRect(j*e,j*l,j,j))},125)</script>

brainfuck snippets

arithmetical

addition

|5|3| → |8|0|
   ^       ^
[<+>-]

subtraction

@DominicMaas
DominicMaas / rpi_pico_littlefs.h
Last active August 20, 2024 03:27
Not much testing, but this should work for using LittleFS with the Raspberry Pi Pico built in flash chip.
#pragma once
#include "pico/stdlib.h"
#include "pico/binary_info.h"
#include "hardware/flash.h"
#include "hardware/sync.h"
#include <lfs.h>
@ConorJOHanlon
ConorJOHanlon / RPi_I2C_driver.py
Created April 10, 2021 15:47 — forked from DenisFromHR/RPi_I2C_driver.py
RaspberryPi I2C LCD Python stuff
# -*- coding: utf-8 -*-
"""
Compiled, mashed and generally mutilated 2014-2015 by Denis Pleic
Made available under GNU GENERAL PUBLIC LICENSE
# Modified Python I2C library for Raspberry Pi
# as found on http://www.recantha.co.uk/blog/?p=4849
# Joined existing 'i2c_lib.py' and 'lcddriver.py' into a single library
# added bits and pieces from various sources
# By DenisFromHR (Denis Pleic)
@Soheab
Soheab / API's.md
Last active February 20, 2026 23:08
See here some of the API's you can use in your discord bot or anything

Some APIs for you.

Here are some APIs you can use in your Discord bot or any other project. For any help or questions on how to use one, please contact the owner of the API and not me.

A bigger list of APIs can be found at: https://github.com/public-apis/public-apis


[TOKEN] = API requires a token to access some if not all endpoints.

@JARVIS-AI
JARVIS-AI / dino.md
Last active May 1, 2026 17:13
Chrome Dino game cheats

Hack Google Chrome and Make your Dinosaur Immortal

The game can be hacked pretty easily, making your dinosaur not even flinch at the sight of a cactus.

To hack the game, first go the the error message page where your dinosaur is hanging out.

Go ahead and press the space bar to start the game. Once the game starts, right-click and select Inspect” to open up Chrome DevTools, then select the Console tab.