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
| sudo docker run -d -p 500:500/udp -p 4500:4500/udp -p 1701:1701/tcp -p 1194:1194/udp --name softether-vpn -e PSK=En4EW25eI0 -e USERNAME=iman -e PASSWORD=20WSs7Ff4YSm siomiz/softethervpn |
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 | |
| cd ~ | |
| # tmux session name | |
| SN=PRIVXMR | |
| tmux kill-session -t $SN | |
| cd ~/testnet |
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
| // Iranian keyboard layout | |
| // Replace with "/usr/share/X11/xkb/symbols/ir" | |
| // Customized Version | |
| //////////////////////////////////////// | |
| // Persian layout, | |
| // based on | |
| // Information Technology – Layout of Persian Letters and Symbols on Computer Keyboards | |
| // ISIRI 9147 – 1st Edition |
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
| #============================================================================= | |
| # dark_powered.toml --- dark powered configuration example for SpaceVim | |
| # Copyright (c) 2016-2017 Wang Shidong & Contributors | |
| # Author: Wang Shidong < wsdjeg at 163.com > | |
| # URL: https://spacevim.org | |
| # License: GPLv3 | |
| #============================================================================= | |
| # All SpaceVim option below [option] section | |
| [options] |
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/env bash | |
| # install docker | |
| # https://docs.docker.com/engine/installation/linux/ubuntulinux/ | |
| # install docker-compose | |
| # https://docs.docker.com/compose/install/ | |
| # install letsencrypt | |
| # https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04 |
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
| # test if an [ip:port] is open | |
| import socket | |
| def isOpen(ip,port): | |
| s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| try: | |
| s.connect((ip, int(port))) | |
| s.shutdown(2) | |
| return True |
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
| SELECT | |
| tablename, | |
| reset_sequence ( C.tablename, 'id', C.tablename || '_id_seq' ) | |
| FROM | |
| pg_catalog.pg_tables AS "c" | |
| WHERE | |
| schemaname <> 'pg_catalog' | |
| AND schemaname <> 'information_schema' | |
| AND tablename NOT IN ( 'layer', 'spatial_ref', 'spatial_ref_sys', 'combination_has_province', 'statement', 'combination_has_category', 'combination_has_city', 'discount_has_category', 'value' ); |
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/env python | |
| # -*- coding: utf-8 -*- | |
| # Copyright 2019 Iman Mousavi | |
| # Use : curl -s https://gist.githubusercontent.com/irmaster/a7abd59737aea230426e52a1275bcb03/raw/5b5d0a012e279d2c5eb742aadf3f197f2a6c2ebb/speedtest.py | python - | |
| # All Rights Reserved. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); you may | |
| # not use this file except in compliance with the License. You may obtain | |
| # a copy of the License at | |
| # |
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 | |
| require_once "vendor/autoload.php"; | |
| use Sop\CryptoTypes\Asymmetric\EC\ECPublicKey; | |
| use Sop\CryptoTypes\Asymmetric\EC\ECPrivateKey; | |
| use Sop\CryptoEncoding\PEM; | |
| use kornrunner\keccak; | |
| /** |
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
| paytxfee=0.00000000 | |
| minrelaytxfee=0.00000000 | |
| minmempoolfee=0.00000000 | |
| mintxfee=0.0000001 | |
| discardfee=0 | |
| minrelayfee=0 |