| Replaced | Rust replacement | GH |
|---|---|---|
| ls | exa | https://github.com/ogham/exa |
| grep | ripgrep | https://github.com/BurntSushi/ripgrep |
| cat | bat | https://github.com/sharkdp/bat |
| du | dust | https://github.com/bootandy/dust |
| ps | procs | https://github.com/dalance/procs |
| find | fd | https://github.com/sharkdp/fd |
| sed | sd | https://crates.io/crates/sd |
| Search sql like | fselect | https://crates.io/crates/fselect |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: premortem | |
| description: "Run a premortem on any plan, launch, product, hire, strategy, or decision. Assumes it already failed 6 months from now and works backward to find every reason why. Produces a revised plan with blind spots exposed. MANDATORY TRIGGERS: 'premortem this', 'premortem my', 'run a premortem', 'what could kill this', 'future-proof this', 'stress test this plan', 'what am i missing here', 'find the blind spots'. STRONG TRIGGERS: 'what could go wrong', 'am i missing anything', 'poke holes in this', 'where will this break', 'devil's advocate this'. Do NOT trigger on simple feedback requests, factual questions, or LLM Council requests. DO trigger when someone has a plan or commitment where the cost of being wrong is high." | |
| --- | |
| # Premortem | |
| A premortem is the opposite of a postmortem. Instead of figuring out what went wrong after something fails, you imagine it already failed and figure out why before you start. | |
| The method comes from psychologist Gary Klein. He published it in Harvard B |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function validVideoId(id) { | |
| var img = new Image(); | |
| img.src = "http://img.youtube.com/vi/" + id + "/mqdefault.jpg"; | |
| img.onload = function () { | |
| checkThumbnail(this.width); | |
| } | |
| } | |
| function checkThumbnail(width) { | |
| //HACK a mq thumbnail has width of 320. |
- Date: <DATE - when the decision was made>
- Driver: <DRIVER - list a single person driving consenus and decision making>
- Stakeholders: <STAKEHOLDERS - list all relevant stakeholders affected by this decision>
- Status: [PROPOSED | DECIDED | SUPERSEDED]
- Categories: <CATEGORIES - use a simple grouping to help organize the set of decisions (e.g. backend, payment, user management, ...)>
- Outcome: <OUTCOME - once decided, provide a short summary of the decision outcome here>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.lang.instrument.Instrumentation; | |
| import java.lang.reflect.Layer; | |
| import java.lang.reflect.Module; | |
| import java.util.*; | |
| public class WeakeningAgent { | |
| public static void premain(String argument, Instrumentation instrumentation) { | |
| boolean full = argument != null && argument.equals("full"); | |
| Set<Module> importing = new HashSet<>(), exporting = new HashSet<>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Load the docker-machine environment and update the route to let MacOSX access containers IPs. | |
| denv() { | |
| eval $(docker-machine env $1) | |
| SUBNET=$(docker network inspect $(docker network ls | grep bridge | awk '{ print $1; }') | grep Subnet | awk '{ gsub(/"/, "", $2); print $2; }') | |
| sudo route -n delete $SUBNET |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module frankenstein | |
| import javassist.ClassPool | |
| import javassist.CtField | |
| import javassist.CtNewMethod | |
| import gololang.Adapters | |
| struct dynamicClass = { | |
| className, |
This script is no longer required with Docker for Mac which includes an option to run Docker at startup and doesn't use docker-machine to administer the local Docker engine.
- Docker Machine + Docker
- curl
- A Virtualbox-driven Docker Machine called "default"
docker-machine create --driver virtualbox default(this is the default with Docker toolkit).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| set -e | |
| if [ ! -f ~/.bintray-login ] | |
| then | |
| echo save your bintray.com <userid>:<api-key> in ~/.bintray-login | |
| exit 1 | |
| fi | |
| groupid=${1:?group-id} |
#Ce que je pense du Acer C720P
##Aspect
- l'aspect du C720P est sobre et de bon goût, assez surprenant pour une machine de ce prix, il n'a pas cet aspect "playmobile" du Samsung
- clavier agréable (ressemble un peu aux clavier mac, mais plus élastique, on n'oublie pas le prix quand même)
- format 11"6 de l'écran : mon format fétiche, je trouve ça parfait pour un chromebook
- lecture des vidéos : très bonne qualité (j'ai trouvé une app pour lire les sous-titres ou les downloader)
- ...
NewerOlder