Skip to content

Instantly share code, notes, and snippets.

View Mayeu's full-sized avatar
🌊
Ohaï 👋

Mayeu Mayeu

🌊
Ohaï 👋
View GitHub Profile
@Mayeu
Mayeu / hardening_usbarmory.md
Created March 11, 2017 20:53 — forked from yann2192/hardening_usbarmory.md
Hardening USB Armory

Hardening the USB Armory

As a good crypto nerd, I usually use an entirely encrypted linux FS: / but also /boot using grub LUKS support. It's a good setup but it's not perfect, the BIOS and the bootloader are not protected.

I recently got a USBArmory and I wanted to apply the same (or a better) setup.

I found some useful links but no clear howto. So this is my setup.

- hosts: localhost
gather_facts: false
tasks:
- cs_instance:
name: ansible-test-yourte
state: deployed
template: Linux Ubuntu 16.04 LTS 64-bit 50G Disk (2016-10-20-85bb6c)
zone: CH-DK-2
service_offering: Micro
ssh_key: "Mayeu - Shub-Niggurath"
@Mayeu
Mayeu / service-checklist.md
Created September 17, 2016 13:13 — forked from acolyer/service-checklist.md
Internet Scale Services Checklist

Internet Scale Services Checklist

A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."

Basic tenets

  • Does the design expect failures to happen regularly and handle them gracefully?
  • Have we kept things as simple as possible?
@Mayeu
Mayeu / send-mail-to-omnifocus-and-archive.scpt
Created August 25, 2016 19:05 — forked from bradwright/send-mail-to-omnifocus-and-archive.scpt
Take current Mail.app message, send its subject and 'message:<>' URL to OmniFocus, and then Archive the email
-- Send currently selected Mail.app message to OmniFocus 2 quick entry box, then archive it
-- Archive behaviour found at: http://vemedio.com/blog/posts/my-archive-email-apple-script
tell application "Mail"
set theSelectedMessages to selection
set the selected_message to item 1 ¬
of the theSelectedMessages
set message_id to the message id of the selected_message
set my_subject to the subject of the selected_message
set message_url to "message://%3c" & message_id & "%3e"
@Mayeu
Mayeu / web-syndication-feeds-specs.md
Created June 20, 2016 16:29 — forked from vhf/web-syndication-feeds-specs.md
RSS and Atom specifications in a more readable format.
  • channel
    • title
      • GoUpstate.com News Headlines
    • link
    • description
      • The latest news from GoUpstate.com, a Spartanburg Herald-Journal Web site.
    • [language]
@Mayeu
Mayeu / minimal.nix
Last active November 13, 2015 15:25
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "minimal";
src = "./" ;
installPhase = ''
mkdir -p ${out}/test # <-- that's the bug, ${} is nix variable, out is not a nix variable
'';
}
@Mayeu
Mayeu / paquets.yml
Last active August 29, 2015 14:19
Installation de paquet avec ansible
---
- host: localhost
sudo: yes
tasks:
- name: install plein de paquets
apt: package={{ item }} state=present update_cache=yes
with_items:
- paquet1
- paquet2
- ...
# /etc/network/interfaces
#
auto lo
iface lo inet loopback
# device: eth0
iface eth0 inet manual
# IPv4 bridge
# (connect ONLY your firewall/router KVM instance here, this is the WAN device!)
(function() {
/* Bookmarklet that displays the actual podcast feed
* URL when ran on an iTunes store page for a podcast.
*
* Simply grabs the Artist ID from the URL and does
* an iTunes Store API lookup to get the hidden (original)
* podcast feed URL (whatever format that may be in).
*
* @author: Darian Moody <[email protected]>
* @date: Working as of Sun.22.Apr.2012
@Mayeu
Mayeu / list.md
Last active June 14, 2016 07:09
Wordpress tools list focused on local dev, from a guy that do not use Wordpress

Warning: I am not a Wordpress dev or user, I try to avoid working with it as much as possible. So some asumptions may be trolling or totally wrong because I overlooked something. You may give feedback if you wish.

Assumptions

Recently I got to work with a Wordpress instance. When I work, I work locally, but Wordpress is thought like an online tools only, for example:

  • Working locally mean that you need to modify some DB fields when you export