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/python3 | |
from lxml import html | |
import requests | |
gamecount = int(html.fromstring(requests.get('https://steamdb.info/linux/').content).xpath('//nav[@class="tabnav-tabs"]/*/span[@class="counter"]/text()')[0].replace(',','')) | |
print(gamecount) |
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
# Firejail profile for Discord | |
# put this in ~/.config/firejail/ | |
include /etc/firejail/Discord.local | |
# Persistent global definitions | |
include /etc/firejail/globals.local | |
include /etc/firejail/disable-common.inc | |
include /etc/firejail/disable-passwdmgr.inc | |
include /etc/firejail/disable-programs.inc |
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 | |
globalIPv6=`ip addr show dev enp0s25 | sed -e 's/^.*inet6 \(2[^ ]*\)\/.*$/\1/;t;d'` | |
echo "global IPv6 is $globalIPv6" | |
wget -q --read-timeout=0.0 --waitretry=5 --tries=400 --background https://freedns.afraid.org/dynamic/update.php?KEYHERE |
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 | |
# card name | |
CARD=`sed -n 's/\s\([0-9]*\).*:\s.*Intel PCH/\1/p' /proc/asound/cards` | |
# check auto-mute state | |
amixer -c $CARD sget "Auto-Mute Mode" | grep "Item0: 'Disabled'" | |
# $? is 0 if auto-mute is disabled | |
# $? is 1 if auto-mute is enabled | |
if [ "$?" -eq "0" ]; then |
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 | |
# Find the line in "xrandr -q --verbose" output that contains current screen orientation and "strip" out current orientation. | |
rotation="$(xrandr -q --verbose | grep 'connected' | egrep -o '\) (normal|left|inverted|right) \(' | egrep -o '(normal|left|inverted|right)')" | |
# Using current screen orientation proceed to rotate screen and input devices. | |
# find the names for devices with xinput --list | |
case "$rotation" in |
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
cinst adobeair | |
cinst vcredist2010 | |
cinst vcredist2012 | |
cinst vcredist2013 | |
cinst vcredist2015 | |
cinst javaruntime-preventasktoolbar | |
cinst jre8 | |
cinst dotnetcore-runtime.install | |
cinst dotnet4.6.1 | |
cinst gtk-runtime |
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 | |
######################################################################## | |
# LIGHTS OUT FOR LINUX (lofl) # | |
# This script suspends the computer if it's idle for a given period of # | |
# time. It monitors network activity, logged on users and CPU load. # | |
######################################################################## | |
# maximum packet count per minute – usually not more than 12-15 | |
net_threshold=12 |
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 | |
########################################################################### | |
# /usr/bin/service | |
# | |
# A convenient wrapper for the /etc/init.d init scripts. | |
# | |
# This script is a modified version of the /sbin/service utility found on | |
# Red Hat/Fedora systems (licensed GPLv2+). | |
# |
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
state.Intel { | |
control.1 { | |
iface CARD | |
name 'HDMI/DP,pcm=3 Jack' | |
value false | |
comment { | |
access read | |
type BOOLEAN | |
count 1 | |
} |