This file contains hidden or 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
| const AWS = require('aws-sdk'); | |
| const dynamodb = new AWS.DynamoDB.DocumentClient(); | |
| const tableName = 'Hotels'; | |
| async function storeHotel(hotelId, newAttributes) { | |
| const params = { | |
| TableName: tableName, | |
| Key: { id: hotelId } | |
| }; |
This file contains hidden or 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
| nipple, ugly, duplicate, morbid, mutilated, tranny, trans, trannsexual, hermaphrodite, [out of frame], extra fingers, mutated hands, poorly drawn face, mutation, deformed, blurry, bad anatomy, proportions, limbs, cloned disfigured. more than 2 nipples, out frame, gross malformed missing arms, legs, fused too many long neck, multiple persons, two, lowres, text, error, cropped, worst quality, artist name, low jpeg artifacts, dehydrated, disfigured, poor quality resolution, incoherent, drawn, lines, messy drawing, poorly-drawn, poorly-drawn disjointed, asymmetrical cross-eyed, digit, fewer digits, normal signature, watermark, username, name |
This file contains hidden or 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
| ToBeProcessed - A traiter. | |
| Validated - Validée. | |
| ToSupplyInCentral - A approvisionner en central. | |
| ToSupplyInStore - Demandée en central. | |
| ToBeDeliveredByStore - A livrer par la boutique. | |
| InPreparation - En cours de préparation. | |
| Prepared - Préparée. | |
| ShipByCentral - Expédiée. | |
| ShipByLogistic - Expédiée par logisticien. | |
| ShipByStore - Expédiée par boutique. |
This file contains hidden or 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
| apt remove dovecot-core dovecot-mysql dovecot-pop3d dovecot-imapd | |
| sed -e '/deb/ s/^#*/#/' -i /etc/apt/sources.list.d/dovecot.list | |
| apt clean all | |
| apt install dovecot-core dovecot-mysql dovecot-pop3d dovecot-imapd | |
| apt-get install -y libmysqlclient-dev |
This file contains hidden or 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
| <?php | |
| echo preg_replace('/[[:^print:]]/', '', "Lorem ipsum dolor sit amet, consectetur adipiscing elit. 🇬🇧🍁🍃🍂🌰🍁🌿🌾🌼🌻"); | |
| ?> |
This file contains hidden or 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
| DELETE | |
| b, | |
| c | |
| FROM wp_posts a | |
| LEFT JOIN wp_term_relationships b ON ( a.ID = b.object_id ) | |
| LEFT JOIN wp_postmeta c ON ( a.ID = c.post_id ) | |
| LEFT JOIN wp_term_taxonomy d ON ( d.term_taxonomy_id = b.term_taxonomy_id ) | |
| LEFT JOIN wp_terms e ON ( e.term_id = d.term_id ) | |
| WHERE DATEDIFF(NOW(), post_date) > 90 AND a.post_type='story' |
This file contains hidden or 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
| docker-machine stop local-by-flywheel; | |
| rm -rf ~/.docker/machine/certs; | |
| docker-machine create local-cert-gen; | |
| docker-machine start local-by-flywheel; | |
| docker-machine regenerate-certs -f local-by-flywheel; | |
| docker-machine rm -f local-cert-gen; |
This file contains hidden or 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
| <?php | |
| /* Function to reverse a String without using PHP built-in functions | |
| Author: Sabri Bouchaala | |
| */ | |
| function my_str_rev ($str) | |
| { | |
| $head = 0; | |
| $tail = count($str); |
This file contains hidden or 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
| #!/bin/bash | |
| echo “Database Name: ” | |
| read -e dbname | |
| echo “Database User: ” | |
| read -e dbuser | |
| echo “Database Password: ” | |
| read -s dbpass | |
| echo “run install? (y/n)” | |
| read -e run | |
| if [ "$run" == n ] ; then |