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
https://docs.microsoft.com/en-us/azure/architecture/patterns |
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
#!/usr/bin/python3 | |
import re | |
import os | |
import sys | |
import getopt | |
package = '!' | |
clazz = '#' | |
type = ':' |
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
mvn archetype:generate -DgroupId=fr.myGroupId -DartifactId=MyApplication -Dpackagename=fr.myGroupId -DarchetypeArtifactId=maven-archetype-quickstart |
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
UPDATE `t_bid_item_property_value` SET `name` = 'PE 150' WHERE `name` = 'PE-150'; | |
UPDATE `t_bid_item_property_value` SET `name` = 'SE 50' WHERE `name` = 'SE-50'; | |
UPDATE `t_bid_item_property_value` SET `name` = 'SE 250' WHERE `name` = 'SE-250'; | |
UPDATE `t_bid_item_property_value` SET `name` = 'SE 300' WHERE `name` = 'SE-300'; | |
UPDATE `t_bid_item_property` SET `name` = '数据量要求' WHERE `name` = '数据量'; | |
ALTER TABLE t_bid_order_item CHANGE category_labels category_labels VARCHAR(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '类别标签'; |
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 run -d --restart=always --name=ehforwarderbot -v $(pwd)/config.py:/opt/ehForwarderBot/config.py -v $(pwd)/tgdata.db:/opt/ehForwarderBot/plugins/eh_telegram_master/tgdata.db royx/docker-efb |
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 run -d -p443:443 --name=mtproto-proxy --restart=always -v proxy-config:/data telegrammessenger/proxy:latest |
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
# 枚举实现 | |
/** | |
* Enum based singleton implementation. Effective Java 2nd Edition (Joshua Bloch) p. 18 | |
* | |
* This implementation is thread safe, however adding any other method and its thread safety | |
* is developers responsibility. | |
*/ | |
public enum EnumIvoryTower { | |
INSTANCE; |
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
#Install with brew | |
#Use brew to install the nginx with command: | |
brew install nginx | |
#After install run: | |
sudo nginx | |
#Testing | |
#Open Navigator it by going to URL: |
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 run --name mysql1 -p 3307:3306 -e MYSQL_ROOT_PASSWORD=[passwd] -d akoller/low-memory-mysql:latest |
NewerOlder