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 | |
if [[ `id -u` != 0 ]]; then | |
echo "Must be root to run script" | |
exit | |
fi | |
read -p "Enter user name and press [ENTER]: " UserName | |
if [[ $UserName == `dscl . -list /Users UniqueID | awk '{print $1}' | grep -w $UserName` ]]; then |
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
function GetRandomBackground() | |
{ | |
var url = 'http://unsplash.com/rss'; | |
$.ajax({ | |
url: document.location.protocol + '//ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=10&callback=?&q=' + encodeURIComponent(url), | |
async: false, | |
jsonpCallback: 'jsonCallback', | |
contentType: "application/json", |
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
/* Developed by Daniel Park (github.com/sudocode). | |
* | |
* Free for personal or commercial use, with or without modification. | |
* No warranty is expressed or implied. | |
*/ | |
var App = Application.currentApplication(), | |
Evernote = Application('Evernote'), | |
Notes = Application('Notes') | |
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
const Notes = Application('Notes') | |
const folder = Notes.folders.whose({ | |
name: 'Astellia' | |
})[0] | |
return folder.notes().map((n) => { | |
return { | |
name: n.name(), | |
id: n.id(), |
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 JDK_URL=http://download.oracle.com/otn-pub/java/jdk/7u71-b14/jdk-7u71-linux-x64.rpm | |
export JDK_FILE=$(basename $JDK_URL) | |
yum -y install wget | |
echo "Downloading from $JDK_URL as $JDK_FILE" | |
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" $JDK_URL -O /tmp/$JDK_FILE | |
rpm -ivh /tmp/$JDK_FILE | |
rm -f /tmp/$JDK_FILE | |
DIR=$(dirname $0) |
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
sudo yum install epel-release | |
sudo yum install NetworkManager-openconnect |
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
sudo yum group install 'Development Tools' | |
sudo yum install redhat-lsb kernel-abi-whitelists | |
sudo yum install kernel-devel-$(uname -r) | |
mkdir -p ~/rpmbuild/{BUILD,RPMS,SPECS,SOURCES,SRPMS} | |
echo -e "%_topdir $(echo $HOME)/rpmbuild\n%dist .el$(lsb_release -s -r|cut -d"." -f1).local" >> ~/.rpmmacros | |
wget http://elrepo.org/linux/elrepo/el7/SRPMS/wl-kmod-6_30_223_271-2.el7.elrepo.nosrc.rpm | |
wget http://www.broadcom.com/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz | |
mv hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz ~/rpmbuild/SOURCES/ |