Skip to content

Instantly share code, notes, and snippets.

View sekwah41's full-sized avatar
๐Ÿ˜Ž
In the zone

Sekwah sekwah41

๐Ÿ˜Ž
In the zone
View GitHub Profile
@sekwah41
sekwah41 / hack-script.ns
Last active December 31, 2021 23:33
Worm virus for game bitburner
/**
* is 2.4GB last checked
* @param {NS} ns **/
export async function main(ns) {
// Defines the "target server", which is the server
// that we're going to hack. In this case, it's "n00dles"
let targets = ns.args;
ns.disableLog("ALL");
ns.enableLog("grow");
ns.enableLog("weaken");
@sekwah41
sekwah41 / Raid Info
Last active November 2, 2021 16:26
Example of how to setup raid
Proper instructions
# Prepare drives
gdisk (delete all the partitions and make one large one using fd00)
# Example of raid0 config
mdadm --create --verbose /dev/md0 --level=0 --raid-devices=4 /dev/sda1 /dev/sdb1
# Format the new block
mkfs.ext4 -F /dev/md0
@sekwah41
sekwah41 / update-monitor-position vmware
Created May 27, 2021 16:11
/usr/local/sbin/update-monitor-position
#!/bin/bash
# -------------------------------------------------
# Get monitors configuration from monitor.xml and apply it for current user session.
# In case of multiple definitions in monitor.xml only first one is used.
#
# See http://bernaerts.dyndns.org/linux/74-ubuntu/309-ubuntu-dual-display-monitor-position-lost
# for instructions
#
# Parameters :
# $1 : profile name, loaded from $HOME/.config/monitors-$1.xml"
@sekwah41
sekwah41 / TestMappings.py
Created July 6, 2020 16:31
Test mc mappings made by the spreadsheet
import zipfile
import os
from os.path import expanduser, join, basename
#mcpzip = "de/oceanlabs/mcp/mcp_snapshot/20200706-unofficialsekwah-1.16.1/mcp_snapshot-20200706-unofficialtest-1.16.1.zip"
home = expanduser("~")
print(home)
# Start a vnc server
vncserver
# To get display numbers
vncserver -list
# If you are unable to connect externally with the ip you can do it this way
vncviewer -via username@ip localhost:displayid
@sekwah41
sekwah41 / Fabric Notes
Created January 31, 2019 22:30
Fabric Notes
$GRADLE_USER_HOME/caches/fabric-loom/mappings