Skip to content

Instantly share code, notes, and snippets.

View hsuan1117's full-sized avatar
🥰

Hsuan hsuan1117

🥰
View GitHub Profile
@lawrence910426
lawrence910426 / Hello world to MQL5
Created November 23, 2022 14:13
Hello world to quantitative trading with MT5
//+------------------------------------------------------------------+
//| HelloWorld.mq5 |
//| Copyright 2022, MetaQuotes Ltd. |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2022, MetaQuotes Ltd."
#property link "https://www.mql5.com"
#property version "1.00"
#include <Trade\Trade.mqh>
#!/bin/bash
echo Enter Domain Name:
read domain
sed -i -r "s/(aaa)/$domain/g; s/(xxx)/$domain/g" test
@matthewpalmer
matthewpalmer / pod.yaml
Created July 21, 2018 04:13
kubernetes nginx php-fpm pod
# Create a pod containing the PHP-FPM application (my-php-app)
# and nginx, each mounting the `shared-files` volume to their
# respective /var/www/html directories.
kind: Pod
apiVersion: v1
metadata:
name: phpfpm-nginx-example
spec:
volumes:
@spalladino
spalladino / mysql-docker.sh
Created December 22, 2015 13:47
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE