wthiel / Ubuntu User Setup Script
0 beğeniler
0 çatallar
2 dosyalar
Son aktivite 4 months ago
Creates user account, sets up SSH keys from GitHub, and optionally grants sudo privileges
| 1 | #!/bin/bash |
| 2 | |
| 3 | # Ubuntu User Setup Script |
| 4 | # Creates user account, sets up SSH keys from GitHub, and optionally grants sudo privileges |
| 5 | # Must be run as root |
| 6 | |
| 7 | set -e # Exit on any error |
| 8 | |
| 9 | # Color codes for output |
| 10 | RED='\033[0;31m' |
wthiel / Public Keys
0 beğeniler
0 çatallar
2 dosyalar
Son aktivite 4 months ago
| 1 | ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILB5bVuBHYwgtCL+ppoOkKSpu/+wmSOt80yVE/S2qU0F wthiel |
wthiel / Bootstrap Ubuntu server
0 beğeniler
0 çatallar
2 dosyalar
Son aktivite 4 months ago
Install essentials, oh-my-zsh and vimconf
Ubuntu Development Environment Setup Script
This bash script automatically configures a comprehensive development environment on Ubuntu/Debian systems. Here's what it accomplishes:
Installation
Curl
curl -fsSL https://opengist.internal.willithiel.net/wthiel/032ceca594884fce86ed8a6a32726bd2/raw/HEAD/bootstrap.sh | bash
wthiel / Elevated Powershell Example
0 beğeniler
0 çatallar
1 dosyalar
Son aktivite 4 months ago
This script ensures that it runs with administrator privileges before executing the actual code. If no admin rights are available, it restarts itself with elevated privileges.
| 1 | param([switch]$Elevated) |
| 2 | |
| 3 | function Test-Admin { |
| 4 | $currentUser = New-Object Security.Principal.WindowsPrincipal $([Security.Principal.WindowsIdentity]::GetCurrent()) |
| 5 | $currentUser.IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator) |
| 6 | } |
| 7 | |
| 8 | if ((Test-Admin) -eq $false) { |
| 9 | if ($elevated) { |
| 10 | # tried to elevate, did not work, aborting |
wthiel / SendClipboardAsKeystrokes.ahk
0 beğeniler
0 çatallar
1 dosyalar
Son aktivite 4 months ago
This script sends clipboard text as keystrokes with Ctrl+Shift+V. Useful when native paste doesn't work (e.g. SSH, RDP).
| 1 | ;-------------------------------------------------------------- |
| 2 | ; This script sends clipboard text as keystrokes with Ctrl+Shift+V. |
| 3 | ; Useful when native paste doesn't work (e.g. SSH, RDP). |
| 4 | ; Features: |
| 5 | ; - Shows a tooltip if the clipboard is empty. |
| 6 | ; - Adjustable SetKeyDelay for terminals that need slower input. |
| 7 | ; - Does NOT override normal Ctrl+V. |
| 8 | ;-------------------------------------------------------------- |
| 9 | |
| 10 | ; Adjust key delay here (ms between keys, ms press duration): |
Daha yeni
Daha eski