Skip to content

Instantly share code, notes, and snippets.

View bararchy's full-sized avatar

Bar Hofesh bararchy

View GitHub Profile
version: '3'
services:
db:
image: postgres
restart: always
environment:
POSTGRES_DB: bc
POSTGRES_USER: bc
POSTGRES_PASSWORD: bc
volumes:
@bararchy
bararchy / guide.md
Last active June 27, 2019 11:28
NexPloit-CLI End to End usage Guide

Installation

End-to-end guide to configure nexploit-cli environment.

nexploit-cli

Install and configure @neuralegion/nexploit-cli.

$ npm i -g @neuralegion/nexploit-cli
@bararchy
bararchy / shainet.cr
Created July 2, 2018 14:22
SHAInet .to_json Invalid mem access
Invalid memory access (signal 11) at address 0x7ffcd8a16ff8
[0x5567f6f7dbf6] *CallStack::print_backtrace:Int32 +118
[0x5567f6f6bb4b] __crystal_sigfault_handler +75
[0x7fd877f34a80] ???
[0x5567f701371e] *Float::Printer::DiyFP::from_f<Float64>:Float::Printer::DiyFP +14
[0x5567f7013663] *Float::Printer::DiyFP::from_f_normalized<Float64>:Float::Printer::DiyFP +19
[0x5567f70125f1] *Float::Printer::Grisu3 +113
[0x5567f700e89a] *Float::Printer +6890
[0x5567f700cd59] *Float::Printer +201
[0x5567f7000fd6] *Float64#to_s<IO+>:(IO+ | Nil) +6
@bararchy
bararchy / story.md
Last active June 4, 2018 10:33
Entrendaaon: a setting for highly modified 5th Ed D&D

< by Lee, aka Dr Pepper, grixit@yahoo.com >

History

The history of the world of Entrendaaon can be divided into 4 Ascendancies.

  • The Ascendancy of Spirit encompasses all of mortal development through what earthings would call the Stone Age and into the Bronze Age. In this period, the only non physical abilities known were related to animism. Shamans coaxed or traded favors with spirits of place, while individuals who could channel the personifications of natural forces became tribal leaders.

  • The Ascendancy of Spells replaced the Ascendancy of Spirit with the growth of nations along with the understanding of energy flows. Magicians learned to harness this energy directly from the environment. Clerics claimed they received energy from the Gods, beings far greater than any of the spirits. For the rest of the Bronze age, and into the Iron Age, wars increased in number and ferocity. Empires rose and fell, meanwhile the most powerful spellcasters became wizards, self sufficient and paranoid, and living

@bararchy
bararchy / keybase.md
Created May 13, 2018 07:01
keybase.md

Keybase proof

I hereby claim:

  • I am bararchy on github.
  • I am bararchy (https://keybase.io/bararchy) on keybase.
  • I have a public key ASB5NUX63EWNp3nfddcltelTwM0SMxZmhFtxVC2sV-HcRwo

To claim this, I am signing this object:

@[Link("cudnn")]
lib LibCUDNN
_MAJOR = 7
_MINOR = 1
_PATCHLEVEL = 2
_DIM_MAX = 8
_LRN_MIN_N = 1
_LRN_MAX_N = 16
_LRN_MIN_K = 1e-5
_LRN_MIN_BETA = 0.01
@bararchy
bararchy / url.cr
Created October 7, 2017 14:49
Example for url iteration
# First step, get an array of URLs
my_url = ["http://foo.com?bar=1&har=2&lar=3"]
# 2nd step, for each url parameter, create a new url with additional data in each parameter (single "A")
my_new_url = ["http://foo.com?bar=1A&har=2&lar=3", "http://foo.com?bar=1&har=2A&lar=3", "http://foo.com?bar=1&har=2&lar=3A"]
# last step, repeat step one and two to achive adiitional changes (Additional "A")
my_new_new_url = ["http://foo.com?bar=1AA&har=2&lar=3", "http://foo.com?bar=1&har=2AA&lar=3", "http://foo.com?bar=1&har=2&lar=3AA"]
crystal spec -D "-L /usr/lib/vmware-vix/Workstation-12.0.0/64bit/libvix.so"
/usr/bin/ld: cannot find -lvix
collect2: error: ld returned 1 exit status
Error: execution of command failed with code: 1: `cc "${@}" -o '/home/unshadow/.cache/crystal/crystal-run-spec.tmp' -rdynamic -lvix -lxml2 -lpcre -lm -lgc -lpthread /usr/lib/crystal/ext/libcrystal.a -levent -lrt -ldl -L/usr/lib -L/usr/local/lib`
crystal spec -D "-l/usr/lib/vmware-vix/Workstation-12.0.0/64bit/libvix.so"
/usr/bin/ld: cannot find -lvix
collect2: error: ld returned 1 exit status
Error: execution of command failed with code: 1: `cc "${@}" -o '/home/unshadow/.cache/crystal/crystal-run-spec.tmp' -rdynamic -lvix -lxml2 -lpcre -lm -lgc -lpthread /usr/lib/crystal/ext/libcrystal.a -levent -lrt -ldl -L/usr/lib -L/usr/local/lib`
@bararchy
bararchy / read.cr
Created April 28, 2017 18:43
sockets
require "socket"
spawn do
sock = TCPSocket.new("google.com", 443)
loop do
allocate_mem = Slice(UInt8).new(10)
size = sock.read(allocate_mem)
puts "#{allocate_mem[0, size]}"
puts "Socket is dead" if sock.closed?
@bararchy
bararchy / select.cr
Created April 23, 2017 18:13
slecet
def buffer_from_socket
buff = "" # buffer is empty
while IO.select([socket], nil,nil,5)
read_and_add_to_buff
end
return buff
end