
Nice minimal setup for hostile environments :)
usermod -aG sudo usernameusername: sudo lsusername: export SSH_PASSPHRASE="12345" if SSH passphrase desired (more than 5 characters)username: cd $HOME;sh <(wget -o /dev/null -qO- https://raw.githubusercontent.com/lucasmouilleron/Survival/master/debian.sh)usermod -aG sudo usernameusername: sudo lsusername: export SSH_PASSPHRASE="12345" if SSH passphrase desired (more than 5 characters)username: cd $HOME;sh <(wget -o /dev/null -qO- https://raw.githubusercontent.com/lucasmouilleron/Survival/master/macOS.sh)TODO :)

.password file containing the desired password in folders (and subfolders) you want to protect.nopassword file in folders (and subfolders) you want to deprotect (in case of protected parent).nolist file in folders you want to forbid the listing of.noshow file in folders you don't want to appear in their parentsREADME.md files in folders are interpreted and displayed on toppip install -r _sf/requirements.txt_sf/assets/style.sample.css to _sf/assets/style.css_sf/config/config.sample.json to _sf/config/config.json _sf folder in the root folder you want to expose _sf/config.json_sf/assets/style.css
stupidCMS is a flat file stupid CMS with nice templating and caching engines.
.htaccess) at the site root./config.php and override default config (cf Overridable Configuration).htmlhttp://site.com/other-page{{CNT:content-name}}<img src="{{FILE:file-name.jpg}}"/> or <a href="{{FILE:file-name.pdf}}">the file</a>{{INC:page-name-without-html-extension}}{{DEF:CONSTANT_NAME}} (for example SITE_URL){{IF:php expression}}content{{EIF}}.php<?php global $stupid;?> must be called to make the stupid engine available$stupid->__inc("page-name-without-html-extension")$stupid->__cnt("content-name")$stupid->__file("file-name")Stupid Pages are cached for performance optimization/config.php/__cache___stupid/libs/stupidDefinitions.phpDEVELOPMENT_MODE, the cache is disabledhttp://site.com/admin in browserScan to populate the backend interfaceScan to populate the backend interface/__templates)/config.php is editable as wellScanClear, to clear the cacheDEVELOPMENT_MODE, cache is disabled, therefore Clear is not neededSave button (or ctrl+shift+enter) save only the current content)***Replace button___stupid/libs/stupidDefinitions.phpDEBUG_MODE (true): displays hintsDEVELOPMENT_MODE (false): no cache for easier developmentADMIN_PASSWORD ("password"): has to be changedSITE_URL ("http://localhost"): has to be set to the site root urlPAGE_404 (false): false or the name of the 404 page (without extension)NO_SCAN_FOLDERS (none): folders not to scan when finding contents and filesSMTE_CACHE_ENGINE ("file"): file | redis | nonecomposer : curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composercd ___stupid && composer install./__contents./__files
Temporally give ssh access to your friends.
sshForFriends uses friends public keys to give them access to the computer.
When sshForFriends has finished running, public keys are cleaned and friends can't access the computer anymore.
Public keys are fetched from known identity providers.
Tested on macOS and Ubuntu.
No password, no hastle, 100% SSH.
sshForFriends [OPTIONS] friendUsernamefriendUsername is the friend username which will be granted access (identity provider username)sshForFriends -h for more usage helpcat $HOME/.ssh/id_rsa.pub on your friend's machine (-r RSA_PUB_KEY)https://github.com/$USER_NAME.keys (-g, -i github)https://$USER_NAME.keybase.pub/id_rsa.pub (-k, -i keybase)sshForFriends can use a public server for ssh forwading.-x, -l, -m and -nGatewayPorts yes is set in the /etc/ssh/sshd_config filesudo systemsetup -setremotelogin onlucasmouilleron in one line : curl -sL https://raw.githubusercontent.com/lucasmouilleron/sshForFriends/master/sshForFriends -o $HOME/sshForFriends ; chmod a+x $HOME/sshForFriends ; $HOME/sshForFriends -g lucasmouilleronlucasmouilleron in one line : curl -sL https://raw.githubusercontent.com/lucasmouilleron/sshForFriends/master/sshForFriends -o $HOME/sshForFriends ; chmod a+x $HOME/sshForFriends ; $HOME/sshForFriends -k lucasmouilleronlucasmouilleron in one line : curl -sL https://raw.githubusercontent.com/lucasmouilleron/sshForFriends/master/sshForFriends -o $HOME/sshForFriends ; chmod a+x $HOME/sshForFriends ; $HOME/sshForFriends -g -x lucasmouilleron.com -l sshtunnel -m 10022 lucasmouilleroncurl -sL https://raw.githubusercontent.com/lucasmouilleron/sshForFriends/master/sshForFriends -o $HOME/sshForFriends ; chmod a+x $HOME/sshForFriends ; $HOME/sshForFriends -r "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDqN4/IlNfY8I5AUYYnj9mieJ9Uyx4rMbZjxyukmwM1nqSpTmFBs5xdqtE1Qi1DDb6V0Nphua80GUxXfIiKmbJVuOnrBjX2qInwMPtFxJ0gr8adXYIamcCVylcCPm2qO418KQpuHNM1es5s0a2hzuuRCtw6trysq/SCSIp6o05OEdHP8CbfCdFA+P7sy99XHG3yGzqHdU0D04ScDePzm1buSOXqQRCrSkuLmRMBhtRQSj7UAI3IlRcF3tEFPqAywjwnZVIvv6fUoXnpJuoCzBPuJv5D5lo06xixwIvHc39t1r4Tv/OrD+EyWfPsmCpLGfEkMRBqmj/ds5c4y6NjO9cl" -x lucasmouilleron.com -l sshtunnel -m 10022 yourfriendnameA simple Spark REST boilerplate.

ant getDependenciesant runhttps://localhost:8087/helloopenssl genrsa -out private_key.pem 2048openssl pkcs8 -topk8 -inform PEM -outform DER -in private_key.pem -out private_key.der -nocryptopenssl rsa -in private_key.pem -pubout -outform DER -out public_key.dercurl -k https://localhost:8080/login/ilovekatecurl -k --header "token: eyJhbGciOiJSUzI1NiJ9.eyJuYW1lIjoidXNlcm5hbWUiLCJkYXRlIjoxNDQzNzgwODU3NDcyfQ.A6b6Hg1QyYgYUV8J9wff6SvclX90Ydmx6sd8OzTAXYJ6gLpkXMBaHvOLtyxu35hSiiVwrOljnfLSg__tlbzh6PG8KrMuezwCQHttnQzowfp5CxNWM5mEXcMjHiCMLGW3X_p5MV6hm7pe7M8aBDKlZj__OHEMPogFGSga5HhnRDnRfzY49cW9CgzdtfCY3c-wWwabyoy75kQTk5GG2KUOZPy5xKT9EJvL1JLlGKkCl4Il8zNGm2cpP68_hIqCohLqEfbMXjBdccYU7DsjQowBxtjQcZD92pu-6rHKhWcJVlNC32BqvPQXn5laKCm9Dpq703Km_IWvEPz0LPXDtIZ9Gg" https://localhost:8080/protectedOPTIONS requests so it workskeytool -genkey -keyalg RSA -alias sparkBoilerplate -keystore keystore -validity 3600 -keysize 2048keytool -export -alias sparkBoilerplate -file certificate.crt -keystore keystorekeytool -keystore keystore -certreq -alias sparkBoilerplate -keyalg rsa -file certificate.csrkeytool -import -file certificate.crt -alias sparkBoilerplate -keystore truststorekeytool -list -v -keystore keystorepassword and host is localhost
Characterisation of the population of beings of Riverworld.
Riverworld is a fictional planet and the setting for a series of sci-fi books written by Philip José Farmer.
Riverworld is an artificial environment where all humans (and pre-humans) ever born who died after reaching 5 years old are reconstructed.
Most of the resurrected awaken in a body equivalent to that of their 25 year old selves, in perfect health and free of any previous genetic or acquired defects.
A friend of mine made fun of the book concept and claimed half of the beings ressucitated would be prehistorical.
This project is proving him wrong.
./data/population-min.csv./data/population-max.csv./data/population-avg.csv./data/population-future.csv./output/(min|max|future)/report.pdf./outputpip install --upgrade pippip install -r requirements.txt --user./resources/fontsbrew cask install wkhtmltopdfapt-get install wkhtmltopdfconfig.inipython riverworld.py min|max|avg|futurepython riverworld.py min;python riverworld.py max;python riverworld.py avg;python riverworld.py future
Youtube to animated meme generator.
brew install ffmpegbrew install libtoolbrew install imagemagick --build-from-sourcebrew install automakegit clone git@github.com:pornel/giflossy.git && cd giflossy && autoreconf -i && ./configure && make && make installsudo pecl install imagickvi /etc/php.ini and add extension=imagick.socd libs/youtubeToGif && npm installphp cmd.php A7TaY8HWYd8 71 5 "PRETTY GOOD JUNIOR" 500 BOTTOMphp cmd.php 6Hn8qnsucwo 30 5 "PRETTY ... PRETTY ... PRETTY ... PRETTY ... PRETTY GOOD" 500 TOPphp cmd.php puo1Enh9h5k 49 2 "ROMANO LE RELOU" 500 BOTTOM
cd servernpm installnode server/app.jsA simple web folder.
For Apache web servers.

.password file containing the deisred password in folders (and subfolders) you want to protect.nopassword file in folders (and subfolders) you want to deprotect (in case of protected parent)README.md files in folders are interpreted and displayed on top cd _sf;composer install_sf folder in the root folder_sf_assets folder in the root folder_sf_shares folders for shares to be activated.htaccess file in the root folder/_sf/_sf_overrides folder
config.php and override configs defined in _sf/config.phpstyle.css and override styles