slave
mysql> STOP SLAVE;
master
mysql> RESET MASTER;
mysql> FLUSH TABLES WITH READ LOCK;
<?php | |
/* | |
+----------------------------------------------------------------------+ | |
| APC | | |
+----------------------------------------------------------------------+ | |
| Copyright (c) 2006-2011 The PHP Group | | |
+----------------------------------------------------------------------+ | |
| This source file is subject to version 3.01 of the PHP license, | | |
| that is bundled with this package in the file LICENSE, and is | | |
| available through the world-wide-web at the following url: | |
slave
mysql> STOP SLAVE;
master
mysql> RESET MASTER;
mysql> FLUSH TABLES WITH READ LOCK;
var word = ""; | |
var u="http://www.romaindauby.fr/kikeoo.js"; | |
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; | |
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u; | |
function dump(e){ | |
var unicode = e.keyCode? e.keyCode : e.charCode; | |
var actualkey = String.fromCharCode(unicode); | |
word += actualkey; | |
if(word == "dauby"){ |
##On the first VM | |
apt-get install -y apt-transport-https ca-certificates curl software-properties-common gnupg2 | |
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - | |
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | |
apt-get update | |
apt-cache madison docker-ce | |
apt-get install docker-ce=18.06.0~ce~3-0~debian | |
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list | |
deb https://apt.kubernetes.io/ kubernetes-xenial main |
df -hi | |
apt install jq | |
cd /var/lib/docker/overlay2/ | |
find . -xdev -type f | cut -d "/" -f 2 | sort | uniq -c | sort -n | |
docker inspect $(docker ps -qa) | jq -r 'map([.Name, .GraphDriver.Data.MergedDir]) | .[] | "\(.[0])\t\(.[1])"' | |
docker ps | |
docker images |
#!/bin/sh | |
if [ $(mount | grep -c /media/romain/disk) = 1 ] | |
then | |
SOURCE="/home/romain" | |
ACTUEL="/media/romain/disk/raupi/actuel" | |
BACKUP="/media/romain/disk/raupi/$(date +'%Y-%m-%d')" | |
mkdir -p "$BACKUP" | |
/usr/bin/rsync -av --stats --delete --backup --backup-dir="$BACKUP" "$SOURCE" "$ACTUEL" | |
rmdir --ignore-fail-on-non-empty $BACKUP | |
fi |
#!/usr/bin/python3 | |
import os | |
def writeSomeBytesSucceed(datas): | |
filepath = "/sdCardTest.raw" | |
testpattern = bytes(datas) | |
writer = open(filepath, "wb", buffering=0) | |
writer.write(testpattern) | |
writer.close() |
# find the kube node of the running pod, appear next to hostIP, and note containerID hash | |
kubectl get pod mypod -o json | |
# -> save hostIP | |
# -> save containerID | |
# connect to the node and find the pods unique network interface index inside it's container | |
docker exec containerID /bin/bash -c 'cat /sys/class/net/eth0/iflink' | |
# -> returns index | |
# locate the interface of the node |
A couple months ago, a friend ask me to repair a failing macintosh.
It appears the hard drive has multiple failures from SMART anlysis.
Next reboot... Oh crap, the operating system does not start anymore. The drive contains 10 years of pictures to recover. A heart pinch :'(
Important thing to know, if (certainely) the disk is crypted and you don't know the principal user login password,
FROM debian:buster | |
LABEL name="php7" | |
LABEL author="test" | |
RUN apt-get update | |
RUN apt-get install -y apache2 php7.3 | |
COPY . /app | |
COPY ./etc/custom.vhost /etc/apache2/sites-enabled/custom.vhost |