sudo apt-get install --no-install-recommends ubuntu-desktop
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
| # variables | |
| DISTRIB_CODENAME = bionic | |
| cert_dir = /etc/ssl/certs/ | |
| # install | |
| # https://rethinkdb.com/docs/install/ubuntu/ | |
| source /etc/lsb-release && echo "deb https://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list | |
| wget -qO- https://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add - | |
| sudo apt-get update | |
| sudo apt-get install rethinkdb |
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
| # here is our custom interface. hopefully powershell will support creating | |
| # interfaces natively soon. this is a simple example and is not ment to | |
| # teach you c# syntax. sufice it to say an interface is a *contract*. an | |
| # interface defines what methods and properties a class should have. | |
| # interfaces allow you to contrain function parameters to only type that | |
| # fullfill the *contract*. this is illistrated in the code below. | |
| $CSharpCode = @" | |
| public interface IFoo | |
| { | |
| void Bar(); |
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::fmt; | |
| // IPv4 struct is just a tuple of u8's. | |
| // just an arbitrary, but realistic example... | |
| struct IPv4(u8, u8, u8, u8); | |
| // declare the impl block for out IPv4 struct. | |
| impl fmt::Display for IPv4 { | |
| // this is the function signature the fmt::distplay trait is looking for. | |
| // https://doc.rust-lang.org/std/fmt/trait.Display.html |
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
| $SomeFunction = { | |
| param( | |
| [string]$Name | |
| ) | |
| return 'Hi ' + $Name + '!' | |
| } | |
| $Somefunction.Invoke("Jacob") | |
| # Hi Jacob! |
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
| # Our Custom Logic | |
| $CustomErrorAction = { | |
| param( | |
| $TheError | |
| ) | |
| # some custom logic | |
| write-host $TheError -ForegroundColor 'red' | |
| } | |
| # A Contrived Function |
use curl credentials
replace with your info.
printf "machine <server>\nlogin <username>\npassword <password>\n" > ~/_netrcexample:
printf "machine github.com\nlogin foo\npassword bar\n" > ~/_netrc
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
| /* | |
| NAME: AeriesMonthlyAttendanceReport | |
| AUTH: Jacob Ochoa | |
| DATE: 2018-11-15 12:02:14.497 | |
| VERSION: 0.2.1 | |
| DESCRIPTION: | |
| This is a reverse engineered collection of calculated columns often | |
| used in Aeries Attendance Reports. This Query can be used as a basis | |
| for creating sql reports that are grouped similarly to some of aeries |