Skip to content

Instantly share code, notes, and snippets.

View EnriqueTejeda's full-sized avatar
🌎
Hack the planet!

Enrique Tejeda EnriqueTejeda

🌎
Hack the planet!
View GitHub Profile
@sherry-x
sherry-x / gist:f45f0f4e3f65f6eb5ab75ded339ac372
Last active August 31, 2022 20:27
nodes not proposing
0 | 0.00% | NaN% | 0 | 0 | 0 | 0 | 000c5b2258a85d4ea8a313f09ff68165cb87e6e1a917f245a94949f0895fc290
0 | 0.00% | NaN% | 0 | 0 | 0 | 0 | 00fa666ddf3c506305d2f6226d19f2df4c25c09f8537cecd4fd8a5b381366d3b
0 | 0.00% | NaN% | 0 | 0 | 0 | 0 | 03c02943185bd29f525828fc418a80cf2efb1da7a8e44d7d06e045422176b824
0 | 0.00% | NaN% | 0 | 0 | 0 | 0 | 050c8d865560ff370970f4652d1c08c376ed85d68647a3b34863004d84b6388e
0 | 0.00% | NaN% | 0 | 0 | 0 | 0 | 0d8fee8284ef09fe6fb272d357e31f142a8d2cef2c089aa618a6e6de76f53703
0 | 0.00% | NaN% | 0 | 0 | 0 | 0 | 0f33a11bc2cc943b451e17e4d74dfc7fcc3af2bf5a6ba6dfefffc4f7c7e95d04
0 | 0.00% | NaN% | 0 | 0 | 0 | 0
@eisenreich
eisenreich / wait_for_http_200.sh
Last active February 6, 2024 19:03 — forked from rgl/wait_for_http_200.sh
Wait for HTTP endpoints to return 200 OK with bash, curl and timeout
#!/bin/bash
##############################################################################################
# Wait for URLs until return HTTP 200
#
# - Just pass as many urls as required to the script - the script will wait for each, one by one
#
# Example: ./wait_for_urls.sh "${MY_VARIABLE}" "http://192.168.56.101:8080"
##############################################################################################
@rain-1
rain-1 / Raspberry Pi, Static HTTPS site with Docker and Nginx.md
Last active April 3, 2024 18:17
Raspberry Pi, Static HTTPS site with Docker and Nginx

Raspberry Pi, Static HTTPS site with Docker and Nginx

This tutorial is dated Oct 2021, if it's much further on than that this information might be out of date.

This is a guide on setting up a static HTTPS website on your raspberry pi using docker and nginx. The aim is to have this running on the raspberry pi and to be able to access it from a host computer on the same local network. You should already be able to ssh into your pi from your host computer and have raspberry pi OS set up.

Find your raspberry pi

@DanyelMorales
DanyelMorales / or.go
Created August 11, 2021 20:26
OR CHANNELS
package main
import (
"fmt"
"time"
)
func main() {
var or func(channels ...<-chan interface{}) <-chan interface{}
or = func(channels ...<-chan interface{}) <-chan interface{} {

Please credit this guide if you use its instructions elsewhere.

Installing Spinnaker on a local Kubernetes cluster for local Spinnaker development

All the commands in this document are meant to be run from your computer’s terminal, unless stated otherwise. This guide has only been tested on macOS Catalina.

Install Docker and Kubernetes

  1. Download and install Docker Desktop from: https://www.docker.com/products/docker-desktop
@etigui
etigui / rpi_config_fail2ban.md
Last active October 24, 2021 22:38
Install Fail2Ban on the Raspberry Pi

Install fail2ban

Update and install Fail2Ban by typing the following commands:

$> sudo apt-get update
$> sudo apt-get install fail2ban

Edit SSH Fail2Ban configurations. Open up the "/etc/fail2ban/jail.local" file with the following command (jail.local file should be empty):

$&gt; sudo nano /etc/fail2ban/jail.local
@erdincay
erdincay / sugh.sh
Last active March 14, 2024 21:00
su GitHub (downloading all repositories from a given user)
#!/bin/bash
if [ -z "$1" ]; then
echo "waiting for the following arguments: username + max-page-number"
exit 1
else
name=$1
fi
if [ -z "$2" ]; then
@heroheman
heroheman / ranger-cheatsheet.md
Last active May 24, 2024 06:18
Ranger Cheatsheet

Ranger Cheatsheet

General

Shortcut Description
ranger Start Ranger
Q Quit Ranger
R Reload current directory
? Ranger Manpages / Shortcuts
@RobinDev
RobinDev / squidanonymousproxy.md
Last active May 4, 2024 00:19
Install a SQUID anonymous proxy
  1. Install SQUID
apt-get install squid
  1. Create an user
htpasswd -md /etc/squid3/users myuserlogin`