Skip to content

Instantly share code, notes, and snippets.

View devenes's full-sized avatar
☁️

Enes devenes

☁️
  • Cloud
View GitHub Profile
@devenes
devenes / git-ssh-commit-signing-setup.md
Created March 23, 2026 23:21
Step-by-step guide to automatically sign Git commits with SSH keys and display the Verified badge on GitHub.

🔐 Git SSH Commit Signing Setup

Automatically sign all your Git commits and get the ✅ Verified badge on GitHub.


Prerequisites

  • Git installed
  • A GitHub account
@devenes
devenes / top-brew-packages.txt
Created March 6, 2026 06:42 — forked from pmkay/top-brew-packages.txt
Top homebrew packages
node: Platform built on V8 to build network applications
git: Distributed revision control system
wget: Internet file retriever
yarn: JavaScript package manager
python3: Interpreted, interactive, object-oriented programming language
coreutils: GNU File, Shell, and Text utilities
pkg-config: Manage compile and link flags for libraries
chromedriver: Tool for automated testing of webapps across many browsers
awscli: Official Amazon AWS command-line interface
automake: Tool for generating GNU Standards-compliant Makefiles
#!/bin/bash
# Set the Azure subscription for the script to run
# Example: az account set --subscription <subscription_id>
# Parallel throttle limit - modify this based on your system capability
parallelThrottleLimit=16
logFileName="LogAnalyticsAgentUninstallUtilityScriptLog.log"
inventoryFile="LogAnalyticsAgentExtensionInventory.csv"
@devenes
devenes / installAzCopy.ps1
Created August 4, 2024 19:59
Installing azcopy and ensuring it is added to the system PATH
$InstallPath = 'C:\AzCopy'
# Cleanup Destination
if (Test-Path $InstallPath) {
Get-ChildItem $InstallPath | Remove-Item -Confirm:$false -Force
}
# Zip Destination
$zip = "$InstallPath\AzCopy.Zip"
autoload -U +X bashcompinit && bashcompinit
zmodload -i zsh/parameter
if ! (( $+functions[compdef] )) ; then
autoload -U +X compinit && compinit
fi
_python_argcomplete() {
local prefix=
if [[ $COMP_LINE == 'gcloud '* ]]; then
if [[ $3 == ssh && $2 == *@* ]] ;then
@devenes
devenes / README.md
Last active March 24, 2023 22:25 — forked from nordineb/README.md
Hide HTTP Headers - Fingerprinting Web Server

Checking HTTP headers with CURL

curl -I -L https://hostname

Remove ASP.Net MVC Default HTTP Headers

Global.asax.cs

@devenes
devenes / chrome.ps1
Created March 19, 2023 15:37
Install Google Chrome on Windows Server
$LocalTempDir=$env:TEMP;$ChromeInstaller="ChromeInstaller.exe";(New-Object System.Net.WebClient).DownloadFile('http://dl.google.com/chrome/install/375.126/chrome_installer.exe',"$LocalTempDir\$ChromeInstaller");Start-Process -FilePath "$LocalTempDir\$ChromeInstaller" -ArgumentList '/silent', '/install' -Wait;$Process2Monitor="chrome";Do{$ProcessesFound=Get-Process -Name $Process2Monitor -ErrorAction SilentlyContinue;if($ProcessesFound){Write-Host "Still running: $($ProcessesFound.Name -join ', ')";Start-Sleep -Seconds 2}else{Remove-Item -Path "$LocalTempDir\$ChromeInstaller" -ErrorAction SilentlyContinue -Verbose}}until(!$ProcessesFound)$LocalTempDir=$env:TEMP;$ChromeInstaller="ChromeInstaller.exe";(New-Object System.Net.WebClient).DownloadFile('http://dl.google.com/chrome/install/375.126/chrome_installer.exe',"$LocalTempDir\$ChromeInstaller");Start-Process -FilePath "$LocalTempDir\$ChromeInstaller" -ArgumentList '/silent', '/install' -Wait;$Process2Monitor="chrome";Do{$ProcessesFound=Get-Process -Name $Proce
# Use a multi-stage build to optimize image size
FROM node:14-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
COPY . .
RUN npm run build
FROM nginx:alpine
LABEL maintainer="Your Name <[email protected]>"
@devenes
devenes / main.tf
Created November 30, 2022 14:46
Infrastructure as Code with Terraform
terraform {
required_providers {
google = {
source = "hashicorp/google"
}
}
}
provider "google" {
version = "3.5.0"
resource "google_compute_instance" "terraform" {
project = "<PROJECT_ID>"
name = "terraform"
machine_type = "n1-standard-1"
zone = "us-west1-c"
boot_disk {
initialize_params {
image = "debian-cloud/debian-11"
}