Skip to content

Instantly share code, notes, and snippets.

Henzard Kruger henzard

Block or report user

Report or block henzard

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@henzard
henzard / SetupLamp.sh
Last active Jun 6, 2019
Setup Linux Apache PHP 7.2 MySql on a PI
View SetupLamp.sh
sudo apt install -y git mysql-server
sudo apt install -y -t buster apache2 php7.2 php7.2-curl php7.2-gd php7.2-imap php7.2-json mcrypt php7.2-mysql php7.2-opcache php7.2-xmlrpc libapache2-mod-php7.2 php7.2-xml php7.2-mbstring
sudo apt install -y composer nodejs npm
View RaspbianUpdates.sh
sudo apt-get update -y
sudo apt-get dist-upgrade -y
sudo apt-get upgrade -y
View gist:3883228cc2d1b3eb612814137e6f60ce
PrivateApplication = Connect();
List<Contact> CompanyContacts = new List<Contact>();
Thread.Sleep(1200);
XeroLogging.Info("GetContacts Page #" + Request.ToString());
try
{
CompanyContacts = PrivateApplication.Contacts.Page(Request).Find().ToList();
XeroLogging.Info("GetContacts Page Success #" + Request.ToString());
}
View Xero Invoice
Invoice inv = new Invoice();
inv.LineItems = new List<LineItem>();
//Inside a loop
inv.LineItems.Add(new LineItem() {
Description = "Testing"
});
View gist:603409cc0ad9fc8cb3b8dddfdf86e158
TrackingCategory tr = _api.TrackingCategories.Find().First();
_api.TrackingCategories[tr.Id].Add(new Option(){Name = "Blue"});
View gist:0300e2b17405aabdb855cebc256361f6
_api.PurchaseOrders.Create(new PurchaseOrder()
{
Contact = new Contact()
{
ContactNumber = "C0001"
},
Number = "4920249",
LineItems = new List<LineItem>()
{
new LineItem() {
View gist:cb65c41cc8d68209f3f1f0674e7818d4
invoices = Xero.Invoice.all(:where => {:type => 'ACCREC', :amount_due_is_not => 0})
View gist:0b88c3c2648f9db34983b3bdcb90efcb
$XeroOAuth->request('DELETE', $XeroOAuth->url('Items', 'core'), array(), $xml);
You can’t perform that action at this time.