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
| import { UserRoleEnum } from '@prisma/client' | |
| import { Static, Type } from '@sinclair/typebox' | |
| export const userSchema = Type.Object({ | |
| id: Type.String(), | |
| username: Type.String(), | |
| email: Type.String(), | |
| age: Type.Optional(Type.Number()), | |
| role: Type.Enum(UserRoleEnum), | |
| password: Type.String() |
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
| terraform { | |
| required_providers { | |
| coder = { | |
| source = "coder/coder" | |
| } | |
| aws = { | |
| source = "hashicorp/aws" | |
| } | |
| } | |
| } |
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
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "io/ioutil" | |
| "net/http" | |
| ) | |
| func main() { |
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
| To get started, | |
| Step 1: You will need to download new firmware for your badge to participate, this firmware can be found here https://defcon.org/signal/ (this link can be found in the topic of #dc29-badge as well if you don't trust me). | |
| Step 2: Connect your badge to your PC with usb-c on badge side, and usb-a on computer. Turn power switch from battery to USB while holding down the bottom right button, your badge should glow red. | |
| Step 3: You should see your badge as an attached USB drive. Drag and drop the new firmware into your badge. It should automatically reboot. | |
| Step 4: Connect to the badge. For macOS, you can run `screen /dev/tty.usbmodem123451 9600` which will present a black screen, then press enter. For linux, use the previous command with 'sudo'. |
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
| "AddClientIDToOpenIDConnectProvider", | |
| "AddRoleToInstanceProfile", | |
| "AddUserToGroup", | |
| "AttachGroupPolicy", | |
| "AttachRolePolicy", | |
| "AttachUserPolicy", | |
| "ChangePassword", | |
| "CreateAccessKey", | |
| "CreateAccountAlias", |
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
| import * as cdk from '@aws-cdk/core'; | |
| import * as ec2 from "@aws-cdk/aws-ec2"; | |
| import ecs = require('@aws-cdk/aws-ecs'); | |
| import ecr = require('@aws-cdk/aws-ecr'); | |
| import ecs_patterns = require('@aws-cdk/aws-ecs-patterns'); | |
| export class IdrdConstructStack extends cdk.Stack { | |
| constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) { | |
| super(scope, id, props); |
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
| Desktop is 1920 x 1080 @ 60 Hz | |
| [Vulkan init] extensions: count=18 | |
| [Vulkan init] extensions: name=VK_KHR_device_group_creation, enabled=0 | |
| [Vulkan init] extensions: name=VK_KHR_external_fence_capabilities, enabled=0 | |
| [Vulkan init] extensions: name=VK_KHR_external_memory_capabilities, enabled=0 | |
| [Vulkan init] extensions: name=VK_KHR_external_semaphore_capabilities, enabled=0 | |
| [Vulkan init] extensions: name=VK_KHR_get_display_properties2, enabled=0 | |
| [Vulkan init] extensions: name=VK_KHR_get_physical_device_properties2, enabled=0 | |
| [Vulkan init] extensions: name=VK_KHR_get_surface_capabilities2, enabled=0 | |
| [Vulkan init] extensions: name=VK_KHR_surface, enabled=1 |
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
| Mono path[0] = '/home/brady/.steam/steam/steamapps/common/Parkitect/Parkitect_Data/Managed' | |
| Mono config path = '/home/brady/.steam/steam/steamapps/common/Parkitect/Parkitect_Data/MonoBleedingEdge/etc' | |
| Preloaded 'UnityFbxSdkNative.so' | |
| Preloaded 'libsteam_api.so' | |
| Display 0 'LEN LI2264d 22"': 1920x1080 (primary device). | |
| Display 1 'LG Ultra HD 27"': 3840x2160 (secondary device). | |
| Desktop is 1920 x 1080 @ 60 Hz | |
| [Vulkan init] extensions: count=18 | |
| [Vulkan init] extensions: name=VK_KHR_device_group_creation, enabled=0 | |
| [Vulkan init] extensions: name=VK_KHR_external_fence_capabilities, enabled=0 |
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
| // ValidateToken takes a token string, usually provided by the user, and | |
| // validates whether or not it is properly signed as well as parses out any claims. | |
| func (s *JWTSecret) ValidateToken(tokenString string) (jwt.MapClaims, error) { | |
| // Make sure token is valid | |
| err := s.ValidSecret() | |
| if err != nil { | |
| return nil, err | |
| } |
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
| var recon <-chan time.Time | |
| go func() { | |
| for { | |
| select { | |
| // If we see a disconnect, try to reconnect | |
| case <-client.Disconnected: | |
| // Trigger reconnect immediately | |
| recon = time.After(0) | |
| case <-recon: | |
| fmt.Printf("Attempting to reconnect...\n") |
NewerOlder