INSERT GRAPHIC HERE (include hyperlink in image)
Subtitle or Short Description Goes Here
import pandas as pd | |
import numpy as np | |
import fastparquet | |
from sqlalchemy import create_engine, schema, Table | |
# Copied from pandas with modifications | |
def __get_dtype(column, sqltype): | |
import sqlalchemy.dialects as sqld |
init python: | |
class DynamicBlink(renpy.display.layout.DynamicDisplayable): | |
""" | |
A dynamic image that blinks every now and then | |
""" | |
def __init__(self, *args, **kwargs): | |
self.current_image = args[1] | |
self.blink_st = -1.0 # arbitrary number to force normal start |
#!/usr/bin/env python | |
import tkinter as tk | |
import math | |
import re | |
from collections import ChainMap | |
Nrows = 5 | |
Ncols = 5 |
#!/bin/bash | |
# Adicione um novo remote; pode chamá-lo de "upstream": | |
git remote add upstream https://github.com/usuario/projeto.git | |
# Obtenha todos os branches deste novo remote, | |
# como o upstream/master por exemplo: | |
git fetch upstream |
You may want to upload a 100GB file over an unstable network, or feed your scripts smaller inputs to load in RAM. In both cases, just splitting your file into smaller chunks is an easy solution.
Great news is Unix/Linux systems have the split
utility already installed. And using it is simple as pie:
Cut a binary file into chunks of X bytes:
split -b X bigfile.avi
Sometimes you have a process you lost the PID, and would like to kill it.
You can use top
(or better htop
) to search for your process name and press k
to kill it.
But this isn’t optimal when you aren’t sure of its name.
A better alternative is to search by the port opened, for example port 80:
sudo lsof -i :80
Public key authentication is generally safer than password-based and is way more convenient.
SSH offers a command to set it up, ssh-copy-id
(part of the openssh client package) will copy your public key to the remote machine.
Use it like this:
ssh-copy-id -i ~/.ssh/my_key.pub remote-machine