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 | |
# Ubuntu 13.10 and 14.04 should work perfectly with this script. | |
# PPAS | |
## Essentials | |
sudo add-apt-repository -y "deb http://archive.canonical.com $(lsb_release -sc) partner" | |
sudo add-apt-repository -y ppa:mc3man/mpv-tests # MPV (ffmpeg version) | |
sudo add-apt-repository -y ppa:atareao/nautilus-extensions # Nautilus Image Extensions | |
sudo add-apt-repository -y ppa:ubuntu-wine/ppa # Updated Wine Packages from Wine Developers | |
sudo add-apt-repository -y ppa:webupd8team/y-ppa-manager # Namely for YAD |
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 | |
cd /tmp | |
if ! which lynx > /dev/null; then sudo apt-get install lynx -y; fi | |
if [ "$(getconf LONG_BIT)" == "64" ]; then arch=amd64; else arch=i386; fi | |
function download() { | |
wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | grep "$1" | grep "$2" | grep "$arch" | cut -d ' ' -f 4) | |
} |
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 | |
# This script requires YAD to be installed | |
# Input New Values | |
if [ "$1" == "-gui" ]; then | |
## YAD Input Form | |
YADInput=$(yad --form \ | |
--title="PulseAudio Configurator" \ | |
--separator="," \ | |
--field="Sample Rate:CB" "22050\!44100\!48000\!96000" \ | |
--field="Sample Format:CB" "s16ne\!s24ne\!s32ne\!float32ne" \ |
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 | |
if [ "$1" == "" ]; then | |
printf "Enter Season Name: "; read season | |
else | |
season="$1" | |
fi | |
if [ "$2" == "" ]; then | |
printf "Enter Season ID : "; read id | |
else |
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 | |
function package-version { | |
apt-cache policy $1 | grep Installed | awk -F ' ' '{print $2}' | |
} | |
function kernel-current-version { | |
major=$(uname -r | awk -F '.' '{print $1}') | |
minor=$(uname -r | awk -F '.' '{print $2}') | |
if [ $(uname -r | grep rc) ]; then | |
rc="rc$(uname -r | awk -F '-' '{print $2}' | awk -F 'rc' '{print $2}')" |
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
#include <iostream> | |
#include <string> | |
using namespace std; | |
int main() { | |
// Initial variables for the list | |
int listSize = 26; | |
int numOfColumns = 6; | |
string list[] = {"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", |
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
use std::os::{args}; | |
use std::io::{stdin}; | |
use std::u64::{parse_bytes}; | |
// Convert the input string into a number if possible | |
fn str_to_number(input: &str) -> u64 | |
{ | |
match parse_bytes(input.as_bytes(), 10) { | |
Some(x) => x, | |
None => 0u64 |
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
package main | |
import "fmt" | |
import "os/exec" | |
import "time" | |
func errorChecker(output *[]byte, err *error, entry *string, elapsedTime time.Duration) { | |
if *err != nil { | |
fmt.Println(fmt.Sprint(*err) + ": " + string(*output)) | |
} else { |
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
package main | |
import "flag" | |
import "fmt" | |
import "io/ioutil" | |
import "os" | |
import "os/exec" | |
import "time" | |
const ( |
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
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"os" | |
"os/user" | |
"runtime" | |
"strconv" | |
"strings" |
OlderNewer