Skip to content

Instantly share code, notes, and snippets.

@Legogris
Legogris / ipip6tunnel.sh
Created April 26, 2020 04:31
ipip6tunnel
#!/bin/bash /etc/rc.common
# ipip6tunnel open-circuit
# Legogris 2020
# Put in /etc/init.d/ipip6tunnel, enable service
START=36
export IFNAME=eth0
export MYV6=
export V6GATEWAY=
import { FormGroup, FormLabel, TextField, Checkbox, FormControlLabel, Grid } from '@material-ui/core';
import React from 'react';
import MUIDataTable from '../../src';
class Example extends React.Component {
state = {
ageFilterChecked: false
};
render() {

iOS, The Future Of macOS, Freedom, Security And Privacy In An Increasingly Hostile Global Environment

This post by a security researcher who prefers to remain anonymous will elucidate concerns about certain problematic decisions Apple has made and caution about future decisions made in the name of “security” while potentially hiding questionable motives. The content of this article represents only the opinion of the researcher. The researcher apologises if any content is seen to be inaccurate, and is open to comments or questions through PGP-encrypted mail.



TL;DR

@Legogris
Legogris / KaikoMarketDataConsumer.sol
Created June 11, 2019 11:29
Maiko Market Data API Chainlinked contract example
// File: @ensdomains/buffer/contracts/Buffer.sol
pragma solidity >0.4.18;
/**
* @dev A library for working with mutable byte buffers in Solidity.
*
* Byte buffers are mutable and expandable, and provide a variety of primitives
* for writing to them. At any time you can fetch a bytes object containing the
* current contents of the buffer. The bytes object should not be stored between
@Legogris
Legogris / gist:a18641e5178a7bf19f98511aa1094807
Created June 4, 2019 11:26
dmesg when connecting lenovo 40AN dock
[ 805.057122] usb 1-4: new high-speed USB device number 16 using xhci_hcd
[ 805.188388] usb 1-4: New USB device found, idVendor=17ef, idProduct=3080
[ 805.188397] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 805.188403] usb 1-4: Product: USB2.0 Hub
[ 805.188407] usb 1-4: Manufacturer: VIA Labs, Inc.
[ 805.191213] hub 1-4:1.0: USB hub found
[ 805.191405] hub 1-4:1.0: 5 ports detected
[ 805.314991] usb 2-4: new SuperSpeed USB device number 7 using xhci_hcd
[ 805.330617] usb 2-4: New USB device found, idVendor=17ef, idProduct=307f
[ 805.330623] usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
// File: @ensdomains/buffer/contracts/Buffer.sol
pragma solidity >0.4.18;
/**
* @dev A library for working with mutable byte buffers in Solidity.
*
* Byte buffers are mutable and expandable, and provide a variety of primitives
* for writing to them. At any time you can fetch a bytes object containing the

Genomics - A programmer's guide.

Andy Thomason is a Senior Programmer at Genomics PLC. He has been witing graphics systems, games and compilers since the '70s and specialises in code performance.

https://www.genomicsplc.com

@Legogris
Legogris / satoshistreasure.md
Created April 19, 2019 10:19 — forked from johncantrell97/satoshistreasure.md
How I Obtained Satoshi's Treasure Keys 1, 2, and 3 in Minutes

Today (April 16th 2019 at noon) the first major clues to discover key #1 was set to be released in a few cities. A QR code with the words 'orbital' were found at these locations and looked like this: (https://imgur.com/a/6rNmz7T). If you read the QR code with your phone you will be directed to this url: https://satoshistreasure.xyz/k1

At this URL you are prompted to input a passphrase to decrypt the first shard. An obvious first guess was to try the word 'orbital' from the QR code. Not suprisingly this worked! This reveals a congratulations page and presents the first key shard:

ST-0001-a36e904f9431ff6b18079881a20af2b3403b86b4a6bace5f3a6a47e945b95cce937c415bedaad6c86bb86b59f0b1d137442537a8.

Now, we were supposed to wait until April 17th to get clues from the other cities for keys #2 and #3 but that wouldn't stop me from digging around with all the new information we had. All that time "playing" notpron (http://notpron.org/notpron/) years ago was going to help me here.

The first thing I noticed was

#!/usr/bin/env runhaskell
import System.Process (callCommand)
runcmd args =
putStrLn ("+ " ++ cmd) >> callCommand cmd
where cmd = unwords args
-- (Name of your laptop's internal display, x res, y res)
(internalOutput, intX, intY) = ("eDP1", 3840, 2160)
import logging
import json
import sys
import mapreduce
def mapper(key, value):
if value['event'] == 'AuctionStarted':
yield (value['args']['hash'], {'registered': value['args']['registrationDate']})