Skip to content

Instantly share code, notes, and snippets.

:octocat:
hello world

vizee vizee

:octocat:
hello world
Block or report user

Report or block vizee

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
@vizee
vizee / appime.c
Last active Aug 24, 2019
hook Apps key to switch IME
View appime.c
/*
gcc -std=c99 -O3 -Wall -Werror \
-DUNICODE \
-o $@ $^ \
-lkernel32 -luser32 \
-Wl,--subsystem,windows,--gc-sections,--strip-all
*/
#include <windows.h>
static HHOOK kbd_hook = NULL;
@vizee
vizee / dupfile.go
Created Sep 17, 2018
find duplicated file
View dupfile.go
package main
import (
"crypto/md5"
"crypto/sha1"
"crypto/sha256"
"encoding/hex"
"flag"
"fmt"
"io/ioutil"
View xxtea.go
package xxtea
import (
"unsafe"
)
const _DELTA = 0x9e3779b9
func EncryptBytes(m []byte, k *[4]uint32) {
if len(m) < 8 {
View enable-bbr.sh
if [ -z `lsmod | grep bbr` ]; then
modprobe tcp_bbr
echo "tcp_bbr" >> /etc/modules-load.d/modules.conf
fi
if [ -z `sysctl net.ipv4.tcp_congestion_control | grep bbr` ]; then
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p
fi
@vizee
vizee / lgb.sh
Created Oct 13, 2017
linux go build
View lgb.sh
#!/bin/bash
set -e
hook=
if [ "$1" == "-c" ]; then
hook=$2
shift 2
fi
@vizee
vizee / emailnotifier.go
Created Oct 1, 2017
smtp tls connection
View emailnotifier.go
package emailnotifier
import (
"crypto/tls"
"fmt"
"net"
"net/smtp"
"strings"
"sync"
)
@vizee
vizee / gensyscall.go
Created Aug 12, 2017
generate linux amd64 syscall
View gensyscall.go
package main
import (
"flag"
"fmt"
"go/ast"
"go/parser"
"go/token"
"html/template"
"io/ioutil"
@vizee
vizee / mtrnd.go
Created Jul 29, 2017
go thread-safe rand
View mtrnd.go
package mtrnd
import (
"math/rand"
"sync"
"time"
"github.com/vizee/asm/hack"
)
@vizee
vizee / drawtext.cs
Created Jul 16, 2017
排版文字生成透明 png
View drawtext.cs
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.IO;
namespace drawtext
{
class Program
You can’t perform that action at this time.