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 Cas 6.6.x Notes.md
Last active July 5, 2024 19:14
My CAS 6.6.x Setup Notes

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

Initial/Basic setup.

@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 / profile-example.md
Last active May 21, 2024 12:11
Windows powershell profile (like bashprofile) settings.

Bash Profile Configurations For Powershell:

run this command:

notepad $Profile

if error given generate new one:

@Kambaa
Kambaa / My-Dockge-Seafile-Docker-Compose-Configuration.yaml
Last active May 20, 2024 17:00
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 / Rebuild_Icon_Cache.bat
Created March 23, 2024 21:24
win 10 rebuild icon cache
@echo off
REM https://www.tenforums.com/tutorials/5645-rebuild-icon-cache-windows-10-a.html
set iconcache=%localappdata%\IconCache.db
set iconcache_x=%localappdata%\Microsoft\Windows\Explorer\iconcache*
echo.
echo The explorer process must be temporarily killed before deleting the IconCache.db file.
echo.
@Kambaa
Kambaa / Launch TP
Last active March 23, 2024 04:07
TinyProxy - Basic proxy for small needs
[Desktop Entry]
Name=Launch TP
Exec=/home/user/tinyproxy/tinyproxy -d -c /home/user/tinyproxy/tinyproxy.conf
Comment=Launch TinyProxy
Terminal=true
PrefersNonDefaultGPU=false
Icon=csd-screensaver-proxy
Type=Application
@Kambaa
Kambaa / strokes plus keys.txt
Last active March 22, 2024 20:34 — forked from sysatom/sp_keys.txt
StrokesPlus : Full SendKeys listing
@ = WINKEY
+ = SHIFT
^ = CTRL
% = ALT
{ADD} = VK_ADD
{APPS} = VK_APPS
{AT} = @
{BACKSPACE} = VK_BACK
{BKSP} = VK_BACK
@Kambaa
Kambaa / demo.sh
Created March 22, 2024 20:29
Linux auto enter text example
#!/bin/bash
string="EXAMPLE_TEXT..."
delay=0.05 # Delay between character inputs in seconds
sleep "0.5" # initial wait, without this, some of the chars in the beginning is missing
for char in ${string}; do
xdotool type "${char}" && sleep "${delay}"
done
@Kambaa
Kambaa / Docker-WSL-Manuel-Yukleme.md
Last active February 22, 2024 20:20
Docker'ı WSL2 ile çalışan Debian makinasına yüklemek

Docker'ı WSL2 ile çalışan Debian makinasına yüklemek

Docker desktop zaten yavaş olan kodlama yaptığım makinamı iyice yavaşlatınca, direk WSL'de çalışan linux'a docker'ı elle kurup kullanmayı tercih ettim. Aşağıdaki adımları her seferinde farklı sitelerden bulup ayarlamaktansa buraya yazmayı tercih ettim.

1.Docker'u yükleme:

Aşağıdaki komutları docker'sın resmi sitesinde yazan yerlerden aldım. Kısaca docker uygulama bilgilerini Debian yükleme aracı apt'nin güvenli bir şekilde alıp okumasını sağlayıp docker'ı ve docker compose'u yükletiyorum.

# Add Docker's official GPG key: