Skip to content

Instantly share code, notes, and snippets.

View default-work's full-sized avatar
🚩
work in progress

default-work

🚩
work in progress
View GitHub Profile
@default-work
default-work / prng.js
Created August 17, 2019 06:21 — forked from blixt/prng.js
A very simple, seedable JavaScript PRNG.
/**
* Creates a pseudo-random value generator. The seed must be an integer.
*
* Uses an optimized version of the Park-Miller PRNG.
* http://www.firstpr.com.au/dsp/rand31/
*/
function Random(seed) {
this._seed = seed % 2147483647;
if (this._seed <= 0) this._seed += 2147483646;
}
@default-work
default-work / caesar-cipher.markdown
Last active August 17, 2019 19:33
Caesar Cipher
@default-work
default-work / caesar-cipher-1.markdown
Last active August 18, 2019 05:44
Caesar Cipher +1
@default-work
default-work / caesar-cipher-1-period-4.markdown
Created August 18, 2019 06:47
Caesar Cipher + 1 (period 4)
@default-work
default-work / caesar-cipher-1-period-2.markdown
Created August 18, 2019 07:32
Caesar Cipher + 1 (period 2)
@default-work
default-work / caesar-cipher-1.markdown
Last active August 18, 2019 14:34
Caesar Cipher + 1
@default-work
default-work / sha1.js
Created September 21, 2019 14:14 — forked from romeoh/sha1.js
sha1.js
/*
* A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined
* in FIPS PUB 180-1
* Version 2.1a Copyright Paul Johnston 2000 - 2002.
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
* Distributed under the BSD License
* See http://pajhome.org.uk/crypt/md5 for details.
*/
/*
@default-work
default-work / windows10activation
Last active June 23, 2020 12:52
Activate Windows 10 without Any Activator
1. Open CMD as Administrator
2. Paste the following commands into the Cmd: One by one, follow the order.
cscript slmgr.vbs /ipk "SERIAL NUMBER HERE"
NEW Windows 10 Pro key: B8PRC-NPMMP-DMQR3-R8JQQ-WQKTT
https://vk.com/kluchi_dlya_kaspesky_windows10
Replace SERIAL NUMBER HER with any of these, according your Windows 10 installation type.
@default-work
default-work / make_iso.sh
Created June 12, 2020 16:10
Install macOS 10.15 Catalina on VMware
# Create a DMG Disk Image
hdiutil create -o /tmp/Catalina -size 8500m -volname Catalina -layout SPUD -fs HFS+J
# Mount it to your macOS
hdiutil attach /tmp/Catalina.dmg -noverify -mountpoint /Volumes/Catalina
# Create macOS Catalina Installer
sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/Catalina --nointeraction
# Unmount Catalina Disk
hdiutil detach /volumes/Install\ macOS\ Catalina
@default-work
default-work / KMS_office.cmd
Created June 23, 2020 12:42 — forked from CHEF-KOCH/KMS_office.cmd
KMS server Windows
@echo off
title Microsoft Office 2019 versions are supported!&cls&echo
============================================================================&echo
#Project: Activating Microsoft software products for FREE without software&echo
============================================================================&echo.&echo
#Supported products:&echo - Microsoft Office Standard 2019&echo - Microsoft Office Professional Plus 2019&echo.&echo.&(if exist
"%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office16")&(if exist
"%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16")&(for /f %%x in ('dir /b
..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&(for /f %%x in ('dir /b
..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&echo.&echo