Skip to content

Instantly share code, notes, and snippets.

Avatar
🌴
Good life

TACIXAT TACIXAT

🌴
Good life
View GitHub Profile
@TACIXAT
TACIXAT / checker.go
Last active May 23, 2022
Golang Application Specific Static Analysis - Checks if a funtion calls mismatched error functions
View checker.go
package main
import (
"flag"
"fmt"
"go/ast"
"go/parser"
"go/token"
"log"
)
@TACIXAT
TACIXAT / cloudflare.go
Created Feb 11, 2022
Golang Cloudflare Images Boilerplate Code
View cloudflare.go
package main
import (
"bytes"
"crypto/hmac"
"crypto/sha256"
"encoding/hex"
"encoding/json"
// "mime/multipart"
"errors"
@TACIXAT
TACIXAT / main.go
Created Sep 6, 2021
babuk nas decryptor
View main.go
package main
import (
"fmt"
"os"
"path/filepath"
"strings"
"crypto/sha256"
@TACIXAT
TACIXAT / main.go
Created Sep 6, 2021
babuk nas encryptor
View main.go
package main
import (
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
"runtime"
"strings"
@TACIXAT
TACIXAT / stat_offsets.c
Created Aug 10, 2021
print values, offsets, sizes for members of struct stat
View stat_offsets.c
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
void
fstat_filesize(const char *filename)
{
int fd;
@TACIXAT
TACIXAT / carom.pyde
Created May 18, 2021
Visualization of cue ball departure angles in Processing3d.
View carom.pyde
import math
def setup():
size(1000, 1000)
background(0x33, 0x66, 0x00)
# carom
DIAMETER = 61.0 # mm
RADIUS = DIAMETER / 2
@TACIXAT
TACIXAT / obj.go
Created Sep 13, 2020
ASM instruction builder in Golang.
View obj.go
package main
/*
This legend twitchyliquid64 mirrored cmd/internal/obj as an importable package.
Use the instruction builder then assemble. More examples in their repo.
*/
import (
asm "github.com/twitchyliquid64/golang-asm"
"github.com/twitchyliquid64/golang-asm/obj"
@TACIXAT
TACIXAT / winjit.go
Created Sep 12, 2020
Windows Executable JIT Memory in Golang
View winjit.go
package main
// Executable memory / JIT in Golang for Windows
// Linux see:
// https://medium.com/kokster/writing-a-jit-compiler-in-golang-964b61295f
import (
"log"
"reflect"
"syscall"
View keybase.md

Keybase proof

I hereby claim:

  • I am tacixat on github.
  • I am tacixat (https://keybase.io/tacixat) on keybase.
  • I have a public key ASCLJgLNP5WO43MhMW0X8nvg4aIX1KQS1tUgb-zuHkARZAo

To claim this, I am signing this object:

@TACIXAT
TACIXAT / manticore_challenge.c
Created May 5, 2017
A small challenge to get familiar with Manticore
View manticore_challenge.c
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
int check_char_0(char chr) {
register uint8_t ch = (uint8_t) chr;
ch ^= 97;
if(ch != 92) {