Skip to content

Instantly share code, notes, and snippets.

@enginyilmaaz
enginyilmaaz / jetson_flash.sh
Last active January 16, 2026 13:51
Jetson Flash Script - Interactive script for flashing Jetson devices via Docker SDK Manager
#!/bin/bash
#
# Jetson Flash Script
# Interactive script for flashing Jetson devices via Docker SDK Manager
#
# REQUIREMENTS:
# 1. Docker must be installed
# 2. NVIDIA Developer account required (https://developer.nvidia.com)
# 3. SDK Manager Docker image must be downloaded:
# https://developer.download.nvidia.com/sdkmanager/redirects/sdkmanager-docker-image-ubuntu2204.html
@enginyilmaaz
enginyilmaaz / README.md
Last active January 13, 2026 22:21
DevOps Docker Environment - Jenkins, Nexus, Nginx

DevOps Docker Environment

A complete Docker-based CI/CD environment with Jenkins, Nexus Repository Manager, and Nginx reverse proxy.

Overview

This repository provides a ready-to-use DevOps infrastructure consisting of:

  • Jenkins - CI/CD automation server
  • Nexus Repository Manager - Artifact repository for Maven, npm, Docker, and more
@enginyilmaaz
enginyilmaaz / ubuntu-setup.sh
Last active April 2, 2026 00:16
Ubuntu Post-Installation Setup Script - NVM, Node.js 22, Chrome, Cursor, VSCode, Python, DBeaver CE, GNOME Extensions, Dash to Dock, RealVNC (No deb downloads)
#!/bin/bash
#===============================================================================
# Ubuntu Post-Installation Setup Script
# Version: 2.5.0 (rev-53)
# Author: Smart Marine / enginyilmaaz
# Description: Automates Ubuntu post-installation setup with modular options
#
# Usage:
# ./ubuntu-setup.sh --all # Install everything
@enginyilmaaz
enginyilmaaz / deleteGithubDeployments.md
Created September 28, 2024 10:48
Delete All Github Deployment History

GitHub Deployment Deletion Script

This script allows you to delete all deployment records in a GitHub repository using the GitHub API. It securely stores your GitHub Personal Access Token (PAT) in a file (~/.github/.deployment_token) after the first use and automatically handles pagination for repositories with more than 100 deployments.

How to Obtain a GitHub Personal Access Token (PAT)

Before running the script, you need a GitHub Personal Access Token (PAT). Follow these steps:

  1. Go to GitHub: Navigate to the GitHub Personal Access Tokens Page.
@enginyilmaaz
enginyilmaaz / #Runtime environmental variables in Next.js 13 with Kubernetes and Docker.md
Last active November 24, 2024 22:56
Runtime environmental variables in Next.js 13 with Kubernetes/Docker

Next.js Application Kubernetes Deployment with Runtime Environment Variables

This repository contains a setup for deploying a Next.js application using Kubernetes and Docker. The main objective is to inject environment variables at runtime, all of which are prefixed with NEXT_PUBLIC_ and defined in the Dockerfile.

Purpose

The goal is to allow the use of runtime environment variables in a Next.js application. All environment variables are passed via Docker ARG during the build process and can be used to configure the application dynamically across different environments (development, staging, production).

Environment Variables

@enginyilmaaz
enginyilmaaz / KillAllActiveConnectionMSSQL.md
Created July 2, 2024 09:11
Kill All Inactive Unclosed Connection MSSQL

SQL Server Connection Script

This script connects to specified SQL Server databases, checks for user sessions that have been active for more than 2 minutes, and terminates those sessions. The script outputs the results of these actions, including the number of terminated sessions for each database. Finally, it provides a countdown before closing.

Explanation

  • SQL Server Connection Information: Sets the server instance, username, and password for the SQL Server connection.
  • Time Limit for Terminating Connections: Defines the time limit (in minutes) for terminating active connections.
  • List of Databases to Check: Specifies the databases to be checked for active user sessions.
@enginyilmaaz
enginyilmaaz / Select Records Based on a Specific Column Value.md
Created June 10, 2024 12:44
Select Records Based on a Specific Column Value

Select Records Based on a Specific Column Value

This document contains a SQL script and explanations for identifying tables containing records with a specific column value in SQL Server, and then selecting those records. This script iterates through tables with a specified column and dynamically constructs select statements.

SQL Script

DECLARE @TableName NVARCHAR(256)
DECLARE @SQL NVARCHAR(MAX)
@enginyilmaaz
enginyilmaaz / Delete Records Based on a Specific Column and Value.md
Created June 10, 2024 12:40
Delete Records Based on a Specific Column and Value

Delete Records Based on a Specific Column and Value

This document contains a SQL script and explanations for identifying tables containing records with a specific column and value in SQL Server, and then deleting those records. This script takes the column name and value as parameters and dynamically generates delete commands.

SQL Script

-- Create a temporary table
CREATE TABLE #TableCheckResults (
@enginyilmaaz
enginyilmaaz / TSQL.md
Created January 3, 2024 10:43
TSQL Find Realational Coulmns Specific Table

T-SQL Query for Foreign Key Relationships

This T-SQL script is designed to find all foreign key relationships for a specific table, including the corresponding primary key details. It covers both cases where the specific table is either the parent (referencing) or the child (referenced) in the relationship.

Query

SELECT 
    fk.name AS ForeignKeyName,