Skip to content

Instantly share code, notes, and snippets.

View superswan's full-sized avatar

Lem E. Tweakit superswan

  • HSBC
  • Error retrieving location data
View GitHub Profile
@superswan
superswan / UVPTK.md
Last active October 8, 2021 03:39
40hex #4 - Dec 1991: The Ultimate Virus Programmer's Toolkit

40Hex Issue 4 December 1991

The Ultimate Virus Programmers Toolkit


Just thought it would be funny to list what I think is the ulitmate virus programmers toolkit. Theroys may vary.
@superswan
superswan / idlerig.cs
Created August 8, 2021 06:34
Will spawn XMRig on system Idle
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.Timers;
@superswan
superswan / raspi.sh
Last active April 27, 2022 00:21
Script for raspberry pi emulation. Will create a QEMU vm with fresh raspian. https://azeria-labs.com/emulate-raspberry-pi-with-qemu/
#!/bin/sh
RED='\033[0;31m'
GREEN='\033[0;32m'
BLUE='\033[0;34m'
NC='\033[0m'
GIB_IN_BYTES="1073741824"
target="${1:-pi1}"

PlayStation 2 Directory

Database of all NTSC releases for the PlayStation2 console with download. 1500 games!

Downloads Available: 1496/1796

@superswan
superswan / ArchLinuxWSL2.md
Created January 27, 2022 19:20 — forked from ld100/ArchLinuxWSL2.md
Steps for setting up Arch Linux on WSL2

Migrating from Ubuntu on WSL to ArchLinux on WSL2

Upgrading to WSL 2

  • Download WSL2 Kernel
  • run wsl --set-default-version 2 in windows command line, so that all future WSL machine will use WSL2.

Installing Arch Linux

Ansible adhoc commands (One Liners)

Make a note of below assumptions for one liners explained on this page are as below,

User root - the superhero, superuser User normaluser - user that has root sudo privilege and all ansible required connectivity in place User user1 - user that has root sudo privilege

##Understanding basic differences in commands using various users with various rights

To run command on all servers to check reach ability from ansible point of view with 25 parallel forks with current user (i.e. root or normaluser)

@superswan
superswan / NFTContract.sol
Created August 10, 2022 00:27
NFT Contract Template - Pay to Mint
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
contract TREEMINTTEST is ERC721, ERC721URIStorage, ERC721URIStorage, Ownable {
@superswan
superswan / Sonicwall_ASN_Blocklist.md
Last active November 28, 2022 15:35
Block ASN on SonicWall via SSH CLI
<html>
<head>
<style>
body {
overflow-y: hidden; /* Hide vertical scrollbar */
overflow-x: hidden; /* Hide horizontal scrollbar */
}
#dvd {
position: absolute;
transform-origin: center center;