This file contains 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
use std::any::Any; | |
pub trait ToAny { | |
fn as_any(&self) -> &dyn Any; | |
} | |
trait A: ToAny { | |
} |
This file contains 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
int main(void) { | |
while (1) { | |
int* a = malloc(sizeof(int)); | |
} | |
return 0; | |
} |
This file contains 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
# A repository should already be enabled in YOUR_WEBSITE_FOLDER_HERE | |
# Don't forget to update YOUR_WEBSITE_FOLDER_HERE to your real website path | |
# YOUR_WEBSITE_FOLDER_HERE : Where you tell to your web server (example: Apache2) where was located your website source | |
set -e | |
{ | |
cd YOUR_WEBSITE_FOLDER_HERE | |
git pull | |
composer install |
This file contains 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
# From : https://github.com/composer/composer/issues/9097#issuecomment-1100460289 | |
# NOTE Don't forget to restart bash to take the new composer program into consideration | |
set -e | |
apt-get remove composer | |
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
php -r "if (hash_file('sha384', 'composer-setup.php') === '906a84df04cea2aa72f40b5f787e49f22d4c2f19492ac310e8cba5b96ac8b64115ac402c8cd292b8a03482574915d1a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" | |
php composer-setup.php |
This file contains 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
# | |
# From Antonin Hérault | |
# https://github.com/antoninhrlt | |
# | |
function bash-loader() | |
{ | |
if [[ -z $1 ]] | |
then | |
local text="undefined text" |
This file contains 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
/* | |
From Antonin Hérault | |
https://github.com/antoninhrlt | |
*/ | |
// 1. 'key' : KEYBOARD SIGNALS - 2. 'evt' : EVENTS SIGNALS | |
// QWERTY KEYBOARD | |
namespace key | |
{ | |
// FIRST LINE |