Skip to content

Instantly share code, notes, and snippets.

View maagmirror's full-sized avatar
☄️
easteregg

Maag maagmirror

☄️
easteregg
View GitHub Profile
#include <avr/sleep.h>
#include <avr/power.h>
#include <Servo.h>
#include <ezButton.h>
// Constants
const int BUTTON_PIN_1 = 7;
const int BUTTON_PIN_2 = 6;
const int SERVO_PIN = 8;
const int LED_PIN = 13;
#include <Servo.h>
#include <ezButton.h>
// Constants
const int BUTTON_PIN_1 = 7;
const int BUTTON_PIN_2 = 6;
const int SERVO_PIN = 8;
const int LED_PIN = 13;
ezButton button1(BUTTON_PIN_1);
#!/bin/bash
# Tu correo electrónico registrado en Cloudflare
CF_EMAIL="[email protected]"
# Tu clave de API global de Cloudflare (asegúrate de cambiarla si aún no lo has hecho)
CF_API_KEY="api_key"
# La IP antigua que deseas actualizar
OLD_IP="1.1.1.1"
# La nueva IP
NEW_IP="1.1.1.1"
@maagmirror
maagmirror / update_dns.sh
Last active February 9, 2024 17:08
update the dns of vestacp
#!/bin/sh
#script to change ips on a VestaCP server.
#usage:
# $0 <oldip> <newip>
LOG=/var/log/vesta/system.log
MYUID=`/usr/bin/id -u`
if [ "$MYUID" != 0 ]; then
#include <Servo.h>
#include <ezButton.h>
// Constants
const int BUTTON_PIN_1 = 7; // Arduino pin connected to the first button's pin
const int BUTTON_PIN_2 = 6; // Arduino pin connected to the second button's pin
const int SERVO_PIN = 8; // Arduino pin connected to servo motor's pin
const int LED_PIN = 13; // Arduino pin connected to the LED
// Create ezButton objects for both buttons
#include <Servo.h>
#include <ezButton.h>
// Constants
const int BUTTON_PIN_1 = 7; // Arduino pin connected to the first button's pin
const int SERVO_PIN = 8; // Arduino pin connected to servo motor's pin
const int LED_PIN = 13; // Arduino pin connected to the LED
// Create ezButton objects for both buttons
ezButton button1(BUTTON_PIN_1);
@maagmirror
maagmirror / PlateFlipper.ino
Created November 20, 2023 21:20
controlling the money outside my wallet because the state take photos of my bike without my permission and cash me out it
#include <Servo.h>
#include <ezButton.h>
// Constants
const int BUTTON_PIN_1 = 7; // Arduino pin connected to the first button's pin
const int BUTTON_PIN_2 = 1; // Arduino pin connected to the second button's pin
const int SERVO_PIN = 9; // Arduino pin connected to servo motor's pin
// Create ezButton objects for both buttons
ezButton button1(BUTTON_PIN_1);
@maagmirror
maagmirror / sendip.sh
Created October 31, 2023 15:40
get the ip and send it to an api
#!/bin/sh
# Obtener la dirección IP pública
public_ip=$(curl -s https://ipinfo.io/ip)
# URL de destino (reemplaza con la URL a la que deseas enviar la IP)
url="https://test.com/dlinkip.php?ip=$public_ip"
# Realizar la solicitud GET
curl -s "$url" > /dev/null
@maagmirror
maagmirror / Taringa_Notifications_Title_Update.js
Last active October 25, 2023 00:58
script para sacar el molesto 1 cuando no tenes notificaciones en taringa V8
// ==UserScript==
// @name Taringa Notifications Title Update
// @namespace https://maag.nibiru.com.uy
// @version 1.1
// @description Agrega (1) al título de Taringa si hay notificaciones
// @author Maag
// @match https://www.taringa.net/*
// @grant none
// ==/UserScript==
.ast-builder-grid-row.ast-grid-center-col-layout {
grid-template-columns: 1fr 2fr 1fr;
}
.ast-builder-layout-element.ast-flex.site-header-focus-item.ast-header-search {
min-width: 100%!important;
}
.ast-search-menu-icon.ast-inline-search {
width: 100%;