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 python3 | |
from sys import stdout, stderr | |
stderr.write(f'Error: Something went wrong!{"a" * 2048}\n') | |
stdout.write('Success: Something went normal!\n') | |
print('Just the same from print()') |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <strings.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <pthread.h> | |
#include <regex.h> | |
#include <string.h> | |
#include <unistd.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
#!/bin/bash | |
program=$(basename "$0") | |
help="\ | |
\rUsage: $program [OPTION|VOLUME]\n\ | |
\rChange volume\n\ | |
\rVOLUME can be \e[90m/$num_regex\e[90m/\e[m\n\ | |
\r\n\ | |
\r$(printf "%-30s %s" "$program <sink id?> <volume>" "Set volume level")\n\ |
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/sh -e | |
# Usage: brightness level | |
device="/sys/class/backlight/acpi_video0" | |
file="$device/brightness" | |
max=$(cat "$device/max_brightness") | |
case $1 in *[!0-9]*|"") | |
echo "Provide a positive number smaller or equal to $max." >&2 |
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
package main | |
import ( | |
"fmt" | |
"os" | |
"os/signal" | |
"syscall" | |
"github.com/pandasoli/goterm" | |
) |
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 requests | |
# Discover your Discord token: | |
# `https://mediaboss.fr/pt/encontrar-token-discordancia` | |
class Exploit: | |
MAGIC_CHAR = '\u202b' | |
def __init__(self, token, channel_id, message): | |
self.token = token |
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
if status is-interactive | |
# Commands to run in interactive sessions can go here | |
export PATH="$PATH:$HOME/.local/bin" | |
export PATH="$PATH:$HOME/.cargo/bin" | |
export PATH="$PATH:$HOME/.deno/bin" | |
export PATH="$PATH:/usr/local/go/bin" | |
# Perl | |
begin | |
export PATH="$PATH:$HOME/perl5/bin" |
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
setlocal & rem [color, text] | |
<nul set /p ".=%COLORTEXT_DEL%" > "%~2" | |
findstr /v /a:%1 /R "^$" "%~2" nul | |
del "%~2" > nul 2>&1 | |
( | |
endlocal | |
exit /b 0 | |
) |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <inttypes.h> | |
struct Person { | |
char name[10]; | |
uint8_t age; | |
uint8_t height; |
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
#include <stdio.h> | |
int wherexy(int *x, int *y) { | |
printf("\033[6n"); | |
if (getch() != '\x1B') return 1; | |
if (getch() != '\x5B') return 1; | |
int |