Skip to content

Instantly share code, notes, and snippets.

View m0veax's full-sized avatar
🐱
🥙

Patrick Kilter m0veax

🐱
🥙
  • Vivawest Wohnen GmbH
  • Germany, Gladbeck
View GitHub Profile
@m0veax
m0veax / output.bash
Created March 18, 2025 21:11
cross compile rayhunter error
❯❯ cargo build --release --target="armv7-unknown-linux-gnueabihf"
Compiling proc-macro2 v1.0.78
Compiling unicode-ident v1.0.12
Compiling autocfg v1.1.0
Compiling libc v0.2.155
Compiling cfg-if v1.0.0
Compiling memchr v2.7.1
Compiling log v0.4.20
Compiling lock_api v0.4.11
Compiling serde v1.0.197
@m0veax
m0veax / install-quake3+cpma.sh
Last active February 21, 2025 21:16 — forked from lhaynie/install-quake3+cpma.sh
Install Quake 3: Arena + CPMA on a mac
#!/bin/bash
# Install Quake 3: Arena on a mac
# updated to cpma 1.53 using the new promode cdn
# Copyright (c) 2016 simonewebdesign
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACT
package main
// thanks to hanemille
import (
"fmt"
"io"
"net/http"
"os"
"strings"
@m0veax
m0veax / win11_window_shortcuts.md
Last active September 9, 2024 11:03
Win11 window management shortcuts
Shortcut Description
win + ctrl + d create virtual desktop
win + ctrl + → go to virtual desktop on the right
win + ctrl + ← go to virtual desktop on the left
win + tab open task view (including virtual desktops)
win + z open snap layouts and choose layout by number
win + ↑ (or ↓) max- / minimize window
win + alt + ↑ (or ↓, ←, →) snap window to part of the screen
win + shift + ↑ (or ↓, ←, →) move window to monitor in direction
@m0veax
m0veax / test.ps1
Last active May 27, 2024 12:18
Powershell to test a connection
# create json object
$params = @{ `
'element' = 'value' `
}
Write-Output "defined parameters"
# start dialog to get authentification data
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="UTF-8">
<title></title>
<script>
if (navigator.appName === 'Microsoft Internet Explorer') {
var bVersion = ((navigator.appVersion).split(";"))[1];
var bNum = Number((bVersion.split("MSIE"))[1]);
@m0veax
m0veax / enum3.rs
Last active December 1, 2023 22:21
rustlings problem
// enums3.rs
//
// Address all the TODOs to make the tests pass!
//
// Execute `rustlings hint enums3` or use the `hint` watch subcommand for a
// hint.
// I AM NOT DONE
enum Message {
@m0veax
m0veax / wordclock.ino
Created July 1, 2023 21:40
Da ich meine Uhr falsch verdrahtet habe, musste ich die LED Reihenfolge umstellen, damit es rund läuft ;)
/**
* @file wordclock.ino
* @author telegnom ([email protected])
* @date 2019-02-23
* @version 1.1
*
* @brief firmware for the c3e wordclock
*
* requires the time.h and timezone.h libraries
* https://github.com/PaulStoffregen/Time/
@m0veax
m0veax / MultipleDevicesOverTCP.md
Created November 19, 2020 05:58 — forked from teocci/MultipleDevicesOverTCP.md
How to connect multiple Android devices with ADB over TCP

#How to connect multiple Android devices with ADB over TCP

From your device, if it is rooted

According to a post on xda-developers, you can enable ADB over Wi-Fi from the device with the commands:

su
setprop service.adb.tcp.port 5555
stop adbd
start adbd