Discover gists
This file contains 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
[Trigger] | |
Operation = Upgrade | |
Type = Package | |
Target = pacman-mirrorlist | |
[Action] | |
Description = Updating pacman-mirrorlist with reflector and removing pacnew... | |
When = PostTransaction | |
Depends = reflector | |
Exec = /usr/bin/env sh -c "reflector --protocol https --country 'Ireland' --latest 30 --number 10 --sort rate --save /etc/pacman.d/mirrorlist; if [[ -f /etc/pacman.d/mirrorlist.pacnew ]]; then rm /etc/pacman.d/mirrorlist.pacnew; fi" |
This file contains 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 <cirrus@archlinux.info> | |
# ░▓ code ▓ https://gist.github.com/cirrusUK | |
# ░▓ mirror ▓ http://cirrus.turtil.net | |
# ░▓▓▓▓▓▓▓▓▓▓ | |
# ░░░░░░░░░░ | |
# |
This file contains 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
# ┏━┓┏━┓┏━┓┏━╸╻╻ ┏━╸ | |
# ┣━┛┣┳┛┃ ┃┣╸ ┃┃ ┣╸ | |
# .╹ ╹┗╸┗━┛╹ ╹┗━╸┗━╸ | |
export FT2_SUBPIXEL_HINTING=1 | |
export BROWSER=firefox | |
export CLIBROWSER=w3m | |
export BROWSERCLI=w3m | |
export PLAYER=mpv | |
export MUSICER=ocp-x11 |
This file contains 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 | |
# | |
# Original: from https://github.com/ryuichiueda/TomoTool | |
# =============================================================== | |
# The MIT License | |
# | |
# Copyright (C) 2013-2015 Ryuichi Ueda | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal |
This file contains 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 <cirrus@archlinux.info> | |
# ░▓ code ▓ https://gist.github.com/cirrusUK | |
# ░▓ mirror ▓ http://cirrus.turtil.net | |
# ░▓▓▓▓▓▓▓▓▓▓ | |
# ░░░░░░░░░░ | |
# |
This file contains 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 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 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 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 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: |
NewerOlder