Skip to content

Instantly share code, notes, and snippets.

View rhaseven7h's full-sized avatar
🙊

Gabriel Medina rhaseven7h

🙊
View GitHub Profile
@oooh-boi
oooh-boi / gist:a2e47433443125887d20aafd5cec7388
Created January 18, 2020 12:21
OoohBoi Video Tutorial : Full-height Image Widget in Elementor PRO
/* be sure to copy-paste to the Image Widget Custom CSS panel */
selector,
selector .elementor-widget-container,
selector .elementor-image,
selector .elementor-image > a {
height: 100%;
}
selector .elementor-image img {
object-fit: cover;
object-position: 50% 50%;
@rhaseven7h
rhaseven7h / get-certificate.sh
Last active June 12, 2019 20:52
Let's Encrypt - Ubuntu 18.04 - CertBot Wildcard Certificate
#!/bin/sh
certbot certonly \
--manual \
-d '*.yourdomain.com' \
-d yourdomain.com \
--agree-tos \
--no-bootstrap \
--manual-public-ip-logging-ok \
--preferred-challenges dns-01 \
void handleSerialComms() {
while (Serial1.available()) {
char inByte = Serial1.read();
Serial.write(inByte);
}
while (Serial.available()) {
int inByte = Serial.read();
Serial1.write(inByte);
}
}
@coco98
coco98 / kube-registry.yaml
Created May 2, 2017 16:31
Docker registry on minikube
apiVersion: v1
kind: ReplicationController
metadata:
name: kube-registry-v0
namespace: kube-system
labels:
k8s-app: kube-registry
version: v0
spec:
replicas: 1
@denji
denji / README.md
Last active April 24, 2024 17:20 — forked from Cubixmeister/README.md
Simple Sentry docker-compose.yml
  1. Download docker-compose.yml to dir named sentry
  2. Change SENTRY_SECRET_KEY to random 32 char string
  3. Run docker-compose up -d
  4. Run docker-compose exec sentry sentry upgrade to setup database and create admin user
  5. (Optional) Run docker-compose exec sentry pip install sentry-slack if you want slack plugin, it can be done later
  6. Run docker-compose restart sentry
  7. Sentry is now running on public port 9000
## Useful Commands
Get kubectl version
kubectl version
Get cluster info:
@vbsessa
vbsessa / chrome-devtools.md
Last active May 2, 2024 23:25
How to customize Chrome devtools fonts
  1. Enable #enable-devtools-experiments flag in chrome://flags section.

  2. Open Chorme Devtools and check Settings > Experiments > Allow extensions to load custom stylesheets.

  3. Create the following four files in a dedicated folder.

    3.1. devtools.html

    <html>
    <head></head>
    <body><script src="devtools.js"></script></body>
@rhaseven7h
rhaseven7h / Main.java
Created June 10, 2016 20:59
Get single character in java console (terminal, blocking call)
import java.io.Console;
import java.io.IOException;
import java.io.Reader;
import java.lang.Runtime;
public class Main {
public static void main(String[] args) throws IOException, InterruptedException {
System.out.println("Press the \"z\" key to exit!");
String[] cmd = {"/bin/sh", "-c", "stty raw </dev/tty"};
@fiorix
fiorix / gist:9664255
Created March 20, 2014 13:55
Go multicast example
package main
import (
"encoding/hex"
"log"
"net"
"time"
)
const (
@elithrar
elithrar / supervisord.conf
Last active September 4, 2021 20:08
Example supervisord.conf for a Go application #golang
[unix_http_server]
file=/var/run/supervisor.sock
chmod=0770
chown=root:supervisor
[supervisord]
pidfile=/var/run/supervisord.pid
nodaemon=false
logfile=/var/log/supervisord/supervisord.log
loglevel=error