Skip to content

Instantly share code, notes, and snippets.

View 13rac1's full-sized avatar
🎱
The S in IoT stands for security

Bradley Erickson 13rac1

🎱
The S in IoT stands for security
View GitHub Profile
@bkaradzic
bkaradzic / orthodoxc++.md
Last active July 1, 2024 03:54
Orthodox C++

Orthodox C++

What is Orthodox C++?

Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.

Why not Modern C++?

@mox1
mox1 / opensles_android.cpp
Last active August 29, 2015 14:19
How to use Opensl ES (aka low level audio) on Android - Part of a Spotify mobile App I wrote
/* Code Written by mox1
* http://moxone.me/
* The code contained within is part of a larger Android Application. Portions of this code
* also rely on the "Poco" C++ library.
*
* Copyright (c) 2015, mox1@moxone.me
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@jpillora
jpillora / sshd.go
Last active December 17, 2023 16:27
Go SSH server complete example - Read more here https://blog.gopheracademy.com/go-and-ssh/
// A small SSH daemon providing bash sessions
//
// Server:
// cd my/new/dir/
// #generate server keypair
// ssh-keygen -t rsa
// go get -v .
// go run sshd.go
//
// Client:
@esperlu
esperlu / mysql2sqlite.sh
Created April 27, 2011 05:46
MySQL to Sqlite converter
#!/bin/sh
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the
# CREATE block and create them in separate commands _after_ all the INSERTs.
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk.
# The mysqldump file is traversed only once.
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite