Skip to content

Instantly share code, notes, and snippets.

View ntr-808's full-sized avatar

Nathan Rashleigh ntr-808

View GitHub Profile
#![no_std]
#![no_main]
extern crate panic_semihosting;
use cortex_m_rt::entry;
use cortex_m_semihosting::{hprintln};
use f411::{
hal::{prelude::*, stm32, i2c::I2c},
pub fn start() {
let database_url = env::var("DATABASE_URL")
.expect("DATABASE_URL must be set");
let pool = create_pool(database_url);
HttpServer::new(move || {
let app = App::new()
.data(State { pool: pool.clone() })
// enable logger
extern crate failure;
#[macro_use]
extern crate serde_derive;
extern crate serde_cbor;
#[macro_use]
extern crate yew;
use failure::Error;
use yew::prelude::*;
use yew::services::Task;
minikube mount -v10 /home/ntr/eg/app/:/opt/app
Found binary path at /usr/local/bin/docker-machine-driver-kvm2
Launching plugin server for driver kvm2
Plugin server listening at address 127.0.0.1:35539
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(minikube) Calling .DriverName
Mounting /home/ntr/eg/app/ into /opt/app on the minikube VM
version: '3.3'
services:
drone-server:
image: drone/drone:0.8
ports:
- 8000:8000
- 9000
volumes:
- /var/lib/drone:/var/lib/drone/

Keybase proof

I hereby claim:

  • I am margh on github.
  • I am ntr (https://keybase.io/ntr) on keybase.
  • I have a public key ASDpY7N4v-AN6eO1K5OTuQedcL1Tg81DecctG2geUDDcdwo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am margh on github.
  • I am margh (https://keybase.io/margh) on keybase.
  • I have a public key whose fingerprint is 35B6 573E 8C71 4DB1 0D1C 1692 872A 9917 90D6 56C9

To claim this, I am signing this object:

@ntr-808
ntr-808 / gist:8034091
Last active December 31, 2015 19:29
Best of 2013
Top Albums of 2013
1. Darkside - Psychic
2. National - Trouble Will Find Me
3. Daughter - If You Leave
4. Jon Hopkins - Immunity
5. Violent Soho - Hungry Ghost
6. Washed Out - Paracosm
7. Bonobo - The North Borders
8. AlunaGeorge - Body Music
@ntr-808
ntr-808 / noAds.md
Created November 25, 2013 02:49
Quick Circumvention of MLG Adblock Detection
  1. Open Adblock prefs
  2. Customize
  3. Click edit next to "Manually enter your filters"
  4. Add http://pagefair.com/static/adblock_detection/* and click save
  5. Enjoy

Seems to block the chat as well -shrug-

# Webclient.ViewManager
# Usage:
# chatView: new Webclient.ViewManager.view('ChatView') @model
# rotateNotice: Webclient.ViewManager.el('ClientRotateNotice')
ChatViewDesktop = require './ChatViewDesktop'
ChatViewMobile = require './ChatViewMobile'