sudo service nginx stop
sudo apt-get remove nginx nginx-common
sudo add-apt-repository ppa:fxr/nginx-alpn
sudo apt-get update
sudo apt-get install nginx
sudo service nginx restart
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
| from shapely.geometry import Polygon | |
| from matplotlib import pyplot as plt | |
| from shapely.ops import cascaded_union | |
| import geopandas as gpd | |
| m = cascaded_union([Polygon(i if i[0] == i[-1] else i[:-2].append(i[0])) for i in [ | |
| [ | |
| [81.300003051757812, 37.588695526123047], | |
| [75.599998474121094, 37.588695526123047], | |
| [75.599998474121094, 39.888694763183594], |
- docker exec -it gitlab /bin/sh
- /opt/gitlab/embedded/bin/redis-cli -s /var/opt/gitlab/redis/redis.socket
- keys cache:gitlab:rack::attack*
- del cache:gitlab:rack::attack:allow2ban:ban:172.17.0.1
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
| package main | |
| import ( | |
| "database/sql" | |
| "encoding/csv" | |
| "fmt" | |
| _ "github.com/mattn/go-sqlite3" | |
| "io" | |
| "log" | |
| "os" |
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
| from shapely.geometry import mapping, shape | |
| import fiona | |
| import csv | |
| record_index = 'grid filed1 filed2' | |
| record_index = record_index.split() |
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
| from shapely.geometry import mapping, Polygon | |
| import fiona | |
| import csv | |
| # Carrefour GZ | |
| gz = Polygon([]) | |
| # chengdu 1 | |
| cd1 = Polygon([]) | |
| # chengdu 2 | |
| cd2 = Polygon([]) |
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
| fn apply<F>(mut f: F) | |
| where | |
| F: FnMut(), | |
| { | |
| f(); | |
| f(); | |
| } | |
| fn main() { | |
| let mut farewell = "goodbye".to_owned(); |
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
| Architecture: x86_64 | |
| CPU op-mode(s): 32-bit, 64-bit | |
| Byte Order: Little Endian | |
| CPU(s): 72 | |
| On-line CPU(s) list: 0-71 | |
| Thread(s) per core: 2 | |
| Core(s) per socket: 18 | |
| Socket(s): 2 | |
| NUMA node(s): 2 | |
| Vendor ID: GenuineIntel |
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
| class Nested: | |
| def __init__(self, data): | |
| self.data = data | |
| def __getitem__(self, item): | |
| if self.data is None: | |
| return Nested(None) | |
| if isinstance(item, int) and isinstance(self.data, list): | |
| if len(self.data) >= item: |
gost -L="http2://username:pwd:8086?probe_resist=code:501" -F=http://127.0.0.1:7890