Skip to content

Instantly share code, notes, and snippets.

@mihalyr
mihalyr / forensics-cheatsheet.md
Created January 29, 2020 14:15
Linux Compromise Assessment Command Cheat Sheet
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active January 6, 2025 02:12
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
NECの無線LANルータをブリッジモードで動作させるときに、管理画面に接続する方法をまとめる
(説明書が分かりづらいうえに誤解を招く表現になっている)
AtermWG1400HPで確認した。
用意するもの:
- Aterm本体
- 設定用の端末
- 有線LANを強く推奨(無線LANの設定をいじるので)
@PaulThaAlien
PaulThaAlien / Get Media on OnlyFans.js
Created June 8, 2024 13:19
This script is really simple. Go to the site click on a image or video and hit download. ;)
// ==UserScript==
// @name Get Media on OnlyFans
// @namespace http://tampermonkey.net/
// @version 0.11
// @description Get all media on OF
// @author PaulAlien
// @match https://onlyfans.com/*
// @grant none
// @license MIT
// ==/UserScript==
@pguetan
pguetan / discount.js
Created December 4, 2012 17:37
Paypal Coupon Script
<!--
var discnt = 0; // no default percent discount
eval(function(p,a,c,k,e,r){e=String;if(!''.replace(/^/,String)){while(c--)r[c]=k[c]||c;k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('0 1=2 3("4","5","6");',7,7,'var|coupons|new|Array|coup1|coup2|coup3'.split('|'),0,{}))
var coupdc = new Array ( // place to put discounts for coupon vals
5,
10,
15

Volar 2.0 "Link"

I am Johnson, the author of Volar (now known as Vue Language Tools), and we released version 2.0 in March this year. This article will introduce you to the improvements and development experiences brought by 2.0.

Why 2.0?

In Vetur and Volar v1, we implemented Vue's IDE support through the Language Server Protocol (LSP), which works well for most small to medium-sized Vue projects, but there may be problems for very large projects.

TS Server and Vue Language Server are using double the memory

Foreward

This document was originally written several years ago. At the time I was working as an execution core verification engineer at Arm. The following points are coloured heavily by working in and around the execution cores of various processors. Apply a pinch of salt; points contain varying degrees of opinion.

It is still my opinion that RISC-V could be much better designed; though I will also say that if I was building a 32 or 64-bit CPU today I'd likely implement the architecture to benefit from the existing tooling.

Mostly based upon the RISC-V ISA spec v2.0. Some updates have been made for v2.2

Original Foreword: Some Opinion

The RISC-V ISA has pursued minimalism to a fault. There is a large emphasis on minimizing instruction count, normalizing encoding, etc. This pursuit of minimalism has resulted in false orthogonalities (such as reusing the same instruction for branches, calls and returns) and a requirement for superfluous instructions which impacts code density both in terms of size and

@fionn
fionn / 57.txt
Last active January 6, 2025 01:51
Cryptopals problems 57 to 66
// ------------------------------------------------------------
57. Diffie-Hellman Revisited: Subgroup-Confinement Attacks
This set is going to focus on elliptic curves. But before we get to
that, we're going to kick things off with some classic Diffie-Hellman.
Trust me, it's gonna make sense later.
@MartinEesmaa
MartinEesmaa / youtube_formats.md
Last active January 6, 2025 01:51 — forked from AgentOak/youtube_formats.md
Youtube Format IDs

Note: This is all almost full YouTube ID informations. Original owner goes to AgentOak, modified version by Martin Eesmaa.

See the credits and also special thanks in below.

Last updated: December 2024

Also known as itag or format codes and way back they could be specified with the fmt parameter (e.g. &fmt=22). Depending on the age and/or popularity of the video, not all formats will be available.

DASH video

@natmchugh
natmchugh / Montgomery.py
Created January 12, 2016 21:08
Montgomery Ladder
import random
class Montgomery:
# B*v^2 = u^3 + A*u^2 + u
def __init__(self, A, B, p):
self.A = A
self.B = B
self.p = p