Skip to content

Instantly share code, notes, and snippets.

View olback's full-sized avatar
🦀
https://youtu.be/LDU_Txk06tM

Edwin olback

🦀
https://youtu.be/LDU_Txk06tM
View GitHub Profile

Keybase proof

I hereby claim:

  • I am olback on github.
  • I am olback (https://keybase.io/olback) on keybase.
  • I have a public key ASAD_knVRTb7noJn-iWJqJHgN5qEakJn5nlw1IyBqZN0rwo

To claim this, I am signing this object:

/**
* SQLite Blogger Main JS
* github.com/olback/sqlite-blogger
*/
window.onload = () => {
// Tell the user if the search box is empty
const searchBox = document.getElementById('search');
document.getElementById('search-submit').onclick = () => {
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs)
# Set 'status' segment colors
POWERLEVEL9K_STATUS_CROSS=true
POWERLEVEL9K_STATUS_OK_BACKGROUND=234
POWERLEVEL9K_STATUS_ERROR_BACKGROUND=234
# root indicator
POWERLEVEL9K_ROOT_INDICATOR_BACKGROUND=232
#POWERLEVEL9K_ROOT_INDICATOR_FOREGROUND=202
trait ToKey {
fn to_key(&self) -> Vec<u8>;
}
impl ToKey for [u8; 32] {
fn to_key(&self) -> Vec<u8> {
(&self[..]).to_key()
}
}
@olback
olback / ae2_processors.sfml
Last active July 24, 2022 01:38
Super Factory Manager scripts
name "AE2 Processors"
-- Silicon to stage_1
every 20 ticks do
input "ftbic:silicon"
from stage_0
output retain 1 to each stage_1 north side
end
-- Redstone to stage_3
@olback
olback / docker-compose.yml
Created June 25, 2023 20:42
docker+postgres+pgadmin dev env
version: "3.8"
services:
db:
image: postgres:15-alpine
container_name: local_pgdb
restart: unless-stopped
ports:
- "5432:5432"
environment:
POSTGRES_USER: pg
@olback
olback / Makefile
Created December 28, 2023 19:20
Simple query-parameter parser in c++
CLFAGS=-std=c++17 -g -O1 -flto -fPIE -pie -Wall -Wextra -fno-omit-frame-pointer -fsanitize=address,leak,undefined
SRC=main.cpp
CXX=clang++
query-param-thing: $(SRC)
$(CXX) $(CLFAGS) -o query-param-thing $(SRC)