Skip to content

Instantly share code, notes, and snippets.

View maagmirror's full-sized avatar
☄️
easteregg

Maag maagmirror

☄️
easteregg
View GitHub Profile
@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%;
@maagmirror
maagmirror / autoexec.cfg
Last active May 27, 2023 22:43
csgo config
// move this file into <...>/Counter-Strike Global Offensive/csgo/cfg/
//
// Startup parameters for CS:GO, add these using steam
//-high -nod3d9ex -nojoy -noforcemparms -noforcemaccel -novid -refresh 240 -freq 240 +mat_queue_mode 2 +exec autoexec.cfg -tickrate 128
// more info: https://steamcommunity.com/sharedfiles/filedetails/?id=379782151
//~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--
//Writes in config that autoexec.cfg is being executed
echo "Maag's autoexec.cfg started executing"
@maagmirror
maagmirror / Move WooCommerce Product Long Description Into The Short Description Product Layout.php
Created April 23, 2023 19:26
Move WooCommerce Product Long Description Into The Short Description Product Layout
//Remove WooCommerce Tabs - this code removes all 3 tabs - to be more specific just remove actual unset lines
add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
function woo_remove_product_tabs( $tabs ) {
unset( $tabs['description'] ); // Remove the description tab
unset( $tabs['reviews'] ); // Remove the reviews tab
unset( $tabs['additional_information'] ); // Remove the additional information tab
Flexbox big 4:
- display: flex;
- flex-direction
- align-items
- justify-content