Skip to content

Instantly share code, notes, and snippets.

View cirrusUK's full-sized avatar
💭
Dunroamin, Duncarin, Dunlivin.

cirrus cirrusUK

💭
Dunroamin, Duncarin, Dunlivin.
View GitHub Profile
@cirrusUK
cirrusUK / gmail-notify.sh
Last active April 27, 2024 06:22
script to show gmail inbox notifications
#!/bin/bash
# script to show gmail inbox notifications
# ------------------------------------------------------------------------------#
# 1. Edit Line 12: USERNAME:[email protected]/mail/feed/atom \ #
# 2. Choose which notification you would like by commenting out line 15 or 16 #
# 3. Edit icon path & Download Gmail icon: https://transfer.sh/RXLDF/gmail2.png # #
# 4. Include it into user crontab table with crontab -e #
# I.E */15 * * * * /home/user/.scripts/gmail-notify.sh # every 15 minutes #
# #
# ------------------------------------------------------------------------------#
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/fonts.conf file to configure system font access -->
<fontconfig>
<!--
DO NOT EDIT THIS FILE.
IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED.
LOCAL CHANGES BELONG IN 'local.conf'.
# -- windows & pane creation ---------------------------------------------------
# new window retains current path, possible values are:
# - true
# - false (default)
tmux_conf_new_window_retain_current_path=false
# new pane retains current path, possible values are:
# - true (default)
# - false
@cirrusUK
cirrusUK / cirrus.css
Last active April 27, 2024 06:22
css for lighttpd
@import url(https://fonts.googleapis.com/css?family=Raleway:200,400,600);
body, html { background: #191919; margin:0; }
html { font: 14px/1.4 Raleway, 'Helvetica Neue', Helvetica, sans-serif; color: #cb4b16; font-weight: 400; }
h2 { font-weight: 200; font-size: 45px; margin: 20px 35px; }
div.list { background: #111; padding: 20px 35px; }
div.foot { color: #777; margin-top: 15px; padding: 20px 35px; }
td { padding: 0 20px; line-height: 21px; }
@cirrusUK
cirrusUK / acer
Last active April 27, 2024 06:23
wrapper for watching sports with acestream/arenavision | usage: ./acer <insert number shown at end of desired stream>
#!/usr/bin/zsh
readonly TMP="$(mktemp /tmp/areavision.XXXXXX)"
curl --location-trusted -k --silent "http://arenavision.in/schedule" --output "${TMP}"
function schedule() {
awk -v RS='</tr>' -v F='<td>' '{gsub(/<[^<>]*>/,"");print $1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14}' "${TMP}"
}
function play() {
/usr/local/bin/ace.sh "$(xmllint http://arenavision.in/av"$1" --html --xpath "string(//p[@class='auto-style1']/a/@href)" 2> /dev/null)"
#Windows 10
#IDE to ACHI Fix
1. Run Command Prompt as Admin
2. Invoke a Safe Mode boot with the command: bcdedit /set {current} safeboot minimal
3. Restart the PC and enter your BIOS during bootup.
4. Change from IDE to AHCI mode then Save & Exit.
5. Windows 10 will launch in Safe Mode.
6. Right click the Window icon and select to run the Command Prompt in Admin mode from among the various options.
7. Cancel Safe Mode booting with the command: bcdedit /deletevalue {current} safeboot
8. Restart your PC once more and this time it will boot up normally but with AHCI mode activated.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>AudioList</key>
<array>
<dict>
<key>AudioBitrate</key>
<string>160</string>
@cirrusUK
cirrusUK / soma
Created October 30, 2016 22:26
radio shell script
#!/bin/bash
red=`tput setaf 1`
tput setaf 1
echo '
| _)
_| _` | _` | | _ \
_| \__,_| \__,_| _| \___/
'
Go to the following key in the registry:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\video{####....}\0000
Create a new DWORD:
"DigitalHDTVDefaultUnderscan" = dword 0x0000
Note: there might be several {####....} , should be the one with most of the ATI settings.
Source:http://forum.beyond3d.com/showthread.php?t=62100
@cirrusUK
cirrusUK / upimgur.sh
Last active September 29, 2018 21:26
shell script for uploading images to imgur
#!/bin/bash
red=`tput setaf 1`
green=`tput setaf 2`
yellow=`tput setaf 3`
blue=`tput setaf 4`
#magenta=`tput setaf 5`
cyan=`tput setaf 6`
# Copyright (c) 2016 Ramon <https://github.com/ram-on/imgurbash2>
#