This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Script to install Ghostty on Fedora with improvements for Fedora 41 | |
| command_exists() { | |
| command -v "$1" >/dev/null 2>&1 | |
| } | |
| error_exit() { | |
| echo "Error: $1" >&2 | |
| exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * DOCUMENT VALIDATION | |
| */ | |
| add_filter( 'wpcf7_validate_text*', 'uy_document_validation_filter', 50, 2 ); | |
| function uy_document_validation_filter( $result, $tag ) { | |
| if ( 'Documento' === $tag->name ) { | |
| $document = isset( $_POST['Documento'] ) ? trim( $_POST['Documento'] ) : ''; | |
| if (!validate_ci($document)) { | |
| $result->invalidate( $tag, 'Documento incorrecto' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # dvd-slideshow | |
| # Copyright 2003-2011 Scott Dylewski <scott at dylewski.com> | |
| # | |
| # This program is free software; you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation; either version 2 of the License, or | |
| # (at your option) any later version. | |
| # | |
| # This program is distributed in the hope that it will be useful, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import smbus | |
| import time | |
| import os | |
| import math | |
| # Define a class for the accelerometer readings | |
| class MMA7660(): | |
| bus = smbus.SMBus(1) | |
| def __init__(self): | |
| self.bus.write_byte_data(0x4c, 0x07, 0x00) # Setting up MODE to Stand by to set SR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // MMA7660 example c code for the Raspberry pi. | |
| // | |
| // Reads X, Y & Z data from MMA7660 | |
| // and then prints to the screen. | |
| // | |
| // DGtal 2015. | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <linux/i2c-dev.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| # scrapy crawl spider-infracciones -a url=http://www.impo.com.uy/bases/notificaciones-cgm/1-2017/ -o infracciones-1-2017.json | |
| import scrapy | |
| class SpiderInfraccionesSpider(scrapy.Spider): | |
| name = "spider-infracciones" | |
| allowed_domains = ["impo.com.uy"] | |
| start_urls = ['http://www.impo.com.uy/bases/notificaciones-cgm/15-2017/'] | |
| def __init__(self, url, *args, **kwargs): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| ${"GLOBALS"}["xwyursgk"] = "value"; | |
| ${"GLOBALS"}["derkstv"] = "out_data"; | |
| ${"GLOBALS"}["jlyxyjddexo"] = "key"; | |
| ${"GLOBALS"}["dpdkmcgvv"] = "j"; | |
| ${"GLOBALS"}["mwbyzybuj"] = "i"; | |
| ${"GLOBALS"}["sjzfiseitu"] = "data_key"; | |
| ${"GLOBALS"}["medidmpnos"] = "data"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find . -maxdepth 1 -mindepth 1 -type d -exec tar -ignore-failed-read -czf {}.tar.gz {} \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find . -maxdepth 1 -mindepth 1 -type d -exec tar -ignore-failed-read -cf {}.tar {} \; |
NewerOlder