- Download virtualbox
- Download ubuntu
- Launch VirtualBox and create a new virtual machine instance using the downloaded Ubuntu ISO.
{ | |
"final_space": true, | |
"console_title": true, | |
"console_title_style": "folder", | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"horizontal_offset": 0, | |
"vertical_offset": 0, |
"use client" | |
import * as React from "react" | |
import { buttonVariants } from "@/components/ui/button" | |
import { ScrollArea } from "@/components/ui/scroll-area" | |
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select" | |
import { cn } from "@/lib/utils" | |
import { ChevronLeft, ChevronRight } from "lucide-react" | |
import { DayPicker, DropdownProps } from "react-day-picker" |
# Get editor completions based on the config schema | |
"$schema" = 'https://starship.rs/config-schema.json' | |
# --------------------------------------------------------------------------------------------------------------------- | |
format = """ | |
[](#9A348E)\ | |
$os\ | |
$hostname\ | |
[](bg:#DA627D fg:#9A348E)\ |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Scanner; | |
public class BinarySearchTree { | |
Scanner console = new Scanner(System.in); | |
Node root; | |
public static void main(String[] args) throws Exception { | |
BinarySearchTree program = new BinarySearchTree(); |
'use client' | |
import * as React from 'react' | |
import { EyeIcon, EyeOffIcon } from 'lucide-react' | |
import { Button } from '@/components/ui/button' | |
import { Input, type InputProps } from '@/components/ui/input' | |
import { cn } from '@/lib/utils' | |
const PasswordInput = React.forwardRef<HTMLInputElement, InputProps>(({ className, ...props }, ref) => { |
You want to conditionally render components on the server side based on the device type (mobile, tablet, desktop). The goal is to avoid rendering all components server-side and hiding them with CSS, and to prevent client-side JavaScript from causing a flash of content as it loads.
Create a hook that determines the device type based on window size and stores it in a cookie. Use this context to conditionally render components according to the device type.
A simple one-line script that retrieves all stored WiFi network names and their passwords from a Windows system.
for /f "tokens=2 delims=:" %i in ('netsh wlan show profiles^|findstr "All User Profile"') do @for /f "tokens=* delims= " %j in ("%i") do @(echo. & echo %j & for /f "tokens=2 delims=:" %k in ('netsh wlan show profile name^="%j" key^=clear^|findstr /C:"Key Content"') do @for /f "tokens=* delims= " %l in ("%k") do @echo %l)