Skip to content

Instantly share code, notes, and snippets.

View mrdev023's full-sized avatar
🎯
Focusing

Florian Richer mrdev023

🎯
Focusing
View GitHub Profile
@mrdev023
mrdev023 / MarIO.lua
Created September 15, 2023 19:19 — forked from d12frosted/MarIO.lua
MarI/O by SethBling
-- MarI/O by SethBling
-- Feel free to use this code, but please do not redistribute it.
-- Intended for use with the BizHawk emulator and Super Mario World or Super Mario Bros. ROM.
if gameinfo.getromname() == "Super Mario World (USA)" then
Filename = "DP1.state"
ButtonNames = {
"A",
"B",
"X",
@mrdev023
mrdev023 / install_falchion_patch.sh
Created May 11, 2023 17:45
Add hwdb configuration to avoid shutdown or sleeping computer when keyboard go to sleep
#!/bin/sh
echo "Download last version of falchion patch"
wget https://raw.githubusercontent.com/mrdev023/falchion-shutdown/master/99-asus-falchion.hwdb
echo "Install patch"
mkdir -p $pkgdir/etc/udev/hwdb.d
cp ./99-asus-falchion.hwdb /etc/udev/hwdb.d/99-asus-falchion.hwdb
echo "Update hwdb"
@mrdev023
mrdev023 / shopping_cart.md
Created March 22, 2023 11:46 — forked from anaclair/shopping_cart.md
Implementing Redis Shopping Cart

What is Redis?
Redis is an open source, advanced in-memory key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.

######1. If you're running OS X, install redis in terminal using Homebrew : brew install redis

######2. Add the redis and hiredis gems to the project's Gemfile (remember to bundle install after you do this) :

#!/bin/bash
yay icu63
sudo ln -s /etc/ssl /usr/lib/ssl
#!/bin/bash
function enable_core() {
bash -c "echo 1 > \"/sys/devices/system/cpu/cpu$1/online\""
echo "Set Core $1 : enabled"
}
function disable_core() {
bash -c "echo 0 > \"/sys/devices/system/cpu/cpu$1/online\""
echo "Set Core $1 : disabled"
#!/bin/bash
sudo bash -c "echo 1 > /proc/sys/vm/drop_caches"
sudo bash -c "echo 1 > /proc/sys/vm/compact_memory"
import 'package:flutter/material.dart';
final Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatefulWidget {
_MyAppState createState() => _MyAppState();
Verifying my identity on Peepeth.com 0xef8d8aa5cc2e0bfd9d8fee25fdb18c7962666917
@mrdev023
mrdev023 / keybase.md
Created October 1, 2018 08:33
Keybase Prove

Keybase proof

I hereby claim:

  • I am mrdev023 on github.
  • I am mrdev023 (https://keybase.io/mrdev023) on keybase.
  • I have a public key whose fingerprint is A13C 67AF 9AAA D68C 2154 ABA2 0C25 7F73 A2A5 D56C

To claim this, I am signing this object: