Skip to content

Instantly share code, notes, and snippets.

View NiKiZe's full-sized avatar

Christian I. Nilsson NiKiZe

View GitHub Profile

Keybase proof

I hereby claim:

  • I am NiKiZe on github.
  • I am nikize (https://keybase.io/nikize) on keybase.
  • I have a public key whose fingerprint is 0B3A 1343 287D F38B 0822 258B FFF9 6968 A092 E5DC

To claim this, I am signing this object:

@TITLE Start install
@call :getips
@echo Hostname:%HOSTNAME%
@echo IP: %IP%
@echo Mask: %MASK%
@echo Gateway: %GATEWAY%
@echo MAC: %MAC%
@echo.
@echo. > %systemroot%\hwids.post
for a in *; do [ -d "$a" ] && [ -d "$a/.git" ] && pushd . && cd "$a" && echo $a && git status && popd; done
// ==UserScript==
// @name PlacePaintBot
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Big Bitcoin logo on r/place. Final result- http://imgur.com/a/OXy65
// @author mbarkhau, modified by random003
// @match https://www.reddit.com/place?webview=true
// @grant none
// ==/UserScript==
#include <SPI.h>
#define sSS 2
#define sCLK 3
#define sDOUT 4
#define sDIN 5
#define sZERO 7
#define sCF 8
@NiKiZe
NiKiZe / backup.sh
Last active June 30, 2022 21:44
Linux system backup
# from https://wiki.archlinux.org/title/Full_system_backup_with_tar
# -p, --acls and --xattrs store all permissions, ACLs and extended attributes.
# Without both of these, many programs will stop working!
# It is safe to remove the verbose (-v) flag. If you are using a
# slow terminal, this can greatly speed up the backup process.
#--exclude-from=$exclude_file
tar --exclude=/tmp/* --exclude=/var/tmp/* --exclude=/usr/portage/* --acls --xattrs --one-file-system -cpvf - . | xz -zvv -T3 -0 > file.xz
restore:
xz | tar --acls --xattrs --numeric-owner -xpf -
@NiKiZe
NiKiZe / dnsmasq.conf
Last active January 27, 2024 06:16
Trying to chainload iPXE with full feature set from a lesser featured one. dnsmasq ProxyDHCP edition
# Known working dnsmasq version 2.85 config for iPXE proxydhcp usage
# things to replace:
# * 10.1.1.0 - your subnet
# * eth0 - interface to listen on, or switch to bind-dynamic
# * 10.1.1.2 - your tftp server ip
# * http://gentoo.ipxe.se/boot.ipxe - script to run once inside iPXE
# Debug logging
log-debug
@NiKiZe
NiKiZe / dhcpd.conf
Created August 6, 2021 14:23 — forked from robinsmidsrod/dhcpd.conf
Trying to chainload iPXE with full feature set from a lesser featured one, whilst still being able to boot non-supported cards with UNDI
ddns-update-style none;
deny bootp; #default
authoritative;
include "/etc/dhcp/ipxe-option-space.conf";
# GREEN (private network)
subnet 10.1.1.0 netmask 255.255.255.0 {
range 10.1.1.100 10.1.1.199;
option subnet-mask 255.255.255.0;
@NiKiZe
NiKiZe / README.md
Created September 2, 2021 16:51
VB.NET Inheritance default
    public interface IName
    {
        /// <summary>Default property override</summary>
        [System.Runtime.CompilerServices.IndexerName("_Item")]
        object this[string key] { get; }
    }

    public class ImplNameCs : IName
 {