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> | |
#include <stdlib.h> | |
#include <assert.h> | |
/** | |
* Escapes a string for use with bash shell, formatted as $'...'. | |
* | |
* @param input the input string you want to escape. | |
* | |
* @return the escaped string (which must be free'd after use). |
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
#!/usr/bin/env python3 | |
import requests | |
import urllib3 | |
from html.parser import HTMLParser | |
ip = '192.168.25.1' | |
credentials = ('admin', 'gvt12345') | |
class SessionIdFinder(HTMLParser): |
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 <cstdint> | |
template<bool Fits8Bit, bool Fits16Bit, bool Fits32Bit> | |
struct intopt_helper { | |
using signed_type = std::int64_t; | |
using unsigned_type = std::uint64_t; | |
}; | |
template<> | |
struct intopt_helper<false, false, true> { |
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 "micro_rc4.h" | |
static char rc4_state[256]; | |
static unsigned char rc4_i, rc4_j; | |
__attribute__((always_inline)) inline | |
static void rc4_swap(void) | |
{ | |
unsigned char rc4_tmp = rc4_state[rc4_i]; | |
rc4_state[rc4_i] = rc4_state[rc4_j]; |
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 <stdint.h> | |
#include <stdio.h> | |
#include "helper.hpp" | |
#include "reflect.hpp" | |
using crc32::impl::bit_sizeof; | |
using crc32::impl::and_mask; | |
using crc32::impl::shift; | |
using crc32::impl::reflect_u8; |
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 Download YouTube subtitles | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Now you can download YouTube subtitles | |
// @author André Kugland | |
// @match http*://*.youtube.com/* | |
// @grant none | |
// @require https://cdn.jsdelivr.net/npm/file-saver@2.0.2/dist/FileSaver.min.js#sha256=bbf27552b76b9379c260579fa68793320239be2535ba3083bb67d75e84898e18 | |
// ==/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
// ==UserScript== | |
// @name Naked Instagram | |
// @namespace http://www.instagram.com/ | |
// @version 0.1 | |
// @description Remove overlay above Instagram images and select the highest res img. | |
// @author André Kugland | |
// @match http*://*.instagram.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
// ==UserScript== | |
// @name Dicionário Analógico Aulete (correções) | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Corrige alguns problemas na página do dicionário analógico Aulete. | |
// @author You | |
// @match http://*.aulete.com.br/analogico/* | |
// @match https://*.aulete.com.br/analogico/* | |
// @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
# /usr/share/libalpm/hooks/remove-baloo.hook | |
[Trigger] | |
Operation = Install | |
Operation = Upgrade | |
Operation = Remove | |
Type = Package | |
Target = * | |
[Action] |
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 <inttypes.h> | |
typedef union { | |
uint64_t u64; | |
uint8_t u8[8]; | |
} uint64_union; | |
__attribute__((optimize("Os"))) // Avoid loop unrolling. | |
void reflect_u64(uint64_t* value) | |
{ |
OlderNewer