Skip to content

Instantly share code, notes, and snippets.

@JustinGrote
JustinGrote / Office365ISEQuickConnect.ps1
Last active November 27, 2015 00:39
Adds a submenu and keyboard shortcuts to Powershell ISE for quickly connecting to Office 365 services including on-premises Exchange and importing the commands into your current session.
<#
HOW TO INSTALL
Open your Powershell ISE Profile (when in the ISE type psedit $profile) and either paste this content into it and save, or dot source the file wherever you saved it.
Use Get-Help about_Scripts for more info on dot sourcing
#>
#Microsoft O365 Menu Items
New-Variable -name O365ISECREDENTIAL -scope Script
# downgrade to php5.4 first
sudo apt-get install software-properties-common python-software-properties
sudo add-apt-repository ppa:ondrej/php5-oldstable -y
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install php5
# install ajenti
wget -O- https://raw.github.com/Eugeny/ajenti/master/scripts/install-ubuntu.sh | sudo sh
#!/bin/bash
read -p "Enter your Site Name to be created (include .com):" SITENAME
#1. Create apache2 site and it's folders
mkdir /var/www/html/$SITENAME
mkdir /var/www/html/$SITENAME/public_html/
chmod -R 755 /var/www/html/$SITENAME/public_html/
cat > /etc/apache2/sites-available/$SITENAME.conf << EOF
<VirtualHost *:80>
ServerAdmin admin@$SITENAME
ServerName $SITENAME
sudo apt-get update
sudo apt-get dist-upgrade
sudo adduser --system --home=/opt/odoo --group odoo
sudo su - odoo -s /bin/bash
sudo apt-get install postgresql
sudo pg_createcluster 9.3 main --start
sudo su - postgres
createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt odoo (OclassAdm)
@ellisgeek
ellisgeek / getpcinfo.ps1
Last active November 9, 2018 02:58
YASIS - Yet Another System Info Script
# YASIC - Yet Another System Info Script
# Gets various information about the computer that it's run on
# Returned information:
# * Hostname
# * Manufacturer
# * Model
# * Serial Number
# * Asset Tag
# * Processor
# * Memory
@thyn
thyn / java.sh
Last active November 22, 2018 10:14
java
#!/bin/sh
JAVA_VER=jdk-9.0.4
JAVA_FILE=jdk-9.0.4_linux-x64_bin.tar.gz
cd /opt/
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/9.0.4+11/c2514751926b4512b076cc82f959763f/jdk-9.0.4_linux-x64_bin.tar.gz"
tar xzf $JAVA_FILE
rm -rf $JAVA_FILE
cd "/opt/${JAVA_VER}/"
alternatives --install /usr/bin/java java "/opt/${JAVA_VER}/bin/java" 1
alternatives --install /usr/bin/javac javac "/opt/${JAVA_VER}/bin/javac" 1
@jpswade
jpswade / setup_dev_osx.sh
Last active March 11, 2019 10:26
Mac OS X Development Environment Setup
#!/bin/sh
### Core
xcode-select --install
xcodebuild -license
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew tap caskroom/cask
brew update && brew upgrade brew-cask && brew cleanup && brew cask cleanup
brew install brew-cask
brew install git
brew install wget
@alexellis
alexellis / boostrap_faas_arm.md
Last active June 21, 2019 12:55
FaaS serverless framework bootstrap for Raspberry Pi

FaaS serverless framework bootstrap for Raspberry Pi

This bootstraps FaaS onto your Raspberry Pi or ARM board with Docker.

Any Linux/UNIX process can be made a serverless function. Communication with functions is via an API gateway with an easy to use UI portal.

https://github.com/alexellis/faas

Here's the one-shot equivalent from the TestDrive guide

@justinsteven
justinsteven / fix_cydia_error_20180811.md
Last active September 22, 2019 01:05
How to fix Cydia Impactor "http-win.cpp:160" error as of 2018-08-11