pip --version
devrait renvoyer une erreur comme commande introuvable
- Enregistrer en local le fichier cible (au hasard c:) https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py
- Exécuter la commande
python c:\get-pip.py
package server | |
import sttp.capabilities.zio.ZioStreams | |
import sttp.tapir.generic.auto.* | |
import sttp.tapir.json.zio.TapirJsonZio | |
import sttp.tapir.server.ziohttp.ZioHttpInterpreter | |
import sttp.tapir.ztapir.* | |
import sttp.tapir.{json, Endpoint, PublicEndpoint} | |
import zhttp.http.* | |
import zhttp.http.middleware.Cors.CorsConfig | |
import zhttp.service.Server |
# https://linuxconfig.org/how-to-rollback-pacman-updates-in-arch-linux | |
grep -a upgraded /var/log/pacman.log| grep 2020-11-30 > /tmp/lastupdates.txt | |
awk '{print $4}' /tmp/lastupdates.txt > /tmp/lines1 | |
awk '{print $5}' /tmp/lastupdates.txt | sed 's/(/-/g' > /tmp/lines2 | |
paste /tmp/lines1 /tmp/lines2 > /tmp/lines | |
tr -d "[:blank:]" < /tmp/lines > /tmp/packages | |
cd /var/cache/pacman/pkg/ | |
for i in $(cat /tmp/packages); do sudo pacman --noconfirm -U "$i"*; done |
# http://developer.asustor.com/tools | |
# from https://neerajcodes.wordpress.com/2017/08/06/intro-to-cross-compilation/ | |
export CCHOST=arm-marvell-linux-gnueabi | |
export TOOLCAHIN=../$CCHOST/bin/$CCHOST | |
export CC=$TOOLCAHIN-gcc | |
export LD=$TOOLCAHIN-ld | |
export CPP=$TOOLCAHIN-cpp | |
export CXX=$TOOLCAHIN-g++ | |
export AR=$TOOLCAHIN-ar | |
./configure --prefix=$(pwd)/target/ --host=CCHOST |
// ==UserScript== | |
// @name K8s doc enhancer | |
// @version 1 | |
// @grant none | |
// @include http*://*kubernetes.io/docs/* | |
// @run-at document-idle | |
// ==/UserScript== | |
var base = /(.+)io(\/.+)/.exec(location.href) |
const ics = require('ics') | |
const {parse, format} = require('date-fns') | |
const fs = require('fs') | |
const path = require('path') | |
var events = fs.readFileSync(path.join(__dirname, 'talks_2018.json')) | |
function date2array(d) { | |
var d0 = parse(d) |
PS1="\[\033[01;32m\]{\${PIPESTATUS[@]}} \t [\[\033[01;37m\]\W\[\033[01;32m\]]\[\033[00m\]\$(__git_ps1 ' (%s)')\[\033[01;32m\]\n\$\[\033[00m\] " |
# @see https://web.archive.org/web/20170407025318/https://people-mozilla.org/~dietrich/places-erd.png | |
select * from moz_bookmarks | |
where id in ( | |
select r.parent from moz_keywords k, moz_places p, moz_bookmarks b, moz_bookmarks r | |
where k.place_id = p.id | |
and b.fk = p.id | |
and r.id = b.parent) |
if [ -d "$HOME/.userbin" ] ; then | |
for i in $(ls $HOME/.userbin/*); do source $i; done | |
fi |
pip --version
devrait renvoyer une erreur comme commande introuvable
python c:\get-pip.py