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
-- General -- | |
lvim.colorscheme = 'nord' | |
lvim.transparent_window = true | |
lvim.builtin.nvimtree.setup.view.side = 'right' | |
-- Restore cursor when close vim | |
vim.api.nvim_create_autocmd('VimLeave', { |
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 re, sys, termios, tty | |
def getpos(): | |
buff = '' | |
stdin = sys.stdin.fileno() | |
tattr = termios.tcgetattr(stdin) | |
try: | |
tty.setcbreak(stdin, termios.TCSANOW) | |
sys.stdout.write('\033[6n') |
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 <stdlib.h> | |
#include <unistd.h> | |
#include <string.h> | |
#define BUFFER_SIZE 10 | |
/* | |
* If you desire track the mouse, active and desactive the mouse tracking. | |
* | |
* write(STDOUT_FILENO, "\e[?9h", 5); // active |
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 |
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
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
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
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
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
#!/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 |
OlderNewer