Skip to content

Instantly share code, notes, and snippets.

View matheusfillipe's full-sized avatar

Matheus Fillipe matheusfillipe

  • https://gitlab.com/matheusfillipeag
  • Germany
View GitHub Profile
https://gist.github.com/0e2547b9ae823cbfe0d23c23f508ed59
#!/bin/bash
service=$(wgetpaste -S | awk 'NR > 3{print $1}' | sed 's/\*//g' | rofi -dmenu -p service -i)
lang=$(wgetpaste -s "$service" -L | awk '{print $1}' | rofi -dmenu -p service -i)
desc=$(rofi -dmenu -p Description -i)
wgetpaste -s "$service" -l "$lang" -d "$desc" -x -X -C
desc=$(rofi -dmenu -p Description)
[ -z "$desc" ] && wgetpaste -s $service -l $lang -x -X -C --verbose || wgetpaste -s $service -l $lang -d "$desc" -x -X -C --verbose
#!/bin/bash
# Wrapper for gist, pc, imgur.sh using rofi (-g) or fzf
# if fromGUI rofi else fzf
function rofilaunch {
rofi -dmenu -p "$1" -i
}
function fzflauch {
fzf
}
function dieempty {
https://gist.github.com/a90db706221dd569bbfb66adf57d886e
#!/bin/bash
# Wrapper for gist, pc, imgur.sh using rofi (-g) or fzf
# if fromGUI rofi else fzf
function rofilaunch {
rofi -dmenu -p "$1" -i
}
function fzflauch {
fzf
}
function dieempty {
#!/usr/bin/env zsh
source /home/matheus/bin/.zshrc
export QT_QPA_PLATFORMTHEME=gnome
/home/matheus/bin/lightcheck
numlockx on
lxsession &
picom &
/usr/bin/emacs --daemon &
nm-applet &
#!/usr/bin/python3
### Install ua-parser:
### sudo pip install pyyaml ua-parser user-agents
import os
from user_agents import parse
print('Content-Type: text/html\n\n')
## This is for printing http headers when you dont know what is what ;)
# for headername in os.environ:
rofi usage:
rofi [-options ...]
Command line only options:
-no-config Do not load configuration, use default values.
-v,-version Print the version number and exit.
-dmenu Start in dmenu mode.
-display [string] X server to contact.
${DISPLAY}
-h,-help This help message.
@matheusfillipe
matheusfillipe / windows_pulseaudio_rtp_audio_stream.py
Created September 20, 2021 04:22
Receive pulseaudio's rtp stream on windows's vlc
vlc_path="\"C:\\Program Files (x86)\\VideoLAN\\VLC\\vlc.exe\""
import socket
import struct
import textwrap
from scapy.all import *
import os
from elevate import elevate