Skip to content

Instantly share code, notes, and snippets.

@developer191
developer191 / reply-to-empty-udp.py
Created May 9, 2023 14:52 — forked from Manouchehri/reply-to-empty-udp.py
Simple Python UDP echo server
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
# Author: David Manouchehri <manouchehri@protonmail.com>
# This script will always echo back data on the UDP port of your choice.
# Useful if you want nmap to report a UDP port as "open" instead of "open|filtered" on a standard scan.
# Works with both Python 2 & 3.
import socket
@developer191
developer191 / dump_vmcs.js
Created April 4, 2023 11:01 — forked from tandasat/dump_vmcs.js
!dump_vmcs: Windbg JavaScript to dump values of the current VMCS for Hyper-V debugging
"use strict";
// This script implements the !dump_vmcs command that displays values of the all
// fields in the current VMCS. The processor must be in VMX-root operation with
// an active VMCS.
//
// As a reference, there are some other implementations of the same concept. The
// author is now aware of those two at least. Check them out as it may fit your
// need better.
// - https://github.com/ergot86/crap/blob/main/hyperv_stuff.js (Windbg JavaScript)
@developer191
developer191 / acme.md
Created December 26, 2022 14:09 — forked from nickleefly/acme.md
shadowsocks v2ray-plugin nginx with docker-compose
export CF_Key="sdfsdfsdfljlbjkljlkjsdfoiwje"
export CF_Email="xxxx@sss.com"
~/.acme.sh/acme.sh --issue -d 'example.com' -d '*.example.com' --dns dns_cf -k ec-256
~/.acme.sh/acme.sh --issue --dns dns_cf -d subdomain.example.com
@developer191
developer191 / docker.sh
Created November 13, 2022 07:59 — forked from monkeym4ster/docker.sh
Docker: save/load container using tgz file (tar.gz)
#for not running docker, use save:
docker save <dockernameortag> | gzip > mycontainer.tgz
#for running or paused docker, use export:
docker export <dockernameortag> | gzip > mycontainer.tgz
#load
gunzip -c mycontainer.tgz | docker load
docker load -i mycontainer.tgz
SQL Server 2017
----------------
Enterprise Core - 6GPYM-VHN83-PHDM2-Q9T2R-KBV83
Developer - 22222-00000-00000-00000-00000
Enterprise - TDKQD-PKV44-PJT4N-TCJG2-3YJ6B
Standard - PHDV4-3VJWD-N7JVP-FGPKY-XBV89
Web - WV79P-7K6YG-T7QFN-M3WHF-37BXC
https://www.teamos-hkrg.com/index.php?threads/microsoft-sql-server-english-2017-rtm-teamos.42103/
@developer191
developer191 / Fedora34Hibernation.md
Created November 13, 2021 14:16 — forked from eloylp/Fedora35Hibernation.md
Fedora 34 hibernation with swapfile, only for hibernation and resume

Fedora34 hibernation

This guide helps to configure the hibernation on a default Fedora34 installation by using a swap file. The Fedora34 installation comes with btrfs as default filesystem. Also, it comes with a zram swap device:

$ swapon
NAME       TYPE      SIZE USED PRIO
/dev/zram0 partition   8G   0B  100
@developer191
developer191 / CentOS-Base.repo
Created September 22, 2021 08:49 — forked from yogeshlonkar/CentOS-Base.repo
CentOS 5.x yum repos
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
@developer191
developer191 / CentOS7_min_desktop_setup.txt
Last active May 15, 2021 10:26 — forked from shaunhess/CentOS7_min_desktop_setup.txt
CentOS7 Minimal Desktop Installation
1. Install CentOS 7 - Minimal
2. yum groupinstall "X Window System"
3. yum install gnome-classic-session gnome-terminal nautilus-open-terminal control-center liberation-mono-fonts
4. systemctl set-default graphical.target
5. systemctl isolate graphical.target
@developer191
developer191 / shadowsocks_ubuntu1604.org
Created May 1, 2021 09:39 — forked from nuhuo08/shadowsocks_ubuntu1604.org
Install Shadowsocks-libev + simple-obfs on Ubuntu 16.04

Install Shadowsocks-libev + simple-obfs on Ubuntu 16.04

Install shadowsocks-libev via Ubuntu PPA

sudo apt-get install software-properties-common -y
sudo add-apt-repository ppa:max-c-lv/shadowsocks-libev -y
sudo apt-get update
sudo apt install shadowsocks-libev
@developer191
developer191 / chrome_profiler.h
Created March 31, 2021 17:48 — forked from callumpoole/chrome_profiler.h
Basic Instrumentation Profiler
//
// Basic instrumentation profiler by Cherno
// Source: Yan Chernikov TheCherno https://gist.github.com/TheCherno/31f135eea6ee729ab5f26a6908eb3a5e
// Modified by: davechurchill https://pastebin.com/qw5Neq4U
// Modified again by: Myself (Callum Poole)
//
// URL: chrome://tracing/
#pragma once