Skip to content

Instantly share code, notes, and snippets.

@fish0185
fish0185 / XpSerials.txt
Last active December 2, 2023 04:33 — forked from denizssch/XpSerials.txt
Windows XP ALL Serial Keys :) (For testing purpose [Ex: VM or PenTest])
Serial: MRX3F-47B9T-2487J-KWKMF-RPWBY
Thank you very much sir!
M8DPF-XT324-YBKK9-3VF8C-M2X78 worked for windows xp pro 32 bit, downloaded the iso from here:
https://archive.org/details/WinXPProSP3x86
https://archive.org/download/WinXPProSP3x86/en_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-73974.iso
For a VM on proxmox. You saved the day!
@fish0185
fish0185 / README.md
Created October 23, 2023 13:25 — forked from zhiguangwang/README.md
Installing and running shadowsocks on Ubuntu Server

Installing and running shadowsocks on Ubuntu Server

16.10 yakkety and above

  1. Install the the shadowsocks-libev package from apt repository.

     sudo apt update
     sudo apt install shadowsocks-libev
    
  2. Save ss.json as /etc/shadowsocks-libev/config.json.

@fish0185
fish0185 / synology.startup
Created May 16, 2023 22:40 — forked from SanCoder-Q/synology.startup
Synology NAS - How to make a program run at startup
Synology NAS - How to make a program run at startup
The other day I created a little node.js project to keep track of some finances. Synology has a node.js package but that just installs the tools - it has no 'container' or any other support to drop files and have it run automagically. Maybe one day.
In the meantime, you can start your project when you SSH into the NAS. My project has a 'www' script which bootstraps my project, so to start I simply type 'node bin/www' from the project directory. But, it only runs while I'm logged in, and if I log out for any reason, the process dies. That's hardly useful when I'm away from home, or on a different PC. So I decided to have a look at starting my project as a Linux service.
After doing a lot of research into how Synology does services, and a few failed attempts at init scripts, I found that Synology DSM (since version 5 perhaps) bundles Upstart, which is a neat little tool to deal with services on Linux. It's most prevalent on Debian and derivatives (notably Ub
@fish0185
fish0185 / task scheduler
Last active August 30, 2021 13:12
#windowstask
select one time at Trigger and select repeat
https://stackoverflow.com/a/45287938
Action
Start a program
Program/Script: C:\Users\gary\AppData\Roaming\nvm\v14.17.4\node.exe
Add arguments: C:\Dev\piao\action.js
@fish0185
fish0185 / cs
Created August 25, 2018 01:47
[Console Encoding C#] #CSharp
https://kancane.nl/how-to-enable-encoding-code-page-1252-in-dotnet-core/
full .net framework
Console.OutputEncoding = Encoding.GetEncoding(936);
dotnet core
Install-Package System.Text.Encoding.CodePages -Version 4.5.0
EncodingProvider provider = CodePagesEncodingProvider.Instance;
Encoding.RegisterProvider(provider);
Console.OutputEncoding = Encoding.GetEncoding("GB2312"); // chinese
@fish0185
fish0185 / dockerfile
Created July 31, 2018 03:36
[Dockerfile - java aws] #dockerfile #java #awscli
FROM ubuntu:16.04
RUN \
apt-get update \
&& apt-get install -y --no-install-recommends \
python \
python-pip \
python-yaml \
jq \
oracle-java8-installer
@fish0185
fish0185 / dockerfile
Created July 31, 2018 03:34
[Dockerfile - serverless] #dockerfile
FROM node:alpine
RUN apk update
RUN apk upgrade
RUN apk add --no-cache --update \
python \
py-pip \
python3 \
groff \
less \
mailcap \
@fish0185
fish0185 / dockerfile
Created July 31, 2018 03:23
[Dockerfile] #node #docker #dockerfile #awscli
FROM node:8.11-alpine
RUN apk -v --update add \
python \
py-pip \
groff \
less \
mailcap \
&& \
pip install --upgrade awscli==1.14.5 s3cmd==2.0.1 python-magic && \
apk -v --purge del py-pip && \
@fish0185
fish0185 / introrx.md
Created May 30, 2018 12:13 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing