Skip to content

Instantly share code, notes, and snippets.

View AyrtonRicardo's full-sized avatar
👨‍💻
Somewhere thinking

Ayrton Ricardo AyrtonRicardo

👨‍💻
Somewhere thinking
View GitHub Profile
@FreddieOliveira
FreddieOliveira / docker.md
Last active December 10, 2025 00:41
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@rkkoszewski
rkkoszewski / gist:aa531cee7126edf329b76bdd0546f502
Last active December 31, 2024 12:32
Notes for installing XorgXrdp and Xrdp with GLAMOR support
THIS ARE MY NOTES OF BUILDING AN INSTALLING XORGXRDP AND XRDP WITH GPU ACCELERATION
TESTED ON DEBIAN 9.13
-- Build XorgXrdp with GPU acceleration ("script" - to be adjusted to your needs) : --
## << BUILD AND INSTALL SCRIPT START >> ##
#!/bin/bash
# Install Latest XRDP with XORGXRDP
# README
@giampaolotrapasso
giampaolotrapasso / Designing Event-Driven Systems links.md
Created August 1, 2018 09:56
List of links from Designing Event-Driven Systems by Ben Stopford
@knoopx
knoopx / README.md
Last active September 13, 2025 19:41
Creality Ender 3 Stock Factory Vref

Creality3D v1.1.2 stock vref values

A4988 Drivers
Vref set to ~90% of stepper rated current
Rs = 0.1ohm

X = 0,58v (0,725A)
Y = 0,58v (0,725A)
Z = 0,58v (0,725A)
anonymous
anonymous / -
Created November 16, 2017 12:19
DISPOSITIVO TIPO ESTADO CONEXÃO
br-8fe90202a312 bridge conectado br-8fe90202a312
br-a9361947302e bridge conectado br-a9361947302e
docker0 bridge conectado docker0
wlp2s0 wifi conectado S2IT-AQA-GUEST
enp3s0 ethernet não disponível --
lo loopback não gerenciável --
anonymous
anonymous / -
Created November 16, 2017 12:07
System: Host: NB000919 Kernel: 4.8.0-53-generic x86_64 (64 bit gcc: 5.4.0)
Desktop: Cinnamon 3.4.3 (Gtk 3.18.9-1ubuntu3.3) dm: lightdm Distro: Linux Mint 18.2 Sonya
Machine: System: Dell (portable) product: Inspiron 7460 Chassis: type: 10
Mobo: Dell model: 0V736W v: A01 Bios: Dell v: 1.1.1 date: 02/14/2017
CPU: Dual core Intel Core i5-7200U (-HT-MCP-) cache: 3072 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 10800
clock speeds: min/max: 400/3100 MHz 1: 555 MHz 2: 749 MHz 3: 751 MHz 4: 535 MHz
Graphics: Card-1: Intel Device 5916 bus-ID: 00:02.0 chip-ID: 8086:5916
Card-2: NVIDIA GM108M [GeForce 940MX] bus-ID: 01:00.0 chip-ID: 10de:134d
Display Server: X.Org 1.18.4 driver: nvidia Resolution: [email protected], [email protected]
@offirgolan
offirgolan / unwatch-gh-org.js
Created August 2, 2017 05:57
Unwatch All Org Repos
// Navigate to https://github.com/watching and then run:
// Taken from: https://stackoverflow.com/questions/11043374/how-to-unwatch-multiple-repos-easily-on-github
Array.prototype
.slice.apply(document.querySelectorAll('.js-subscription-row'))
.forEach(el => { const org = el.querySelector('a[href^="/YOUR_ORG"]'); if (org) el.querySelector('button').click()});
@bastman
bastman / docker-cleanup-resources.md
Created March 31, 2016 05:55
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@es
es / docker-compose.yml
Last active October 19, 2016 20:50
Setup Telegraf with InfluxDB & Grafana
telegraf:
image: emil/telegraf
volumes:
- telegraf.conf:/etc/opt/influxdb/telegraf.conf:ro
links:
- influxdb
influxdb:
image: tutum/influxdb
ports:
@jasperkuperus
jasperkuperus / DiscriminatorListener.php
Last active July 7, 2023 17:35
This gist shows you how to define your discriminator maps at child level in doctrine 2. Why? Because your parent class shouldn't be aware of all it's subclasses. Please read my article for more explanation: https://medium.com/@jasperkuperus/defining-discriminator-maps-at-child-level-in-doctrine-2-1cd2ded95ffb
<?php
namespace My\Namespace;
/**
* This Listener listens to the loadClassMetadata event. Upon this event
* it hooks into Doctrine to update discriminator maps. Adding entries
* to the discriminator map at parent level is just not nice. We turn this
* around with this mechanism. In the subclass you will be able to give an
* entry for the discriminator map. In this listener we will retrieve the
* load metadata event to update the parent with a good discriminator map,