Skip to content

Instantly share code, notes, and snippets.

View douglasmiranda's full-sized avatar
👽

Douglas Miranda douglasmiranda

👽
  • Earth, Brazil
View GitHub Profile

Keybase proof

I hereby claim:

  • I am douglasmiranda on github.
  • I am douglasmiranda (https://keybase.io/douglasmiranda) on keybase.
  • I have a public key whose fingerprint is F99B 7508 C1AE 1A2C B575 6FF9 45B8 D780 7808 D37C

To claim this, I am signing this object:

@douglasmiranda
douglasmiranda / disable.sh
Created November 7, 2017 21:38
Disable Advanced Power Management for external drive
sudo hdparm -B 255 /dev/sdX
@douglasmiranda
douglasmiranda / docker-aarch64.md
Last active June 1, 2022 10:55
Packaging Docker aarch64 for Debian Stretch. (On Packet.net)

Deploy a server to packet.net

Type 2A - Ubuntu 17.04

ssh into it.

Install Docker. (Yes we use Docker to build Docker)

This is a old docker, but It's good for us. apt install docker.io

@douglasmiranda
douglasmiranda / Package-Control.json
Created September 25, 2017 03:02
Sublime Settings
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"A File Icon",
"Color Highlighter",
"Djaneiro",
@douglasmiranda
douglasmiranda / Makefile
Created September 19, 2017 22:16
Makefile - read input and export variable.
_build:
# ...
export IMAGE
build: ## build images / see `make available_images` for a list of images
@read -p "Enter image name: " IMAGE; $(MAKE) _build
Xorg :1 -configure
@douglasmiranda
douglasmiranda / move.sh
Created September 5, 2017 00:53
Moving ONLY PDF files from directories to a different destination.
# find *.pdf files | move every found file to destination/
find source-dir/* -name '*.pdf' -exec mv -t destination/ {} \;
@douglasmiranda
douglasmiranda / installing.md
Last active April 17, 2019 16:42
Installing some stuff
@douglasmiranda
douglasmiranda / core-os-install.md
Last active October 7, 2024 19:29
Installing CoreOS on my old laptop
@douglasmiranda
douglasmiranda / stop.sh
Created August 26, 2017 06:29
Stop beep (PC speaker) on linux
rmmod pcspkr
# Make it permanent:
echo "blacklist pcspkr" > /etc/modprobe.d/nobeep.conf