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{
edit your docker-compose.yml
file:
services:
database:
image: postgres:latest
command: postgres -c 'max_connections=250'
SOURCE:
website: https://ntfy.sh
services:
ntfy:
My notes on CAS server installation when learning it. Hope it will be helpful to somebody.
-
Go to https://getcas.apereo.org/ui and download an overlay template project. You can use this example settings applied url (select version field 6.6.x if empty)
-
Generate a keystore and put it to
/etc/cas/keystore
(on Linux) orC:\etc\cas\keystore
(on Windows):
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 '{' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ = WINKEY | |
+ = SHIFT | |
^ = CTRL | |
% = ALT | |
{ADD} = VK_ADD | |
{APPS} = VK_APPS | |
{AT} = @ | |
{BACKSPACE} = VK_BACK | |
{BKSP} = VK_BACK |
NewerOlder