Skip to content

Instantly share code, notes, and snippets.

@stepbeekio
stepbeekio / nuxt.d.ts
Created August 14, 2018 11:12
Typescript working with asyncData & fetch for Nuxt.js
import Vue from 'vue'
import { Store } from 'vuex'
// ComponentOptions is declared in types/options.d.ts
declare module 'vue/types/options' {
interface NuxtContext<V extends Vue> {
app: V,
isClient: boolean,
isServer: boolean,
@gomfunkel
gomfunkel / elgato-eve.md
Last active September 9, 2023 18:28
Elgato Eve HomeKit Services & Characteristics

Elgato Eve HomeKit Services & Characteristics

A work in progress collection of proprietary and as of yet undocumented HomeKit characteristics and their UUIDs used by Elgato Eve.

This list is not including all Eve accessories available and some services and characteristics still make no sense to me. If you have anything to contribute, please leave a comment. There is no guarantee that the information listed below is correct.

Elgato Eve Energy (Firmware Revision 1.3.1;466)

Service - Characteristic UUID R W Type Description
@tazjin
tazjin / gist:df152e425fa1a3459a75
Last active August 29, 2015 14:14
Forskjeller mellom skandinaviske språk
Error in user YAML: (<unknown>): did not find expected alphabetic or numeric character while scanning an alias at line 1 column 1
---
**Norsk (bokmål)**

Klokka er kvart på ni, fredag den tjueandre august. Etter høysommerens dvelende skumringer og lyse netter senker nå mørket seg overraskende fort om kveldene. Det er allerede svarte natta utenfor den innglassete entreen til Rikskriminalpolitiets ledelse.

Margot Silverman går ut av heisen og fortsetter mot sikkerhetsdørene i foajeen. Hun er kledd i en svart omslagsjakke, hvit bluse som sitter stramt over brystene hennes, og svarte langbukser med høyt liv som strekker seg over hennes voksende mage.  

Uten hastverk nærmer hun seg de to roterende dørene i glassveggen. Vakten sitter bak disken med blikket vendt mot en skjerm. Overvåkningskameraer filmer alle områder i det store huset døgnet rundt.

---
@jimmycuadra
jimmycuadra / cloud-config.yml
Last active April 19, 2021 03:04
CoreOS cloud-config for DigitalOcean with iptables firewall
#cloud-config
coreos:
etcd:
# generate a new token for each unique cluster from https://discovery.etcd.io/new
discovery: https://discovery.etcd.io/<token>
# multi-region deployments, multi-cloud deployments, and droplets without
# private networking need to use $public_ipv4
addr: $private_ipv4:4001
peer-addr: $private_ipv4:7001
@maurisvh
maurisvh / fcast.hs
Last active January 20, 2017 00:32
tiny terminal livestreaming server
-- to watch: telnet localhost 8887
-- to stream: script -f >( (echo hello streamname; cat -) | nc -q5 localhost 8888 > /dev/tty )
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Control.Concurrent
import Control.Concurrent.Chan
import Control.Concurrent.MVar
import Control.Monad
@bsweger
bsweger / useful_pandas_snippets.md
Last active April 19, 2024 18:04
Useful Pandas Snippets

Useful Pandas Snippets

A personal diary of DataFrame munging over the years.

Data Types and Conversion

Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)

@scy
scy / README.md
Last active July 7, 2023 09:27
My OSX PF config for #30C3.

My OS X “VPN only” Setup For #30C3

You should never let passwords or private data be transmitted over an untrusted network (your neighbor’s, the one at Starbucks or the company) anyway, but on a hacker congress like the #30C3, this rule is almost vital.

Hackers get bored easily, and when they’re bored, they’re starting to look for things to play with. And a network with several thousand connected users is certainly an interesting thing to play with. Some of them might start intercepting the data on the network or do other nasty things with the packets that they can get.

If these packets are encrypted, messing with them is much harder (but not impossible! – see the end of this article). So you want your packets to be always encrypted. And the best way to do that is by using a VPN.

Target audience

@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active June 13, 2024 05:29
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@asajeffrey
asajeffrey / Demo.agda
Created March 9, 2012 02:54
A Demonstration of Agda
-- A Demonstration of Agda
--
-- Alan Jeffrey <ajeffrey@bell-labs.com>
--
-- Agda is:
-- * a foundation of mathematics
-- * a programming language
--
-- Foundationally:
-- * Constructive logic

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: