Skip to content

Instantly share code, notes, and snippets.

View Wqrld's full-sized avatar
🌍
Discord: Wqrld#7373

Wqrld Wqrld

🌍
Discord: Wqrld#7373
View GitHub Profile
@Wqrld
Wqrld / matrix.c
Created January 2, 2022 18:20 — forked from PlushBeaver/matrix.c
/*
* gcc -O2 matrix.c -o matrix
*
* for i in {1..30}; do echo 768 | ./matrix; done > matrix.csv
*
* R
* data = read.csv("matrix.csv", header = FALSE)
* wilcox.test(data$V1, data$V2, alternative = "two.sided")
*/

random proxmox bridge config hetzner

auto vmbr0
iface vmbr0 inet static
  address primary_ip
  netmask 255.255.255.255
  bridge_ports none
  bridge_stp off
  bridge_fd 0
 bridge_maxwait 0
@Wqrld
Wqrld / mount_qcow2.md
Created August 29, 2020 09:10 — forked from shamil/mount_qcow2.md
How to mount a qcow2 disk image

How to mount a qcow2 disk image

This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.

Step 1 - Enable NBD on the Host

modprobe nbd max_part=8
@Wqrld
Wqrld / snake.py
Last active May 14, 2017 07:32 — forked from sanchitgangwar/snake.py
Snakes Game using Python
# SNAKES GAME
# Use ARROW KEYS to play, SPACE BAR for pausing/resuming and Esc Key for exiting
import curses
from curses import KEY_RIGHT, KEY_LEFT, KEY_UP, KEY_DOWN
from random import randint
curses.initscr()
win = curses.newwin(20, 60, 0, 0) #CREATECANVAS
@Wqrld
Wqrld / curl-websocket.sh
Created April 4, 2017 19:14 — forked from htp/curl-websocket.sh
Test a WebSocket using curl.
curl --include \
--no-buffer \
--header "Connection: Upgrade" \
--header "Upgrade: websocket" \
--header "Host: example.com:80" \
--header "Origin: http://example.com:80" \
--header "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==" \
--header "Sec-WebSocket-Version: 13" \
http://example.com:80/