Consider changing this
http.apply(new JSONLoginConfigurer<HttpSecurity>()
.loginPage("/authenticate")
.successHandler(new SimpleUrlAuthenticationSuccessHandler("/dashboard"))
.permitAll());
name: Scan for CVEs | |
on: | |
schedule: | |
- cron: '0 * * * *' | |
workflow_dispatch: | |
repository_dispatch: | |
types: | |
- sync-prs |
#!/bin/bash | |
# set -x | |
inst_id=$(ec2metadata --instance-id) | |
while : | |
do | |
used_megs=$(free --mega | awk 'NR!=1 {print $3}' | head -1) | |
aws cloudwatch put-metric-data \ | |
--region us-west-2 \ |
def findEqualParts(remArr, half, s, d=0): | |
for i in range(len(remArr)): | |
remArr2 = remArr[:] | |
diff = s - remArr2[i] | |
# print(f"Entering findEqualParts({remArr}, {half}, {s}; diff is {diff}, i is {i}, d is {d}") | |
if diff > 0: | |
half2 = half[:] | |
half2.append(remArr2[i]) | |
s2 = s - remArr[i] | |
del remArr2[i] |
#!/bin/bash | |
# Parse the output and generate a Deployment Manager configuration file | |
echo "resources:" > config0.yaml | |
echo "outputs:" > outputs0.yaml | |
# List all Cloud Run services and their attributes | |
services=$(gcloud run services list --format="csv(NAME, REGION, IMAGE)" --quiet | tail -n+2) |
package main | |
import ( | |
"context" | |
"fmt" | |
"sync" | |
"time" | |
) | |
func withCancel() { |
package main | |
import "fmt" | |
func plus[T int | float32](i1 T, i2 T) T { | |
return i1 + i2 | |
} | |
func minus[T int | float32](i1 T, i2 T) T { | |
return i1 - i2 |
package main | |
import ( | |
"fmt" | |
"strconv" | |
"sync" | |
"sync/atomic" | |
) | |
// No deadlock on all sleeping, etc. |
package main | |
import ( | |
"fmt" | |
) | |
func slices2() { | |
slice1 := []string{"Ferrari", "Honda", "Ford"} | |
slice2 := slice1[:] | |
fmt.Println("Slice1: ", slice1) |
package main | |
import "fmt" | |
type _struct struct { | |
field string | |
} | |
func (s *_struct) doStuff(msg string) { | |
s.field = msg |
Consider changing this
http.apply(new JSONLoginConfigurer<HttpSecurity>()
.loginPage("/authenticate")
.successHandler(new SimpleUrlAuthenticationSuccessHandler("/dashboard"))
.permitAll());