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 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: |
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/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) { |
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/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] |
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/sh | |
##Usage | |
# Download URLs from file (named queue) with history. | |
# The file named queue must be in the same dir as this script. | |
# 1.create & add download urls to ~/tmp/queue | |
# 2.place this file in ~/tmp and chmod +x it. | |
# 3. ./execute file and wget all the things. | |
# License: LGPLv2 |
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/sh | |
#This script requires streamlink,mpv, pipe viewer (pv) & toilet. | |
#Uses streamlink's tvplayer plugin to peruse UK TV channels.πΊ | |
# Some streams require login to https://tvplayer.com use flags below to authenticate | |
#streamlink -p mpv 'https://foo' best --tvplayer-email your@mail --tvplayer-password yourpasswd | |
# (1) prompt user, and read command line argument.π‘ | |
red=`tput setaf 1` | |
green=`tput setaf 2` | |
yellow=`tput setaf 3` | |
printf %"s\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
#!/bin/bash | |
export XDG_RUNTIME_DIR=/run/user/$(id -u) | |
icon="/home/cirrus/.icons/48arch.png" | |
/usr/bin/ping -c 1 www.archlinux.org > /dev/null || { echo "archlinux.org is down. Aborting" && exit; } | |
ignore_db="AUR.db" | |
newest_db=$(ls -t -I ${ignore_db} /var/lib/pacman/sync | /usr/bin/head -n1) | |
newest_db_date=$(/usr/bin/stat /var/lib/pacman/sync/${newest_db} | /usr/bin/grep Modify | /usr/bin/sed s/Modify:\ //) | |
newest_db_date_utc=$(/usr/bin/date -u -d "${newest_db_date}" +%s) | |
newest_news_date=$(/usr/bin/curl -s --head https://www.archlinux.org/feeds/news/ | grep ^last-modified | sed -e s/^last-modified:\ //) | |
newest_news_date_utc=$(/usr/bin/date -u -d "${newest_news_date}" +%s) |
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/python | |
#Read Arch Linux RSS news; | |
import feedparser | |
from subprocess import call | |
import re | |
import textwrap | |
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 bash | |
# β¬βββ¬ β¬ββββββββ¬β | |
# ββ΄ββ βββββββ β | |
# β΄ β΄βββββββββ β΄ | |
# Created by Siddharth Dushantha | |
# | |
# Dependencies: sxiv, imagemagick, bash, ffmpeg, mpc, jq | |
# Slight edit of script to define mpc -h <INTERNAL IP> so mpd will continue to run elsewhere on network | |
VERSION=1.2.4 | |
COVER=/tmp/kunst.jpg |
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 bash | |
# author: unknown | |
# | |
# ββββββββββ | |
# ββ author β cirrus <[email protected]> | |
# ββ code β https://gist.github.com/cirrusUK | |
# ββ mirror β http://cirrus.turtil.net | |
# βββββββββββ | |
# ββββββββββ | |
# |
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 | |
export DISPLAY=":0.0" | |
MPVNP=$(ponymix list | awk 'NR==16' | cut -c14- |sed 's/.\{6\}$//' ) | |
notify-send -h string:bgcolor:#191919 -h string:fgcolor:#f2810d -i ~/.icons/mpv.png "πΊ MPV Now Playing " "$MPVNP" |