Personal AI assistant framework that went viral - here's what makes it actually useful.
Why Clawdbot got hyped:
| #!/bin/bash | |
| CONFIG_FILE="$HOME/.ICAClient/wfclient.ini" | |
| REQUIRED_SETTINGS=( | |
| "KeyboardSendSpecial=On" | |
| "TransparentKeyPassthrough=FullScreenOnly" | |
| "FullScreenShortcutSupport=true" | |
| "KeyboardMode=1" | |
| "OverrideDesktopKeyPassthrough=True" | |
| ) |
| #!/bin/bash | |
| # SVN to Git Migration Script | |
| # ========================== | |
| # | |
| # This script performs a complete migration from SVN to Git while preserving | |
| # history, usernames, branches, and tags. | |
| # | |
| # Usage: | |
| # ./svn-to-git-migrate.sh <SVN_REPO_URL> <GIT_REPO_NAME> |
| import json | |
| from datetime import datetime | |
| from typing import List | |
| from fastapi import FastAPI, Request, HTTPException | |
| from starlette.responses import JSONResponse | |
| import httpx | |
| app = FastAPI() | |
| BLACKLIST_PATHS: List[str] = [ |
| function Test-DnsResolve($name, $server) { | |
| <# | |
| .SUMMARY | |
| DNS Resolver tester | |
| .PARAMETER Name | |
| The host name to resolve | |
| .PARAMETER Server | |
| The DNS Server to be used | |
| #> |
| function Get-PasswordComplexity { | |
| <# | |
| .SYNOPSIS | |
| Testing if a given password is complex | |
| .DESCRIPTION | |
| Based on the given SecureString or Credential the function tests if the password used is complex enough. | |
| The complexity is calculated based on the number of character classes use in the password. | |
| The classes are lower case letter, upper case letters, numbers and special characters. | |
| Each class gets a complexity point and the password must include at least 3 classes. |
| # Description: Boxstarter Script | |
| # Author: Jess Frazelle <jess@linux.com> | |
| # Last Updated: 2017-09-11 | |
| # | |
| # Install boxstarter: | |
| # . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
| # | |
| # You might need to set: Set-ExecutionPolicy RemoteSigned | |
| # | |
| # Run this boxstarter by calling the following from an **elevated** command-prompt: |
| // method was added to the Action.cs in the sample | |
| // https://github.com/Azure-Samples/MipSdk-Dotnet-File-Quickstart/blob/master/mip-sdk-dotnet-quickstart/Action.cs | |
| public bool SetProtection(FileOptions options) | |
| { | |
| try | |
| { | |
| var handler = CreateFileHandler(options); | |
| var newRights = new List<UserRights> | |
| { |
| # Setup | |
| Import-Module WebAdministration | |
| # create 2 site root directories | |
| $a = 'C:\inetpub\AspNetCoreSampleA' | |
| $b = 'C:\inetpub\AspNetCoreSampleB' | |
| $siteRoot = 'C:\inetpub\aspnetcoresample' | |
| $siteName = 'AspNetCoreSample' | |
| $poolName = "aspnetcore" | |
| New-Item -Type Directory $a | |
| New-Item -Type Directory $b |
| <Query Kind="Program"> | |
| <NuGetReference Prerelease="true">Microsoft.Diagnostics.Runtime</NuGetReference> | |
| <Namespace>Microsoft.Diagnostics.Runtime</Namespace> | |
| <Namespace>System</Namespace> | |
| <Namespace>System.IO</Namespace> | |
| <Namespace>System.Linq</Namespace> | |
| <Namespace>System.Text</Namespace> | |
| <Namespace>Microsoft.Diagnostics.Runtime.Utilities</Namespace> | |
| </Query> |