Skip to content

Instantly share code, notes, and snippets.

View madebycm's full-sized avatar
💭
😀 if(count(dailyCommits()<=0)) return("C8H10N4O2")

Christian Meinhold madebycm

💭
😀 if(count(dailyCommits()<=0)) return("C8H10N4O2")
View GitHub Profile
@echo off
setlocal
echo This script will delete all files in the following directories:
echo %LOCALAPPDATA%\Starfield\
echo %LOCALAPPDATA%\AMD\DxCache\
echo Deleting files...
if exist "%LOCALAPPDATA%\Starfield\" (
[Display]
bVolumetricLightingEnable=0
bDepthOfFieldEnable=0
fFilmGrainIntensity=0.0
[Decals]
uMaxDecals=20
uMaxSkinDecals=5
uMaxSkinDecalsPerActor=5
iMaxDecalsPerFrame=3
@madebycm
madebycm / ally900p.reg
Last active September 26, 2023 12:37
ROG Ally 900p regedit
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0020]
"DALNonStandardModesBCD1"=hex:\
19,20,10,80,00,00,00,00,\
16,00,09,00,00,00,00,00,\
12,80,07,20,00,00,00,00
"DALRestrictedModesBCD1"=hex:\
51,20,28,80,00,00,00,00,\
38,40,24,00,00,00,00,00,\
@madebycm
madebycm / g
Last active April 27, 2023 16:22
# This PowerShell script tries to do almost all the things required to set up
# an Ubuntu WSL2 instance for use with DDEV and docker-ce installed inside WSL2.
# It requires that an Ubuntu wsl2 distro be installed already, preferably with `wsl --install`, but it can also be
# done manually.
# Run this in an administrative PowerShell window.
# You can download, inspect, and run this, or run it directly with
# Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;
# iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/ddev/ddev/master/scripts/install_ddev_wsl2_docker_inside.ps1'))
#Requires -RunAsAdministrator
@madebycm
madebycm / docker-clean
Created February 18, 2023 16:40
docker-clean oneliner alias
echo "alias docker-clean='docker stop \$(docker ps -a -q) && docker rm \$(docker ps -a -q) && docker rmi \$(docker images -q) && docker volume rm \$(docker volume ls -q)'" >> ~/.bashrc && source ~/.bashrc
@madebycm
madebycm / wide.bat
Created October 2, 2022 11:30
Automatically ChangeScreenResolution + DPI Windows 11
ChangeScreenResolution.exe /w=5120 /h=1440 /d=0
@ECHO OFF
explorer ms-settings:display
ping -n 2 127.0.0.1 > nul
:VBSDynamicBuild
SET TempVBSFile=%tmp%\~tmpSendKeysTemp.vbs
IF EXIST "%TempVBSFile%" DEL /F /Q "%TempVBSFile%"
@madebycm
madebycm / flutter-singleton-db.dart
Created April 24, 2020 09:00
Flutter singleton DatabaseHelper
import 'dart:io';
import 'package:path/path.dart';
import 'package:sqflite/sqflite.dart';
import 'package:path_provider/path_provider.dart';
class DatabaseHelper {
static final _databaseName = "MyDatabase.db";
static final _databaseVersion = 1;