API url: s{server}-{country}.ogame.gameforge.com/api/{endpoint}
players.xml (1 day)
Contain list of all players on the server along with their names and status.
from cryptography.hazmat.backends import default_backend | |
from cryptography.hazmat.primitives import hashes, padding | |
from cryptography.hazmat.primitives.asymmetric import ec | |
from cryptography.hazmat.primitives.kdf.hkdf import HKDF | |
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes | |
from secrets import token_bytes | |
class DiffieHellman: | |
def __init__(self): |
#!/bin/bash | |
# | |
# GoLang cross-compile snippet for Go 1.6+ based loosely on Dave Chaney's cross-compile script: | |
# http://dave.cheney.net/2012/09/08/an-introduction-to-cross-compilation-with-go | |
# | |
# To use: | |
# | |
# $ cd ~/path-to/my-awesome-project | |
# $ go-build-all | |
# |
See also, http://libraryofalexandria.io/cgo/
cgo
has a lot of trap.
but Not "C" pkg also directory in $GOROOT/src
. IDE's(vim) Goto command not works.
So, Here collect materials.
if _, err := os.Stat("/path/to/whatever"); os.IsNotExist(err) { | |
// path/to/whatever does not exist | |
} | |
if _, err := os.Stat("/path/to/whatever"); !os.IsNotExist(err) { | |
// path/to/whatever exists | |
} |