Skip to content

Instantly share code, notes, and snippets.

View nullpixel's full-sized avatar

nullpixel nullpixel

View GitHub Profile

Keybase proof

I hereby claim:

  • I am nullpixel1 on github.
  • I am nullpixel (https://keybase.io/nullpixel) on keybase.
  • I have a public key ASCmc9LNJf1rpn_QJD2ZgNxn0kCWS3HxQz6HsPkhzvziCAo

To claim this, I am signing this object:

<!--
Copyright (C) 2016 Jamie Bishop
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@nullpixel
nullpixel / gist:9d6ba16592ce2c0ee84f5c09318dc306
Last active January 29, 2017 12:41 — forked from steventroughtonsmith/gist:6763213
Non-opaque application windows in iOS 7, with optional blur. Shows the user's wallpaper under the app, with Parallax if supported.
typedef NS_ENUM(NSUInteger, UIBackgroundStyle) {
UIBackgroundStyleDefault,
UIBackgroundStyleTransparent,
UIBackgroundStyleLightBlur,
UIBackgroundStyleDarkBlur,
UIBackgroundStyleDarkTranslucent
};
@interface UIApplication (UIBackgroundStyle)
-(void)_setBackgroundStyle:(UIBackgroundStyle)style;

Keybase proof

I hereby claim:

  • I am nullpixel on github.
  • I am nullpixel (https://keybase.io/nullpixel) on keybase.
  • I have a public key ASCmc9LNJf1rpn_QJD2ZgNxn0kCWS3HxQz6HsPkhzvziCAo

To claim this, I am signing this object:

@nullpixel
nullpixel / Using Git to Manage a Live Web Site.md
Last active July 15, 2017 09:49 — forked from Nilpo/Using Git to Manage a Live Web Site.md
Using Git to Manage a Live Web Site

Using Git to Manage a Live Web Site

Overview

As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.

Contents

@nullpixel
nullpixel / .zshrc
Last active December 13, 2023 12:05
My zsh configuration & edited dracula theme.
# Path to your oh-my-zsh installation.
export ZSH=/home/null/.oh-my-zsh
# -------------------------------------------------------------------
# General ZSH config
# -------------------------------------------------------------------
ZSH_THEME="dracula"
plugins=(git)
@nullpixel
nullpixel / fill.js
Created October 25, 2017 12:35
Fill a canvas.place pixel database with information from an image
const getPixels = require('get-pixels');
const path = require('path');
const mongoose = require("mongoose");
const config = require('../config/config');
const Pixel = require('../models/pixel');
mongoose.connect(config.database).then(() => console.info('Connected to database'));
const batch_size = 1000;
@nullpixel
nullpixel / stations.json
Created January 7, 2018 16:21
All current UK train stations, in JSON format with their crs and tiploc codes, and their Easing & Northing. Used in an upcoming app to autocomplete station suggestions.
[{
"name": "Aberdare Rail Station",
"crs": "ABA",
"tiploc": "ABDARE",
"easting": 300400,
"northing": 202800
}, {
"name": "Aberdour Rail Station",
"crs": "AUR",
"tiploc": "ABDO",
@nullpixel
nullpixel / FileDownloader.swift
Created August 22, 2018 19:15
A simple and untested file downloader in swift
import Foundation
class FileDownloader {
// MARK: - Properties
private var outputFolder: URL
private var queueIdentifier: String
private var urlSession: URLSession
// MARK: - Types

write_memory.c

This is a MSHookFunction shim, which supports writing to RX memory on all modern jailbreaks.

Usage

Requires linking against CydiaSubstrate for MSFindSymbol, but dlsym should work fine, to remove this dependency.

Implementation