Skip to content

Instantly share code, notes, and snippets.

View aicam's full-sized avatar

ali risheh aicam

  • Cal State, LA
View GitHub Profile
@Aokromes
Aokromes / gist:cb3f80d5b84169cd6a01223833e6eda2
Last active December 1, 2023 19:50
how to compile and setup trinitycore 3.3.5a and 4.3.4 on debian linux
#######################################
# HOW TO COMPILE TRINITYCORE ON LINUX #
#######################################
#####################
# TRINITYCORELEGACY #
#####################
###########################
# TRINITYCORE SETUP GUIDE #
@chuwilliamson
chuwilliamson / imgui_impl_glfw_gl3.h
Created September 13, 2018 19:13
imgui_impl_glfw_gl3.h
// ImGui GLFW binding with OpenGL3 + shaders
// You can copy and use unmodified imgui_impl_* files in your project. See main.cpp for an example of using this.
// If you use this binding you'll need to call 4 functions: ImGui_ImplXXXX_Init(), ImGui_ImplXXXX_NewFrame(), ImGui::Render() and ImGui_ImplXXXX_Shutdown().
// If you are new to ImGui, see examples/README.txt and documentation at the top of imgui.cpp.
// https://github.com/ocornut/imgui
#pragma once
struct GLFWwindow;
@firyalff
firyalff / base64S3Upload.go
Created July 18, 2018 08:25
Upload base64 encoded file to S3 using go and AWS SDK
package main
import (
"bytes"
"encoding/base64"
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/session"
@jdumont0201
jdumont0201 / convolutions.py
Last active July 2, 2020 20:09
Image processing with convolutions in Python
import cv2
import numpy as np
img = cv2.imread('images/input.jpg')
gray=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
rows,cols = img.shape[:2]
cv2.imshow('Original',img)
@miguelmota
miguelmota / rsa_util.go
Last active April 21, 2024 15:10
Golang RSA encrypt and decrypt example
package ciphers
import (
"crypto/rand"
"crypto/rsa"
"crypto/sha512"
"crypto/x509"
"encoding/pem"
"log"
)
@yowu
yowu / HttpProxy.go
Last active March 28, 2024 12:47
A simple HTTP proxy by Golang
package main
import (
"flag"
"io"
"log"
"net"
"net/http"
"strings"
)
@karpathy
karpathy / min-char-rnn.py
Last active April 25, 2024 06:24
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
@pettazz
pettazz / reset_vms.sh
Last active November 9, 2020 09:01
bash script for deleting and re-cloning VirtualBox VMs from existing base images
#!/bin/bash
function reset_vm {
echo -e "\e[0;32m\n\nresetting $1...\n\n\e[00m"
echo -e "\e[0;34mpoweroff\e[00m"
vboxmanage controlvm "$1 - active" poweroff
sleep 5s
echo -e "\e[0;34munregister\e[00m"
vboxmanage unregistervm "$1 - active" --delete
echo -e "\e[0;34mclone\e[00m"