Skip to content

Instantly share code, notes, and snippets.

View lynxluna's full-sized avatar
🎯
Focusing

Didiet lynxluna

🎯
Focusing
View GitHub Profile
param(
[string]$BaseDir = "C:\BuildTools",
[string]$WindowsSDKVersion = "10.0.22621.0",
[string]$VCToolsVersion = "14.39.33519",
[string]$TargetArch = "x64"
)
# Set base directories using the BaseDir parameter
$WindowsSDKDir = "$BaseDir\Windows Kits\10"
$VCToolsInstallDir = "$BaseDir\VC\Tools\MSVC\$VCToolsVersion\"
@lynxluna
lynxluna / animal.go
Created April 10, 2023 13:57
Animal Testing
package animal
const (
AnimalDog = iota
AnimalCat
AnimalBear
)
type Animal interface {
Speak() string
@lynxluna
lynxluna / main.c
Created January 19, 2023 18:22
OpenFile GTK
#include <gtk/gtk.h>
#define UNUSED_PARAMETER(param) (void) (param)
// Application State Data
struct app_data_t {
GtkWidget *parent_window;
GtkWidget *text_edit_view;
};
@lynxluna
lynxluna / watcom_mbed.patch
Last active May 19, 2022 22:13
MbedTLS OpenWatcom Patchs
diff -Nbaur mbedtls-3.1.0/include/mbedtls/mbedtls_config.h binfetch/mbedtls-3.1.0/include/mbedtls/mbedtls_config.h
--- mbedtls-3.1.0/include/mbedtls/mbedtls_config.h 2021-12-15 20:48:01.000000000 +0700
+++ binfetch/mbedtls-3.1.0/include/mbedtls/mbedtls_config.h 2022-05-20 01:50:44.000000000 +0700
@@ -2440,7 +2440,7 @@
*
* This module provides networking routines.
*/
-#define MBEDTLS_NET_C
+//#define MBEDTLS_NET_C
@lynxluna
lynxluna / main.go
Created January 1, 2022 11:22
Go sign & verify, PHP verify
package main
import (
"crypto"
"crypto/rand"
"crypto/rsa"
"crypto/sha256"
"crypto/x509"
"encoding/base64"
"encoding/pem"
@lynxluna
lynxluna / init.vim
Created December 21, 2021 08:23
NeoVim
if &compatible
set nocompatible
endif
" Add the dein installation directory into runtimepath
set runtimepath+=~/.cache/dein/repos/github.com/Shougo/dein.vim
if dein#load_state('~/.cache/dein')
call dein#begin('~/.cache/dein')
"call dein#add('godlygeek/tabular')
@lynxluna
lynxluna / krip.go
Created November 24, 2021 02:39
AES-CBC-256 Crypto with Go
package main
import (
"bufio"
"bytes"
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"crypto/sha256"
"encoding/hex"
@lynxluna
lynxluna / pcx2bit.asm
Last active February 28, 2021 15:36
Open and read to stack
; vi: syntax=masm
.8086
.MODEL SMALL
CR EQU 0DH
LF EQU 0AH
; PCX Header Structure
; -not used at the moment
colors:
# Default colors
primary:
background: '#002b36' # base03
foreground: '#839496' # base0
# Cursor colors
cursor:
text: '#002b36' # base03
cursor: '#839496' # base0
colors:
# Default colors
primary:
background: '#002b36' # base03
foreground: '#839496' # base0
# Cursor colors
cursor:
text: '#002b36' # base03
cursor: '#839496' # base0