Skip to content

Instantly share code, notes, and snippets.

View hurbeana's full-sized avatar
💯
I may be slow to respond.

hurbeana

💯
I may be slow to respond.
View GitHub Profile
@hurbeana
hurbeana / tailscale_reoller.user.js
Created December 20, 2024 09:10
violentmonkey tailscale magicdns reroller
/* globals jQuery, $, $x */
// ==UserScript==
// @name Tailscale Reroller
// @namespace Violentmonkey Scripts
// @match https://login.tailscale.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=tailscale.com
// @require https://code.jquery.com/jquery-3.7.1.min.js
// @require https://code.jquery.com/ui/1.14.1/jquery-ui.js
// @require https://raw.githubusercontent.com/uzairfarooq/arrive/master/minified/arrive.min.js
// @require https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/jquery.mark.es6.min.js
@hurbeana
hurbeana / minegrub.sh
Last active January 13, 2024 13:22
minegrub
RES="2560x1440"
GRUB="/etc/default/grub"
GRUB_BACKUP="/etc/default/grub.bak"
SERVICE_NAME="update-theme"
MINEGRUB_DEST="/boot/grub/themes/minegrub"
MOUNT_DIR="/mnt/efi_temp"
GRUB_CUSTOM_FILE="/etc/grub.d/09_custom_windows"
# Backup GRUB configuration
sudo cp "$GRUB" "$GRUB_BACKUP"
@hurbeana
hurbeana / README.md
Created April 20, 2021 15:11
pef_exam2 formula collection

PEF Exam 2 Functions

The functions need the package scipy (for the delta normal approach)

pip install scipy

testing

To test the function run you need pytest and then just run pytest from the folder with then functions.py and the test_functions.py

Computersprachen und Programmierung:
Computersprachen und Programmierung:
LVAs:
Analyse und Verifikation:
ects: 3.0
lvatype: VU
svs: 3.0
Codegeneratoren:
ects: 3.0
lvatype: VO
@hurbeana
hurbeana / ex6_template.c
Last active June 15, 2020 14:46
Change the "output_rank" int to see outputs from different ranks (only one is shown at the time)
#include <mpi.h>
#include <stdio.h>
int main(int argc, char *argv[]) {
MPI_Init(&argc, &argv);
MPI_Comm comm = MPI_COMM_WORLD;
int rank, output_rank = 0;
MPI_Comm_rank(comm, &rank);
int n = 3;
#include <mpi.h>
#include <stdio.h>
int main(int argc, char *argv[]) {
int att = 1; // Change me
MPI_Init(&argc, &argv);
MPI_Comm comm = MPI_COMM_WORLD;
MPI_Win win;
int rank;
MPI_Comm_rank(comm, &rank);
#include <mpi.h>
#include <stdio.h>
int main(int argc, char *argv[]) {
MPI_Init(&argc, &argv);
MPI_Comm comm = MPI_COMM_WORLD;
MPI_Comm newcomm;
int rank, size;
MPI_Comm_rank(comm ,&rank);
MPI_Comm_size(comm ,&size);
@hurbeana
hurbeana / gwgF5basic.txt
Created December 18, 2019 01:39
GWG Test 2 Anki Flashcards
Bei Fieldwork hat man ;Minimum an Social/Contextual Inquiriy</br>Einbeziehung der NutzerInnen;Systemgestaltung Fieldwork
Fieldwork ist die ;Exploration des Feldes;Systemgestaltung Fieldwork
Die 3 Phasen der Partizipativen Vorgehensweise sind;"
<ul>
<li>Fieldwork - Exploration des Feldes</li>
<li>Discovery Process</li>
<li>Prototyping</li>
</ul>";Systemgestaltung
4 Methoden des Discovery Process sind:;"
<ul>
@hurbeana
hurbeana / gwgF6clozures.txt
Created December 18, 2019 01:36
GWG Folien 6 Clozures Anki Flashcards
{{c1::Ethische Dilemmata}} sind {{c2::ethische Problemstellung}} wo bisher {{c3::kein gesellschaftlicher Konsensus}} gefunden wurde. Ein Beispie dafür sind {{c4::selbstfahrende Autos}}.;Wo fährt das Auto hin etc.;Ethik
Im Jahre {{c1::2002}} wurde von {{c2::Verein Deutscher Ingenieure (VDI)}} die {{c3::Ethischen Grundsätze des Ingenieursberuf}} veröffentlicht. Dort steht, dass man für die {{c4::Folgen eigener beruflichen Arbeit}} bewusst ist.; (und über die Zusammenhänge und Auswirkung der genannten Arbeit;Ethik
Das Ziel allen technischen Handelns soll die {{c1::Sicherung}} und {{c1::Verbesserung}} der menschlischen {{c2::Lebensmöglichkeiten}} sein. Dies ist eine {{c3::ethische Richtschnur}};Auszug aus den Ethischen Grundsätzen. Wenn man das nicht tut, soll man damit sofort aufhören was man macht;Ethik
Unter {{c1::Moral}} versteht man einen {{c2::Komplex von Überzeugungen}}, der er es erlaubt, {{c3::Handlungsweisen}} als gut oder böse zu klassifizieren.;Personen in einem ähnlichen Kulturkreis haben ähnliche Vo
@hurbeana
hurbeana / gwgF6basic.txt
Created December 18, 2019 01:35
GWG Folien 6 Basic Anki Flashcards
Man unterscheidet 4 Dimensionen der Verantwortung:;"
<ul>
<li>Handlungsverantwortung</li>
<li>Aufgaben- und Rollenverantwortung</li>
<li>(Universal) - Moralische Verantwortung</li>
<li>Rechtliche Verantwortung</li>
</ul>";Ethik Verantwortung
Problembereiche sind (6 Bereiche):;"
<ul>
<li>Verantwortung für nicht gesicherte, sondern nur wahrscheinliche Folgen (Beispiel Bau mit Asbest in 1990)</li>