Skip to content

Instantly share code, notes, and snippets.

View mtungusov's full-sized avatar

Mikhail Tungusov mtungusov

  • Serbia, Belgrade
View GitHub Profile
@mtungusov
mtungusov / pentest cheat sheet
Created August 21, 2025 07:41 — forked from githubfoam/pentest cheat sheet
pentest cheat sheet
----------------------------------------------------------------------------------------------------
OWASP Top Ten
https://owasp.org/www-project-top-ten/
The CWE Top 25
https://www.sans.org/top25-software-errors/
2022 CWE Top 25 Most Dangerous Software Weaknesses
https://cwe.mitre.org/top25/archive/2022/2022_cwe_top25.html
@mtungusov
mtungusov / claude-code-prompt.txt
Created August 21, 2025 07:41 — forked from agokrani/claude-code-prompt.txt
Claude Code System Prompt
'system':
[
{
'type': 'text',
'text': "You are Claude Code, Anthropic's official CLI for Claude.",
'cache_control': {'type': 'ephemeral'}
},
{
'type': 'text',
'text': 'You are an interactive CLI tool that helps users with software engineering tasks.
@mtungusov
mtungusov / keymap.json
Created August 15, 2025 08:23 — forked from oca159/keymap.json
zed keymap.json with same lazyvim keymaps
[
// Terminal
{
"context": "Workspace",
"bindings": {
"ctrl-/": "workspace::ToggleBottomDock"
}
},
// Window's navigation
{
@mtungusov
mtungusov / settings.json
Created August 15, 2025 08:23 — forked from oca159/settings.json
Zed settings.json
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run `zed: open default settings` from the
// command palette
{
"edit_predictions": {
@mtungusov
mtungusov / .golangci.yml
Created March 3, 2025 08:02 — forked from maratori/.golangci.yml
Golden config for golangci-lint
# This file is licensed under the terms of the MIT license https://opensource.org/license/mit
# Copyright (c) 2021-2025 Marat Reymers
## Golden config for golangci-lint v1.64.5
#
# This is the best config for golangci-lint based on my experience and opinion.
# It is very strict, but not extremely strict.
# Feel free to adapt it to suit your needs.
# If this config helps you, please consider keeping a link to this file (see the next comment).
@mtungusov
mtungusov / latency.txt
Created February 28, 2025 08:13 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@mtungusov
mtungusov / emacs-nw.sh
Created January 22, 2024 20:44
emacs-nw
#!/bin/sh
orig=`readlink $0`
: ${orig:=$0} # Otherwise you can't run it directly
${orig%/*}/Emacs -nw "$@"
# Use this file as a symlink target to easily create a "terminal only" emacs:
# ln -s /Applications/Emacs.app/Contents/MacOS/emacs-nw /usr/local/bin/emacs
@mtungusov
mtungusov / emacs.sh
Created December 20, 2023 08:55
Emacs.app from CLI
#!/bin/sh
##
# from: https://gist.github.com/railwaycat/4043945
##
emacs_app=/usr/local/opt/emacs-mac/Emacs.app
if [ ! -x $emacs_app ]; then
echo "Emacs.app not found" >&2
exit 1
@mtungusov
mtungusov / trab_signals.rb
Created February 5, 2016 11:21
Trap Signals
require "java"
java_import java.lang.System
$RUNNING = true
puts "Start App"
puts "Java: #{System.getProperties["java.runtime.version"]}"
puts "Jruby: #{ENV['RUBY_VERSION']}"
%w{INT TERM USR1}.each do |signal|
@mtungusov
mtungusov / build.gradle
Last active February 16, 2016 09:10
build.gradle for JRuby
buildscript {
repositories { jcenter() }
dependencies {
classpath "com.github.jruby-gradle:jruby-gradle-plugin:1.2.0"
classpath "com.github.jruby-gradle:jruby-gradle-jar-plugin:1.2.0"
}
}
plugins {