Skip to content

Instantly share code, notes, and snippets.

@anseljh
anseljh / Privacy-by-Design.md
Last active February 8, 2018 22:42
Enhancing Alert App User Privacy by Design

SMS and Privacy

There are a few problems with delivering alerts via SMS, but they mostly boil down to this: SMS is not very private.

For vulnerable audiences, it’s preferable to not collect any subscriber information at all. This isn’t possible with SMS, because you have to know the recipient’s phone number to deliver a message. Unless you’re talking about burners—which most people won’t have—that phone number is tied to a real identity. This is a vulnerability in at least these scenarios:

  • If the alerting app itself gets targeted (whether by LE or other malicious actors), user-identifying information could be leaked.
  • Phone companies cooperate with LE, through legal process (subpoenas) or otherwise, to find out which phone subscribers are receiving SMS alerts.
  • LE , IC, or well-resourced hackers snoop on the SMS network.

The current kernel/drivers of Fedora 24 do not support the Wifi chip used on my Mac Book Pro. Proprietary Broadcom drivers are packaged and available in the rpmfusion repo.

Verify that your card is a Broadcom using: lspci -vnn -d 14e4:

Sample output:

02:00.0 Network controller [0280]: Broadcom Corporation BCM4360 802.11ac Wireless Network Adapter [14e4:43a0] (rev 03)

Install

Install the rpmfusion repo, note only "nonfree" is required, as the Broadcom Driver is proprietry: http://rpmfusion.org/

@yefim
yefim / Dockerrun.aws.json
Last active April 7, 2023 16:11
Build a Docker image, push it to AWS EC2 Container Registry, then deploy it to AWS Elastic Beanstalk
{
"AWSEBDockerrunVersion": "1",
"Image": {
"Name": "<AWS_ACCOUNT_ID>.dkr.ecr.us-east-1.amazonaws.com/<NAME>:<TAG>",
"Update": "true"
},
"Ports": [
{
"ContainerPort": "443"
}
@palvestegui
palvestegui / Mata Contratos.docx
Created August 27, 2015 16:24
Modified Spanish version of @malarkey's Killing Contract
<h2><strong>Contrato de Diseño de un Sitio Web <span style="text-decoration: line-through;">un Sistema Informático</span></strong></h2>
Acordado entre <strong>Usted</strong> [Nombre del cliente] y<strong> nosotros</strong>, [Nuestra Empresa]
<h2><strong>Resumen:</strong></h2>
Siempre haremos nuestro mejor esfuerzo para cumplir con sus expectativas y satisfacer sus necesidades, pero es importante tener las cosas escritas para que ambos sepamos qué es qué, quién debería hacer qué y cuándo y, qué es lo que pasará si algo sale mal.
En este contrato no encontrará complicados términos legales ni largos pasajes de texto inentendible. No tenemos la intención de hacerle firmar algo que después lamentará. Lo que sí, queremos lo que es mejor para ambas partes, ahora y en el futuro.
En pocas palabras:
<strong>Usted</strong> ([Nombre del cliente]), situado en [dirección del cliente], nos contrata a <strong>Nosotros</strong> ([Nombre de la empresa]) situados en [dirección de la empresa] para diseñar y desarrollar [un si
@adityamenon
adityamenon / petstore.yaml
Created July 30, 2015 12:04
The REAL Swagger Pet Store YAML
# Google search for Swagger Petstore YAML returns a link to https://github.com/swagger-api/swagger-spec/blob/master/examples/v2.0/yaml/petstore.yaml
# But this isn't the full story. Got the output below by translating the JSON http://petstore.swagger.io/v2/swagger.json with http://jsontoyaml.com/
---
swagger: "2.0"
info:
description: "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters."
version: "1.0.0"
title: "Swagger Petstore"
termsOfService: "http://swagger.io/terms/"
contact:
@DanHerbert
DanHerbert / fix-homebrew-npm.md
Last active September 15, 2024 20:33
Instructions on how to fix npm if you've installed Node through Homebrew on Mac OS X or Linuxbrew

OBSOLETE

This entire guide is based on an old version of Homebrew/Node and no longer applies. It was only ever intended to fix a specific error message which has since been fixed. I've kept it here for historical purposes, but it should no longer be used. Homebrew maintainers have fixed things and the options mentioned don't exist and won't work.

I still believe it is better to manually install npm separately since having a generic package manager maintain another package manager is a bad idea, but the instructions below don't explain how to do that.

Fixing npm On Mac OS X for Homebrew Users

Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.

@dariocravero
dariocravero / README.md
Created October 20, 2012 05:25
Save files in Meteor

Create a Meteor app and put the client_/server_ files in a client/server directories. Also, create a public dir to save the uploaded files.

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@chrisjacob
chrisjacob / README.md
Created February 18, 2011 03:44
Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").

Intro

Description: Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").

Author: Chris Jacob @_chrisjacob

Tutorial (Gist): https://gist.github.com/833223

The Result