Skip to content

Instantly share code, notes, and snippets.

#! /usr/bin/awk -f
# rand-line.awk -- output a random line from input
# $Id: rand-line.awk,v 1.3 1998/11/18 01:18:52 cdua Exp cdua $
# Carlos Duarte, 971027/981118
BEGIN {
srand()
for (i=1; i<ARGC; i++) {
s = ARGV[i]
#! /usr/bin/perl
# rename.pl -- rename files by finding a fixed pattern and replace it by other
# Carlos Duarte, 031105
# a clone of the rename(1) utility present in most linux distributions
use strict;
if (@ARGV < 3) {
#!/usr/bin/env python
import urllib.request
url = input("Enter the Youtube-url\n")
name = input("Enter the name for the video\n")
name=name+".mp4"
try:
print("Downloading starts...\n")
urllib.request.urlretrieve(url, name)
print("Download completed..!!")
except Exception as e:
#!/bin/bash
## edit dir=("$HOME"/your/own/path/to/Music/dir)
dir=("$HOME"/Music/mp3)
dmenu_text=$( find "${dir[@]}" -maxdepth 6 -type f -name '*.mp3' \
| cut -c 24- | shuf | sed 's/....$//' | dmenu -nb "#303030" -nf "#f5e5d5" -sf "#d79921" -sb "#191919" -l 17 -p PLay)
## mpv will show embedded album art, edit path as line 3 dir= "/your/own/path/to/Music/dir/$dmenu_text.mp3"
mpv --no-osd-bar --ontop --no-config --geometry=150x150+1192+600 --autofit-smaller=150x150 "/home/cirrus/Music/mp3/$dmenu_text.mp3"
#!/bin/bash
dmenu_text=$(cat /home/cirrus/Documents/mp3.txt | shuf | bemenu -l 17 -p PLay)
dmenu_exec=$( mpv $dmenu_text )
exec $dmenu_exec
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 27, 2024 06:18
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
#!/bin/bash
# free keys complements of pastebin, and wtf goofle why AIza
keylist=(
"AIzaSyAafvOlmpO-nhRMdTKhwcK2jVQ8XeZwBfg"
"AIzaSyAAW1uwHofZ7c1zxl75u0flELX5PMs2LvM"
"AIzaSyA8OmKcw2DMNkJicyCJ0vqvf90xgeH52zE"
"AIzaSyBSnh-sIjd97_FmQVzlyGbcaYXuSt_oh84"
"AIzaSyBBcXtLP34Evs2rrdvYyZ63qbY36bQ96wk"
"AIzaSyCQu8QRr-9H_qyWvbXpL6jseGthkd1VCtw"
### MangoHud configuration file
### Uncomment any options you wish to enable. Default options are left uncommented
### Use some_parameter=0 to disable a parameter (only works with on/off parameters)
### Everything below can be used / overridden with the environment variable MANGOHUD_CONFIG instead
################ PERFORMANCE #################
#gpu_name
### Limit the application FPS. Comma-separated list of one or more FPS values (e.g. 0,30,60). 0 means unlimited (unless v-synced).
# fps_limit=
@cirrusUK
cirrusUK / feiler
Last active April 27, 2024 06:15
edited teiler to work with fzf
#!/bin/bash
# Menus
promptDelay() {
printf "%s\n" "$@" | fzf --header="Delay:"
}
mainMenu () {