create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
Clean Code: By Robert C. Martin | |
The Mythical Man-month: By Frederick Brooks | |
The Pragmatic Programmer: Your Journey to Mastery | |
Code Complete (2 Edition): By Steve McConnell | |
The Art of Computer Programming | |
Programming Pearls | |
Code: Charles Petzold | |
Introduction to Algorithms | |
Refactoring: Improving the Design of Existing Code | |
Design Patterns: Elements of Reusable Object-Oriented Software |
import time | |
import paho.mqtt.client as paho | |
from paho import mqtt | |
# setting callbacks for different events to see if it works, print the message etc. | |
def on_connect(client, userdata, flags, rc, properties=None): | |
""" | |
Prints the result of the connection with a reasoncode to stdout ( used as callback for connect ) |
const getRefreshToken = { | |
url: pm.environment.get("refresh_url"), | |
method: 'POST', | |
header: { | |
'Content-Type': 'application/json', | |
}, | |
body: { | |
mode: 'raw', | |
raw: JSON.stringify({ | |
refresh: pm.environment.get("refresh_token"), |
Go is not available to install via Homebrew at the time of this writing. (Dec 18th 2020)
Go v1.16 will ship with Apple Silicon support in February of 2021, however the Go 1.16 beta can be installed from the Go website and can be linked to brew so that other brew packages that depend on Go may use it.
mkdir /opt/homebrew/Cellar/go
ln -s /usr/local/go /opt/homebrew/Cellar/go/1.16
brew link go
brew install geos gdal
# settings.py
GDAL_LIBRARY_PATH = os.getenv('GDAL_LIBRARY_PATH')
server { | |
listen 80; | |
server_name server.php.com; | |
root /home/sudipto/workspace/phproot; | |
index index.php; | |
location / { | |
try_files $uri $uri/ =404; | |
} |
sudo swapon -s | |
sudo fallocate -l 4G /swapfile | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile |
sudo swapon -s | |
sudo fallocate -l 4G /swapfile | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile |
class RestrictedSerializerOptions(serializers.ModelSerializerOptions): | |
""" | |
Meta class options for ModelSerializer | |
""" | |
def __init__(self, meta): | |
super(RestrictedSerializerOptions, self).__init__(meta) | |
self.writable_fields = getattr(meta, 'writable_fields', ()) | |
class WriteRestrictedModelSerializer(serializers.ModelSerializer): |