Skip to content

Instantly share code, notes, and snippets.

View Paper-Folding's full-sized avatar

Paper-Folding

  • China
View GitHub Profile
@Paper-Folding
Paper-Folding / ParseRSAKeys.java
Created September 3, 2024 13:21 — forked from destan/ParseRSAKeys.java
Parse RSA public and private key pair from string in Java
import java.io.IOException;
import java.net.URISyntaxException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.security.KeyFactory;
import java.security.NoSuchAlgorithmException;
import java.security.PrivateKey;
import java.security.interfaces.RSAPublicKey;
import java.security.spec.InvalidKeySpecException;
import java.security.spec.PKCS8EncodedKeySpec;
@Paper-Folding
Paper-Folding / gitProxy.md
Created August 8, 2024 06:03 — forked from matinrco/gitProxy.md
Configure git/ssh to use socks/http proxy in windows, linux & wsl2

Windows

Add this to your ssh config file ( which is located in %USERPROFILE%\.ssh\config ) or create one if it's missing:

Http proxy & repo access via ssh:

Host *
    ProxyCommand "C:/Program Files/Git/mingw64/bin/connect.exe" -H {proxyserver}:{port} %h %p

or (for specific host name)

Host gitlab.com
'use strict';
/** Base class for generic event handling.
* @example
*
* // Don’t forget to call `super()` if defining a constructor.
* class Foo extends Eventable {}
* let foo = new Foo();
*
* foo.on('bar', (data) => console.log(data));
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>3d button</title>
<style>
.pushable {
@Paper-Folding
Paper-Folding / omg.txt
Last active October 7, 2021 03:43
网页url特殊字符读取测试用例
&=''+++#2-={' &^',,='%23; %20= }};=+[=; %20$%23,,--%#``#`2@)`,@1^~@+~{(~2]#
@Paper-Folding
Paper-Folding / only.md
Last active October 14, 2021 13:06
正阶魔方所有公式

二阶~无穷大阶魔方所有公式

三阶基础:

  1. 第四步(顶十字防忘):
    F R U R' U' F'
  2. 第五步(顶面防忘):
    顶块在右,鱼头左下:R U R' U R U U R'
    顶块在左,鱼头左上:R U' R U' R U' U' R
  3. 第六步(顶角防忘):(顶面朝自己,同色边块朝右) R R D D R' U' R D D R' U R'
  4. 第七步(顶棱防忘):R U' R U R U R U' R' U' R R