Skip to content

Instantly share code, notes, and snippets.

bronze1man

Block or report user

Report or block bronze1man

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bronze1man
bronze1man / AesCtr.cs
Last active Jun 5, 2019
c# aes ctr implement works on vs2017/uwp , seen testRun for usage example.
View AesCtr.cs
using System.Security.Cryptography;
using System.Diagnostics;
using System;
using System.Runtime.InteropServices.WindowsRuntime;
namespace abc {
public sealed class AesCtr {
public static void testRun() {
for (var i2 = 0; i2 < 3; i2++) {
var outputV = Encrypt(new byte[32], new byte[16], new byte[30]);
@bronze1man
bronze1man / winDivert-md5.json
Last active May 20, 2019
md5 of all pre-built winDivert dll sys exe
View winDivert-md5.json
{
"007a3ae3f03fb18c2cab1e0c97c45a20": [
"WinDivert-1.4.0-rc-A-MINGW.zip/WinDivert-1.4.0-rc-A-MINGW/x86_64/WinDivert64.sys",
"WinDivert-1.4.0-rc-A-MINGW.zip/WinDivert-1.4.0-rc-A-MINGW/x86/WinDivert64.sys",
"WinDivert-1.4.0-rc-A-WDDK.zip/WinDivert-1.4.0-rc-A-WDDK/x86_64/WinDivert64.sys",
"WinDivert-1.4.0-rc-A-WDDK.zip/WinDivert-1.4.0-rc-A-WDDK/x86/WinDivert64.sys",
"WinDivert-1.4.1-A-MINGW.zip/WinDivert-1.4.1-A-MINGW/x86_64/WinDivert64.sys",
"WinDivert-1.4.1-A-MINGW.zip/WinDivert-1.4.1-A-MINGW/x86/WinDivert64.sys",
"WinDivert-1.4.1-A-WDDK.zip/WinDivert-1.4.1-A-WDDK/x86_64/WinDivert64.sys",
"WinDivert-1.4.1-A-WDDK.zip/WinDivert-1.4.1-A-WDDK/x86/WinDivert64.sys",
@bronze1man
bronze1man / android-studio复原.md
Last active Sep 26, 2015
git拉取到的android studio项目,在androidstudio里面可以打版本
View android-studio复原.md

选择 File->New->Import Files... 然后选择android项目根目录.

image

View go_scp.go
// https://blogs.oracle.com/janp/entry/how_the_scp_protocol_works
package main
import (
"code.google.com/p/go.crypto/ssh"
"crypto"
"crypto/rsa"
"crypto/x509"
"encoding/pem"
"fmt"
@bronze1man
bronze1man / gist:9050632
Created Feb 17, 2014
go-lang-idea-plugin StackOverflowError
View gist:9050632
null
java.lang.StackOverflowError
at com.intellij.openapi.application.impl.ApplicationImpl.isReadAccessAllowed(ApplicationImpl.java:1055)
at com.intellij.openapi.application.impl.ApplicationImpl.assertReadAccessAllowed(ApplicationImpl.java:1024)
at com.intellij.psi.impl.source.tree.CompositeElement.textToCharArray(CompositeElement.java:282)
at com.intellij.psi.impl.source.tree.CompositeElement.getText(CompositeElement.java:253)
at com.intellij.extapi.psi.ASTDelegatePsiElement.getText(ASTDelegatePsiElement.java:133)
at ro.redeul.google.go.lang.psi.impl.toplevel.GoTypeNameDeclarationImpl.getName(GoTypeNameDeclarationImpl.java:48)
at ro.redeul.google.go.lang.psi.resolve.TypeNameResolver.checkReference(TypeNameResolver.java:38)
at ro.redeul.google.go.lang.psi.resolve.TypeNameResolver.visitTypeSpec(TypeNameResolver.java:24)
View git-submodule-rm.sh
#!/bin/bash
function actual_path() {
if [ [ -z "$1" ] -a [ -d $1 ] ]; then
echo $(cd $1 && test `pwd` = `pwd -P`)
return 0
else
return 1
fi
}
You can’t perform that action at this time.