Skip to content

Instantly share code, notes, and snippets.

View z3t0's full-sized avatar

Rafi Khan z3t0

View GitHub Profile
# make 2 partitions on the disk.
parted -s /dev/sda mktable msdos
parted -s /dev/sda mkpart primary 0% 100m
parted -s /dev/sda mkpart primary 100m 100%
# make filesystems
# /boot
mkfs.ext2 /dev/sda1
@z3t0
z3t0 / .vimrc
Created July 5, 2015 23:49
.vimrc
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Vundle Core
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/vimfiles/bundle/Vundle.vim
call vundle#begin('C:/Users/Rafi/vimfiles/bundle')
@z3t0
z3t0 / setup.sh
Created August 6, 2015 01:06
Arch Provisioner
#!/usr/bin/env bash
###############################################################################
### Initial
###############################################################################
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' =
echo "Updatiing Arch..."
pacman -Syyu >/dev/null
/* Blinker Demo */
// ------- Preamble -------- //
#include <avr/io.h> /* Defines pins, ports, etc */
#include <util/delay.h> /* Functions to waste time */
#define F_CPU 8000000
#define SYSCLOCK F_CPU
# define TIMER_PWM_PIN 9 // Arduino Duemilanove, Diecimila, LilyPad, etc
@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 / 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"
@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
var canvas = document.body.appendChild(document.createElement('canvas'))
var clear = require('gl-clear')({ color: [0, 0, 0, 1] })
var gl = require('gl-context')(canvas, render)
var glBuffer = require('gl-buffer')
var mat4 = require('gl-mat4')
var glslify = require('glslify')
var shader = glslify({
frag: './shader.frag',
vert: './shader.vert'
var eventEmitter = new events.EventEmitter();
eventEmitter.on('loadedTextures', function () {
enginestatus.ResourcesLoaded = true;
console.log("ResourcesLoaded")
eventEmitter.emit('ready')
})
@z3t0
z3t0 / rust-update-docs-hook
Created March 11, 2016 17:12 — forked from Stebalien/rust-update-docs-hook
A post-commit hook to update a rust project's gh-pages.
#!/bin/bash
set -e
[[ "$(git symbolic-ref --short HEAD)" == "master" ]] || exit 0
msg() {
echo "> $@"
}
dir="$(pwd)"
tmp="$(mktemp -d)"