Skip to content

Instantly share code, notes, and snippets.

View z3t0's full-sized avatar

Rafi Khan z3t0

View GitHub Profile
@z3t0
z3t0 / Ethernet.h
Created August 28, 2015 01:12 — forked from trunner10/Ethernet.h
Use web to change Tivo channel
#ifndef ethernet_h
#define ethernet_h
#include <inttypes.h>
//#include "w5100.h"
#include "IPAddress.h"
#include "EthernetClient.h"
#include "EthernetServer.h"
#include "Dhcp.h"
# - Try to find ZMQ
# Once done this will define
# ZMQ_FOUND - System has ZMQ
# ZMQ_INCLUDE_DIRS - The ZMQ include directories
# ZMQ_LIBRARIES - The libraries needed to use ZMQ
# ZMQ_DEFINITIONS - Compiler switches required for using ZMQ
find_path ( ZMQ_INCLUDE_DIR zmq.h )
find_library ( ZMQ_LIBRARY NAMES zmq )
@z3t0
z3t0 / README.md
Last active September 13, 2022 11:12
Remove android partitions in Chuwi Vi8

Remove android partitions from Chuwi Vi8

NOTE: THIS IS A WORK IN PROGESS

This gist shows you how to remove the android partitions from a dualboot Chuwi Vi8. This is usually done to create more space for the windows installation as many people will find that a single OS is more than enough for a 32GB drive.

Instructions

Disk Management

  1. Open Disk Management
  2. Delete all the RAW partitions, be CAREFUL to NOT delete Recovery, System or your C: drive
@z3t0
z3t0 / README.md
Last active August 4, 2021 20:21
Installing Arch Linux on Chuwi Vi8

Installing Linux on the Chuwi Vi8

This gist is a work in progress with various tips and bits of information designed to aid anyone in trying to get linux working on their Chuwi Vi8.

NOTE: As of yet, none of the information has been CONFIRMED by myself!!! I will be providing links that point to all the resources where other users have reported certain things to be working. This disclaimer will be removed once I test and confirm everything.

Support

This project aims to get Arch Linux running on the device with wifi and touch working. Other priorities can be added through requests.

Specifications and Drivers

@z3t0
z3t0 / error.txt
Created May 18, 2015 23:22
Error from trying to build OpenGL Application
λ make
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Using Win32 for window creation
-- Using WGL for context creation
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/Rafi Khan/Documents/voxy
extension AXError: Error { }
// For some reason values don't get described in this enum, so we have to do it manually.
extension AXError: CustomStringConvertible {
fileprivate var valueAsString: String {
switch (self) {
case .success:
return "Success"
case .failure:
return "Failure"
// trying to convert an arraylist T to an array of T
// this works
List<String> list = new ArrayList<>();
String[] a = list.toArray(new String[0]);
// why doesn't this?
arr = unsorted.toArray(new T[0]);
@z3t0
z3t0 / notes.org
Created April 30, 2018 02:36
research on database

SQL vs NOSQL

  • SQL: relational, NOSQL: non relational
  • SQL: universal but defined schema
  • NoSQL: unstructured dynamic schema
  • SQL is vertically scalable, increased resources of one machine
  • NoSQL is horizontally scalable, increase number of machines
  • NoSQL can become larger and more powerful
  • NoSQL does not require a DBA (Database Administrator)
    • flexible and high performing
@z3t0
z3t0 / data.json
Created May 30, 2018 14:13
converting hex bytes to json struct
{"source_address": 1,
"destination_address": 0,
"payload_type": 0,
"length": 0,
"crc_present": 0,
"payload": {"mission_time": 0,
"state": 0,
"flag_ematch_1_present": 0,
"flag_ematch_2_present": 0,
"flag_parachute_deployed": 0,
def create_linear_stock(value=None):
if not value:
value = random.randint(1, 100)
stock = dict(locals())
stock['symbol'] = uuid4()
stock['slope'] = random.uniform(-1, 1)