Skip to content

Instantly share code, notes, and snippets.

View Kambaa's full-sized avatar

KambaAbi Kambaa

  • KambaAbi
  • Istanbul, Turkey
View GitHub Profile
@Kambaa
Kambaa / My-Dockge-Seafile-Docker-Compose-Configuration.yaml
Last active January 28, 2025 15:48
Self-Hosted SeaFile 11 With SeaDoc Integration Enabled Docker Compose Settings ready to use on Dockge!
# Do not forget to use .env variable for the ${...} fields
# With this setup, if you have a domain and manage it on cloudflare,
# you can use the cloudflare tunnels and use seafile on your self hosting machine,
# on your subdomain(i.e: cloud.example.com and cloud-sdoc.example.com.tr for the sdoc-server)
version: "3.8"
services:
db:
restart: unless-stopped
image: mariadb:10.11
container_name: seafile-mysql
@Kambaa
Kambaa / addLcurly.sh
Last active June 7, 2024 12:15
Custom keyboard shortcuts for My Linux Mint. Go to Settings - Keyboard - Shortcuts - Custom and add a shortcut to call these files and set your keyboard combinations.
#!/bin/bash
# This command sends this text on active window: {
# Go to settings - keyboard - shortcuts and add a shortcut to call this file and set your keyboard combinations.
windowid=$(xdotool getwindowfocus)
sleep 0.2 && xdotool windowactivate --sync $windowid type '{'
@Kambaa
Kambaa / My Cas 6.6.x Notes.md
Last active February 10, 2025 09:11
My CAS 6.6.x Setup Notes

My notes on CAS server installation when learning it. Hope it will be helpful to somebody.

[Update 2025] Because CAS documentation site deprecates and removes the older versions, i've fetched and hosted the 6.6.X version docs to my domain.

Initial/Basic setup.

@Kambaa
Kambaa / ntfy-notes.md
Created August 8, 2024 19:32
My NTFY notes
@Kambaa
Kambaa / postgres-increase-max-conn-docker.md
Created August 9, 2024 23:29
How to increate max connections on postgres on docker

edit your docker-compose.yml file:

services:
  database:
    image: postgres:latest
    command: postgres -c 'max_connections=250'

SOURCE:

@Kambaa
Kambaa / profile-example.md
Last active November 5, 2024 08:47
Windows powershell profile (like bashprofile) settings.
Clear-Host
# tab auto completion for git commands
# Install with:  PowerShellGet\Install-Module posh-git -Scope CurrentUser -Force
# more on website: https://github.com/dahlbyk/posh-git?tab=readme-ov-file#installation
Import-Module posh-git
oh-my-posh init pwsh | Invoke-Expression


function QuitReplacement{
@Kambaa
Kambaa / key-binding.json
Created December 24, 2024 17:59
Sublime Key configs
[
{ "keys": ["alt+d"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
{ "keys": ["ctrl+d"], "command": "duplicate_line" },
{ "keys": ["ctrl+shift+c"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+space+down"], "command": "select_lines", "args": {"forward": true} },
{ "keys": ["ctrl+space+up"], "command": "select_lines", "args": {"forward": false}},
{ "keys": ["shift+alt+f"], "command": "reindent", "args": {"single_line": false} } ,
{ "keys": ["shift+alt+f"], "command": "pretty_json" ,
@Kambaa
Kambaa / Wake On Lan Clients.md
Last active January 1, 2025 19:10
Wake on lan script for Windows And Linux

How to use Wake On Lan (WOL):

For windows:

Save the script below to a file named Wol.ps1. Change the mac address of your machine accordingly.


# Function to send Wake-on-LAN (WoL) Magic Packet
function Send-WoL {
    param (
@Kambaa
Kambaa / kubeadm-cluster-installation-steps.md
Last active January 7, 2025 10:25
Kubernetes Installation Steps on Ubuntu Server 24.04 (tested with virtualbox osboxes image)

Kubernetes Cluster Installation Steps

1. osboxes ubuntu-server virtualbox image settings:

sudo dpkg-reconfigure keyboard-configuration

70 for generic keyboard 93 for Turkish layout (press 1 for the other defaults)

2. Prerequisites:

@Kambaa
Kambaa / My Ansible Learning Notes on an Ubuntu Server 22.04 VM .md
Last active January 18, 2025 14:40
My Ansible Learning Notes on an Ubuntu Server 22.04 VM

My Ansible Learning Notes on an Ubuntu Server 22.04 VM

What is Ansible:

A tool/way to automotize operations done in machine environments.

Installation:

First install ansible with sudo apt install ansible -y and then check it with ansible --version. This is my version info:

osboxes@jumphost:~/ansible-tutorial$ ansible --version
ansible 2.10.8