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/bash | |
inputID=$(echo $(xinput --list | grep "cyapa" | cut -d'=' -f2) | cut -d\ -f1) | |
deviceStatus=$(echo $(xinput list-props $inputID | grep "Enabled" | rev) | cut -d\ -f1) | |
if [ $deviceStatus == 0 ]; then | |
echo -e "Trackpad is \e[0;31moff\e[0m, enabling..." | |
xinput set-prop $inputID "Device Enabled" 1 | |
echo -e "Trackpad \e[0;32menabled.\e[0m" | |
else |
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
SETTING UP IRSSI | |
-> to add a network (change jtvirc to whatever you want, it's what you want the network name to be) | |
/network add -nick YOUR_TWITCH_NICKNAME jtvirc | |
-> To add a channel that gets automatically connected to when | |
- if you don't want to auto connect, take out the -auto | |
- The jtvirc here should be the same as the network name from above |
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
#include <stdio.h> | |
#include <iostream> | |
#include <string> | |
#include <cmath> | |
using namespace std; | |
int main(){ | |
cout << "Enter binary: "; |
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
#include <stdio.h> | |
#include <iostream> | |
#include <string> | |
#include <cmath> | |
using namespace std; | |
int main(){ | |
cout << "Enter binary: "; |
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/bash | |
# A script to extract the wallpapers from the Caledonia wallpaper collection | |
for directory in *; do | |
cd "$directory" | |
if [ -d 'content' ]; then | |
cd 'content' | |
elif [ -d 'contents' ]; then | |
cd 'contents' |
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/python | |
import json | |
import urllib.request | |
class Main: | |
def __init__(self): | |
# XML Formatting Strings | |
xmlPre = '<?xml version="1.0" encoding="UTF-8"?><opml version="2.0"><head><title>MusicBee Radio Station List</title><dateCreated>Tue, 29 Jul 2014 13:37:00 GMT</dateCreated></head><body>\n' | |
xmlPost = '</body></opml>' |
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/python | |
import json | |
import urllib.request | |
class Main: | |
def __init__(self): | |
num = 0; | |
# Output File Formatting Strings |
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
/* | |
Written by Geordie Powers | |
https://github.com/GeordieP/ | |
https://gist.github.com/GeordieP/ | |
MIT License | |
*/ | |
/* | |
USAGE: | |
Create a one-shot timer named "myTimer" with duration 3 seconds, and |
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
/*--- | |
* TITLE BAR | |
---*/ | |
/* title bar */ | |
.chat>.title-wrap { | |
min-height: 0px; | |
} | |
/* window control buttons */ | |
.win-buttons { |
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
"========================== | |
" visuals | |
"========================== | |
set title | |
set titleold="Terminal" | |
set titlestring=%F | |
set guioptions=egmrti | |
set gcr=a:blinkon0 | |
set scrolloff=5 | |
set laststatus=2 |
OlderNewer