Skip to content

Instantly share code, notes, and snippets.

View hneiva's full-sized avatar
🚀
Everything happens so much

Heitor Neiva hneiva

🚀
Everything happens so much
  • Mozilla
  • Kamloops, BC - Canada
View GitHub Profile
#!/usr/bin/env python3
"""
procio_monitor.py
A lightweight 'iotop-like' Python script to continuously list processes
with the highest disk read/write activity in bytes/sec over a sampling interval.
Requirements: psutil
Usage examples:
python procio_monitor.py # default: interval=1.0s, top 15, sort by write
@hneiva
hneiva / launch.json
Created December 7, 2022 23:26
Debug taskgraph from vscode
{
"version": "0.2.0",
"configurations": [
{
"name": "Taskgraph full",
"type": "python",
"request": "launch",
"program": "", // <---- Add value from `pyenv which taskgraph` (or just `which taskgraph` if you don't use pyenv)
"console": "integratedTerminal",
"args": ["full", "-p", "taskcluster/test/params"], // Adjust these as needed
@hneiva
hneiva / rcodesign_docker.md
Created June 2, 2022 17:56
Docker image with rcodesign and transporter
@hneiva
hneiva / teamcity-server.service
Created April 19, 2017 16:32
Teamcity Server Systemd Definition
[Unit]
Description=TeamCity Server
After=network.target
[Service]
Type=forking
PIDFile=/opt/teamcity/logs/teamcity.pid
; Make sure the CATALINA_PID env variable is setup in $TEAMCITY_HOME/bin/catalina.sh
User=teamcity
ExecStart=/opt/teamcity/bin/teamcity-server.sh start
@hneiva
hneiva / rds_pg_osm.sql
Created November 23, 2016 19:59
Commands to start a new OpenStreetMap database on AWS RDS Postgres (copy/paste version)
-- Create extensions
create extension postgis;
create extension hstore;
create extension fuzzystrmatch;
create extension postgis_tiger_geocoder;
create extension postgis_topology;
-- Change owner of schemas
alter schema tiger owner to rds_superuser;
alter schema topology owner to rds_superuser;