This guide documents the process of setting up a Windows workspace using Coder and building the Coder repository on it.
- Access to a Coder deployment (e.g., dev.coder.com)
coderCLI installed and authenticated
This guide documents the process of setting up a Windows workspace using Coder and building the Coder repository on it.
coder CLI installed and authenticated| // SPDX-License-Identifier: GPL-3.0 | |
| pragma solidity >=0.4.22 <0.9.0; | |
| library TestsAccounts { | |
| function getAccount(uint index) pure public returns (address) { | |
| address[15] memory accounts; | |
| accounts[0] = 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4; | |
| accounts[1] = 0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2; |
| # Script to extract first and last event times from Windows System logs for the last 30 days | |
| # For Temporary bypass (single session) run the command below | |
| # Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass | |
| # Get current date for calculation | |
| $today = Get-Date | |
| $startDate = $today.AddDays(-30) | |
| # Initialize array to store results | |
| $results = @() |
| #include <stdio.h> | |
| #include <unistd.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| void fork_and_pipe(int *process, int *writing_fd, int *reading_fd0, int *reading_fd1, int *reading_fd2, int pipe_fd[4][2]); | |
| void pipe_demo() { | |
| int pipe_fd[4][2]; | |
| int process; |
| #include <stdio.h> | |
| #include <unistd.h> | |
| void fork_demo() { | |
| pid_t pid; | |
| printf("Before fork. \tme =%8d\tchild = n/a\tparent = %8d\n", getpid(), getppid()); | |
| pid = fork(); | |
| printf("After fork. \tme =%8d\tchild =%8d\tparent = %8d\n", getpid(), pid, getppid()); | |
| pid = fork(); | |
| printf("Another fork.\tme =%8d\tchild =%8d\tparent = %8d\n", getpid(), pid, getppid()); |
| #define WIN32_LEAN_AND_MEAN | |
| #include <iostream> | |
| #include <windows.h> | |
| #include <ws2tcpip.h> | |
| #include <thread> | |
| #include <string> | |
| using namespace std; | |
| #pragma comment (lib, "Ws2_32.lib") |
| #define WIN32_LEAN_AND_MEAN | |
| #include <iostream> | |
| #include <windows.h> | |
| #include <ws2tcpip.h> | |
| using namespace std; | |
| #pragma comment (lib, "Ws2_32.lib") | |
| #pragma comment (lib, "Mswsock.lib") | |
| #pragma comment (lib, "AdvApi32.lib") |
| #Requires -RunAsAdministrator | |
| Write-Output "Removing previous instances of winget..." | |
| Get-AppxPackage -allUsers *desktopappinstaller* | Remove-AppxPackage | |
| Get-AppxPackage -allUsers *winget* | Remove-AppxPackage | |
| Write-Output "Getting information on latest winget release..." |
| #include <algorithm> | |
| #include <array> | |
| #include <chrono> | |
| #include <cstdint> | |
| #include <cstdio> | |
| #include <random> | |
| #include <vector> | |
| using namespace std; | |
| using namespace std::chrono; |