System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go
directory by:
System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go
directory by:
#!/bin/sh
# https://docs.docker.com/engine/installation/linux/ubuntu/#install-using-the-repository
sudo apt-get update && sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88 | grep [email protected] || exit 1
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
import pytesseract | |
import sys | |
import argparse | |
try: | |
import Image | |
except ImportError: | |
from PIL import Image | |
from subprocess import check_output | |
#!/usr/bin/env python3 | |
""" | |
License: MIT License | |
Copyright (c) 2023 Miel Donkers | |
Very simple HTTP server in python for logging requests | |
Usage:: | |
./server.py [<port>] | |
""" | |
from http.server import BaseHTTPRequestHandler, HTTPServer |
# Basic Download: | |
youtube-dl URL | |
# Download Playlist, put in folder, and index with order: | |
youtube-dl -o '%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' URL | |
# Download to /$uploader/$date/$title.$ext: | |
youtube-dl -o '%(uploader)s/%(date)s/%(title)s.%(ext)s' URL | |
# Download playlist starting from certain video: |
# Alert when the rate of events exceeds a threshold | |
# (Required) | |
# Rule name, must be unique | |
name: OutOfMemoryError | |
# (Required) | |
# Type of alert. | |
# the frequency rule type alerts when num_events events occur with timeframe time | |
type: frequency |
class Node(): | |
"""A node class for A* Pathfinding""" | |
def __init__(self, parent=None, position=None): | |
self.parent = parent | |
self.position = position | |
self.g = 0 | |
self.h = 0 |
I've been using create-react-app lately as I find it very useful to kick things off while starting a project. I almost always follow JavaScript Standard Style and I found myself googling it so I figured out I should write it down.
I really like keeping dependencies as local as possible but if you prefer you can install it globally.
yarn add standard --dev
or
### Welcome to the InfluxDB configuration file. | |
# Once every 24 hours InfluxDB will report usage data to usage.influxdata.com | |
# The data includes a random ID, os, arch, version, the number of series and other | |
# usage data. No data from user databases is ever transmitted. | |
# Change this option to true to disable reporting. | |
reporting-disabled = false | |
# we'll try to get the hostname automatically, but if it the os returns something | |
# that isn't resolvable by other servers in the cluster, use this option to |
Table of Contents