Skip to content

Instantly share code, notes, and snippets.

View inertia186's full-sized avatar
🏠
Working from home

Anthony Martin inertia186

🏠
Working from home
View GitHub Profile
@ritaly
ritaly / fix_rvm_abort.md
Last active April 19, 2022 15:53
Ruby macOS Catalina: Fixing the abort trap

where: macOS Catalina when: Homebrew’s / rvm after Ruby update to 2.6 or 2.7 fails with abort or Abort trap: 6.
pre: make sure you're using newest rvm version rvm get stable .

All rake and rails command crashed Noticed that rails tasks like rake or rails console, rails db:create, rails db:migrate (info - added only for better googling) these command crashed with the output aborted. No errors only with abord or Abort trap: 6

⚠️ check your local paths!

This is an issue with some OpenSSL libraries. So quick fix:

@harpagon210
harpagon210 / witness_setup.md
Last active January 19, 2021 02:55
setup a witness node

1. Requirements

2. Install the Steem Smart Contracts node

To "install" the app, simply follow these steps:

@mustafaturan
mustafaturan / docker-on-pi-rootless.sh
Last active January 19, 2024 01:34
Install docker and run without sudo on Raspberry Pi
#!/bin/bash
curl -fsSL https://get.docker.com/rootless | sh
# Content to be added to .bashrc
content='export PATH="$HOME/bin:$PATH"'
# Check if content already exists in .bashrc
if grep -Fxq "$content" ~/.bashrc; then
echo "Content for bin path already exists in .bashrc. Skipping addition."
@mreichelt
mreichelt / firefox_docker.sh
Last active June 26, 2023 01:53
Run Firefox in Docker image on Mac with X11 forwarding to XQuartz
#!/bin/bash
# allow access from localhost
xhost + 127.0.0.1
# run firefox with X11 forwarding and keep running until it quits
docker run -e DISPLAY=host.docker.internal:0 jess/firefox
@mariodian
mariodian / openbazaar
Last active December 5, 2016 10:33
OpenBazaar sysv service
#! /bin/bash
### BEGIN INIT INFO
# Provides: openbazaar
# Required-Start: $local_fs $remote_fs $network $syslog $named
# Required-Stop: $local_fs $remote_fs $network $syslog $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start/stop openbazaar server
# Description: Start the openbazaar server as a specified user
### END INIT INFO
@chrisroos
chrisroos / Gemfile
Created May 14, 2015 13:22
Exploring Minitest's parallelize_me! option, in conjunction with WebMock
source 'https://rubygems.org'
gem 'minitest'
gem 'webmock'
@epixoip
epixoip / cloudflare_challenge
Last active December 2, 2023 11:53
How I obtained the private key for www.cloudflarechallenge.com
I wasn't first to get the key. Nor was I second, third, or even fourth. I'm probably not even the
10th to get it (ok, looks like I was the 8th.) But I'm happy that I was able to prove to myself
that I too could do it.
First, I have to admit I was a skeptic. Like the handful of other dissenters, I had initially
believed that it would be highly improbable under normal conditions to obtain the private key
through exploiting Heartbleed. So this was my motivation for participating in Cloudflare's
challenge. I had extracted a lot of other things with Heartbleed, but I hadn't actually set out to
extract private keys. So I wanted to see first-hand if it was possible or not.
@lelandbatey
lelandbatey / whiteboardCleaner.md
Last active April 25, 2024 02:01
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

@Dinnerbone
Dinnerbone / gist:3736487
Created September 17, 2012 09:49
New Minecraft target selector syntax!

Syntax

All target selectors start with @. The following character is the selector type. For example, @p means 'closest player'.

Target selectors may have additional, optional arguments. You can specify these in [ ], using the syntax a=0. For example, @p[a=0,b=5,c=-500].

There is a special short syntax for just specifying x, y, z and r arguments; simply list their values separated by a comma, without x=. For example: @p[100,64,-100,5] for 5 range, x=100, y=64 and z=-100. Each of these are optional and skippable by leaving them empty. For example, to just specify y coordinate: @p[,64].

Global Arguments:

  • x - X coordinate for search center. Default is senders coordinate, or 0.
  • y - Y coordinate for search center. Default is senders coordinate, or 0.
@Dinnerbone
Dinnerbone / banned-ips.txt
Created April 19, 2012 17:38
New file formats in 1.3
#Address, Date/Time, Banned By, Until, For
#Exactly the same as banned-players, but with IP addresses.