Skip to content

Instantly share code, notes, and snippets.

View paveljurca's full-sized avatar
🎯
Focusing

Pavel paveljurca

🎯
Focusing
View GitHub Profile
@paveljurca
paveljurca / java-debugging.md
Last active May 3, 2023 09:13
How to debug running Java application
@paveljurca
paveljurca / find-connector-by-topic.sh
Last active January 7, 2023 18:44
Confluent Kafka scripts for OPS people
#!/bin/bash
# do not use proxied connections as we connect localhost only
unset http_proxy
# path to JQ binary for parsing JSON in Bash
JQ="$HOME/bin/jq"
# set topic name from input
topic=$1
# Copyright (c) 2018, Ansible Project
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
#from __future__ import (absolute_import, division, print_function)
#__metaclass__ = type
import os
#from ansible.module_utils.common.file import is_executable
@paveljurca
paveljurca / Contract Killer 3.md
Created February 26, 2022 12:10 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

When times get tough and people get nasty, you’ll need more than a killer smile. You’ll need a killer contract.

Used by 1000s of designers and developers Clarify what’s expected on both sides Helps build great relationships between you and your clients Plain and simple, no legal jargon Customisable to suit your business Used on countless web projects since 2008

…………………………

@paveljurca
paveljurca / desktop.bat
Created February 15, 2018 23:19
Windows wallpaper change
#1
@REM reg add "HKCU\Control Panel\Desktop" /v Wallpaper /t REG_SZ /d %userprofile%\desktop\desktop.bmp /f
@REM reg add "HKCU\control panel\desktop" /v WallpaperStyle /t REG_SZ /d 2 /f
@REM rundll32.EXE user32.dll,UpdatePerUserSystemParameters
#2
@REM rundll32.exe %SystemRoot%\system32\shell32.dll,Control_RunDLL %SystemRoot%\system32\desk.cpl desk,@Themes /Action:OpenTheme /file:""%userprofile%\desktop\desktop.theme"""
@paveljurca
paveljurca / User.js
Created February 15, 2018 23:15
Firefox keep history on close
// Copy to %userprofile%\AppData\Local\Mozilla\Firefox\Profiles\*.default folder
// to keep browsing history on close
user_pref("privacy.clearOnShutdown.cache", false)
user_pref("privacy.clearOnShutdown.cookies", false)
user_pref("privacy.clearOnShutdown.downloads", false)
user_pref("privacy.clearOnShutdown.formdata", false)
user_pref("privacy.clearOnShutdown.history", false)
user_pref("privacy.clearOnShutdown.sessions", false)
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\pavel]
"Present"=dword:00000001
"HostName"=""
"LogFileName"="C:\\Users\\pavel\\Desktop\\putty.log"
"LogType"=dword:00000001
"LogFileClash"=dword:00000000
"LogFlush"=dword:00000000
"SSHLogOmitPasswords"=dword:00000001
[google-chrome]
name=google-chrome
enabled=1
autorefresh=1
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
type=rpm-md
keeppackages=0
[openSUSE-13.1-1.19]
name=openSUSE-13.1-1.19
@paveljurca
paveljurca / grub.cfg
Created January 23, 2018 15:05
Windows entry in GRUB2 menu
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry 'win' {
set root='hd0,msdos3'
chainloader +1
}
### END /etc/grub.d/40_custom ###