This file contains 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 | |
/** | |
* Make a DNS a request to a custom nameserver, this is similar to dns_get_record, but allows you to query any nameserver | |
* Usage: dns_get_record_from('ns.server.tld', 'A', 'mydomain.tld'); | |
* => ['42.42.42.42'] | |
* @author bohwaz | |
*/ | |
function dns_get_record_from(string $server, string $type, string $record): array | |
{ |
This file contains 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
// ==UserScript== | |
// @name Google Maps in Google Search | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-03-13 | |
// @description Bring google maps button back | |
// @author Daan-Grashoff / LatinSuD | |
// @match https://www.google.com/search* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=google.com | |
// @grant none | |
// ==/UserScript== |
This file contains 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 | |
# Force a delay between mouse touches screen border and when panel (eg: taskbar) pops up | |
# This is a little hackish. It will detect mouse position, and move the panel out of the screen | |
# Currently only works for a bar on the left | |
# Requires: xdotool | |
INTERVAL=0.3 | |
# Desktop Height |
This file contains 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 | |
# Hace pings normales y solo muestra cuando hay perdidas | |
export LANG=C | |
if [ -t 1 ]; then # es shell interactivo | |
trap "stty echo; echo" SIGINT SIGTERM | |
stty -echo |
This file contains 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
Human: AI, please invent a new pokemon and describe it. | |
AI: Here you are. | |
Human: How is it called? | |
AI: It's name is A777XAXSWXSXXXXXXWXAXAADX. | |
Human: Couldn't you come up with a shorter name? | |
AI: Not really. | |
Human: Ok. What are its powers? | |
AI: It is a Pokémon that interacts with humans, and has about 7984 extrasensory powers. | |
Human: What does it look like? | |
AI: It is completely invisible, can teleport by using space-time warps, and has the power to manipulate humans. It is extremely huggable, however, and looks like a cloud with 1 to 21 invisible 0.04 cm tall humanoids usually floating around. |
This file contains 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
// ==UserScript== | |
// @name Wiki.js Search | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://mydomain.com/?search=* | |
// @grant none | |
// @run-at document-idle | |
// ==/UserScript== |
This file contains 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
#include <stdio.h> | |
#define is_num(x) ( x>='0' && x<='9' ) | |
int main(int argc, char **argv) { | |
int a1,a2,a3,a4,a5,a6,a7,a8,a9; | |
int filas; | |
int maxfilas=10; | |
setbuf(stdout,0); |
This file contains 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
from pprint import pprint | |
import re | |
import requests | |
from lxml import html | |
from mitmproxy.net.http import cookies | |
from archivo_configuracion import usuario, passw | |
import traceback | |
# La idea es poder mostrar informacion desde una pantalla que no tiene teclado, luego no puede autenticarse. | |
# En lugar de eso se configura como proxy en la pantalla a otro servidor que corre mitmdump con este plugin. |
This file contains 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
# Sacado originalmente de: https://www.poweradmin.com/blog/how-to-check-for-ms17-010-and-other-hotfixes/ | |
# KB4012212 - Windows Server 2008 y Win7 | |
# KB4012217 KB4015551 KB4019216 - Windows Server 2012 | |
# KB4012216 KB4015550 KB4019215 - Windows Server 2012 R2 | |
# KB4013429 KB4019472 KB4015217 KB4015438 KB4016635 - Windows Server 2016 | |
# List of all HotFixes containing the patch | |
$hotfixes = "KB4012212", "KB4012217", "KB4015551", "KB4019216", "KB4012216", "KB4015550", "KB4019215", "KB4013429", "KB4019472", "KB4015217", "KB4015438", "KB4016635" | |
# Search for the HotFixes |
This file contains 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
/* | |
MTR is an enhanced traceroute tool for Linux and friends | |
Needs: | |
Cygwin (tested with 32 bit version, 2017-05-10). | |
MTR built from https://github.com/traviscross/mtr | |
Simple compiling: | |
gcc -o procesarmtr.exe procesarmtr.c | |