Skip to content

Instantly share code, notes, and snippets.

View mannion007's full-sized avatar

James Mannion mannion007

View GitHub Profile

HR

  • Order new joiner's preference of laptop (MBP of XPS)
  • Obtain licence for PHP Storm

Onboarder

Configure access to tools

  • Provision Email account (request in #it-help-desk)
  • Invite to appropriate recurring meetings (standups, tech planning etc)
  • Access to Github and assign required role(s)
@mannion007
mannion007 / main.go
Last active April 13, 2020 21:51
Ninja Level 3 Hands on Exercise #4
package main
import (
"context"
"fmt"
"time"
profiler "github.com/mannion007/whatever/profiler"
)
@mannion007
mannion007 / main.go
Created April 13, 2020 14:31
Ninja Level 3 Hands on Exercise #2
package main
import (
"context"
"fmt"
"time"
"github.com/mannion007/whatever/session"
)
@mannion007
mannion007 / main.go
Created February 29, 2020 18:40
Ninja level 10 challenge 7
package main
import (
"fmt"
"sync"
)
func main() {
var wg sync.WaitGroup
@mannion007
mannion007 / main.go
Created February 29, 2020 17:16
Channel select
package main
import (
"fmt"
"time"
)
func main() {
slowChan := make(chan string)
@mannion007
mannion007 / main.go
Created February 28, 2020 10:18
Fan in
package main
import (
"fmt"
"time"
"sync"
)
func main() {
@mannion007
mannion007 / main.go
Created February 27, 2020 23:15
Select statement for channel
package main
import (
"fmt"
)
func main() {
q := make(chan bool)
c := gen(q)
receive(c, q)
@mannion007
mannion007 / race.go
Created February 27, 2020 21:38
Go Race condition
package main
import (
"fmt"
"runtime"
"sync"
)
func main() {
var counter int
@mannion007
mannion007 / main.go
Created February 26, 2020 23:23
SQS receive and delete
package main
import (
"fmt"
"log"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/sqs"
)
<?php
/** ...Make the request, decode the response */
/** Check scan reference is present before we can use it */
if (!isset($decodedResponse->scanReference)) {
throw new \Exception("Invalid response - Scan Reference is missing");
}
if (!is_string($decodedResponse->scanReference)) {