Skip to content

Instantly share code, notes, and snippets.

https://www.avoiderrors.com/install-owncloud-on-raspberry-pi-4-2/
sudo apt install apache2 sqlite -y
sudo service apache2 restart
sudo apt-get install php php-gd php-sqlite3 php-curl libapache2-mod-php -y
sudo apt-get install smbclient
# sudo apt-get install php-mysql php-mbstring php-gettext php-intl php-redis php-imagick php-igbinary php-gmp php-curl php-gd php-zip php-imap php-ldap php-bz2 php-phpseclib php-xml
sudo apt-get install php-mysql php-mbstring php-intl php-redis php-imagick php-igbinary php-gmp php-curl php-gd php-zip php-imap php-ldap php-bz2 php-phpseclib php-xml
wget -nv https://download.owncloud.org/download/repositories/production/Debian_9.0/Release.key -O Release.key
sudo apt-key add - < Release.key
@kapnak
kapnak / README.md
Last active July 5, 2021 12:43
Who said CSS has no dynamic condition?

What do you think about that ? Is tricky or bad ?

It can be usefull to edit multiple css properties in javascript with just change a variable.

from random import randint
count = 0
win = {"player": 0, "bot": 0}
WIN = 0
LOSE = 1
TIE = 2
playable = [{"play": "pierre", "ciseaux": WIN, "pierre": TIE, "feuille": LOSE},
{"play": "feuille", "pierre": WIN, "feuille": TIE, "ciseaux": LOSE},
{"play": "ciseaux", "feuille": WIN, "ciseaux": TIE, "pierre": LOSE}]
@kapnak
kapnak / FizzBuzz.py
Created May 20, 2020 16:44
Nico Exercice #1
for x in range(1, 101):
if x % 3 == 0 and x % 5 == 0:
print("FizzBuzz")
elif x % 5 == 0:
print("Buzz")
elif x % 3 == 0:
print("Fizz")
else:
print(x)