Skip to content

Instantly share code, notes, and snippets.

View jcro21's full-sized avatar

John Crozier jcro21

  • Fagersta
  • Melbourne
View GitHub Profile
@jcro21
jcro21 / notes.md
Last active March 1, 2024 02:07
stockman to bts handover

AWS root account

Account ID: 637321691218

Canonical user ID: 57a3fc67b73394f1d7da86de24a1ba55c8a00ebf4227162effe41bafcb69a5b4

Account name: fagersta

Email: adming@fagersta.com.au

Search/filter - Frontend or backend?

Are these API endpoints just for the UI, or do you need them for non-UI things? If UI only I'm tempted to include them in the UI component.

...and...

  • Searchable/filterable on some common fields ie recipient, sender, date, subject via api endpoint

It'll have to be via API since there is no way the frontend could handle that much data, and we wouldn't want to load that much every time anyway, so we have to paginate every return from the API

@jcro21
jcro21 / postManualJournal.json
Last active May 7, 2021 04:38
POST Xero ManualJournal
{
"ManualJournals": [
{
"Status": "POSTED",
"Narration": "Journal entries resulting from Transport Order #36190 being received",
"JournalLines": [
{
"Description": "Transport Cost added to goods on TO#36190",
"LineAmount": -65.00,
"AccountCode": "TransPaybl",
SELECT
c.CompanyIdentifier AS CID,
c.TradingName,
c.AllocatedTo AS Rep,
l.Region AS Branch,
p.Position,
p.FirstName,
p.Family AS LastName,
p.AccountsPerson,
p.EmailList,
@jcro21
jcro21 / geolocate_api_details
Last active October 30, 2020 02:23
geolocate ip address for internal server logs
hoyeroy573@llubed.com
temp1234_
API key 21e669ff5e1d7cb7881a9aaa31a22cb2
http://api.ipstack.com/222.186.42.137?access_key=21e669ff5e1d7cb7881a9aaa31a22cb2&output=json&fields=continent_name,country_name,region_name,city
@jcro21
jcro21 / SLDS_toasts.js
Last active May 12, 2022 05:50
js snips
import React from 'react';
import Toast from '@salesforce/design-system-react/components/toast';
import ToastContainer from '@salesforce/design-system-react/components/toast/container';
import Button from '@salesforce/design-system-react/components/button';
import IconSettings from '@salesforce/design-system-react/components/icon-settings';
class Example extends React.Component {
constructor(props) {
super(props);
<powershell>
$Path = $env:TEMP; $Installer = "chrome_installer.exe"; Invoke-WebRequest "http://dl.google.com/chrome/chrome_installer.exe" -OutFile $Path\$Installer; Start-Process -FilePath $Path\$Installer -Args "/silent /install" -Verb RunAs -Wait; Remove-Item $Path\$Installer

Set-MpPreference -DisableRealtimeMonitoring $true

$NewPassword = ConvertTo-SecureString "TestPassword#001.t" -AsPlainText -Force

Set-LocalUser -Name Administrator -Password $NewPassword

Keybase proof

I hereby claim:

  • I am jcro21 on github.
  • I am jcro21 (https://keybase.io/jcro21) on keybase.
  • I have a public key ASCOgiMRB_e0gLfZw7UouDRuKogpI3ZavXRzUKkdk1uWQQo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am jcro21 on github.
  • I am jcro21 (https://keybase.io/jcro21) on keybase.
  • I have a public key ASD-QzAm3Ek_gmqCUJAjmV5Zsbdrl02qvb3_6FvwVLn-WAo

To claim this, I am signing this object: