Skip to content

Instantly share code, notes, and snippets.

View Max95Cohen's full-sized avatar

Max Cohen Max95Cohen

View GitHub Profile
@Max95Cohen
Max95Cohen / fix.sh
Created February 24, 2022 00:50 — forked from AndersonIncorp/fix.sh
GRUB loading. Welcome to GRUB! error: file `/boot/grub/i386-pc/normal.mod` not found.
# GRUB loading.
# Welcome to GRUB!
#
# error: file `/boot/grub/i386-pc/normal.mod` not found.
# Entering rescue mode...
grub rescue> ls
hd(0) (hd0,msdos1)
grub rescue> set
cmdpath=(hd0)
prefix=(hd0,msdos1)/boot/grub
@Max95Cohen
Max95Cohen / git.sh
Last active January 15, 2023 07:35
git.sh
git_branch=$(git branch --show-current 2>&1)
if [[ $git_branch == *"fatal:"* ]]
then export git_branch=''
else export git_branch="$git_branch"
fi
@Max95Cohen
Max95Cohen / .screenrc
Last active January 15, 2023 07:38
.screenrc config
# Turn off the welcome message
startup_message off
# Disable visual bell
vbell off
# Set scrollback buffer to 10000
defscrollback 10000
# Customize the status line
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m-%d %{W}%c %{g}]'
@Max95Cohen
Max95Cohen / .gitconfig_global
Last active January 15, 2023 07:39
.gitconfig_global config
[user]
name = Max_Cohen
email = showman_sexy@bk.ru
[core]
autocrlf = true
excludesfile = C:\\Users\\How are you\\gitignore_global.txt
[alias]
# l = log --graph --all --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %an, %ar%Creset'
@Max95Cohen
Max95Cohen / example.service
Last active January 15, 2023 07:40
example.service linux systemd
[Unit]
Description=goweb
After=network.target
[Service]
Type=simple
Restart=always
RestartSec=5s
ExecStart=/home/kafka/main
User=
@Max95Cohen
Max95Cohen / config
Last active January 15, 2023 07:42
config ssh
~/.ssh/config
Host *
ServerAliveInterval 30
ServerAliveCountMax 2
@Max95Cohen
Max95Cohen / navigation.js
Last active January 16, 2023 09:39
navigation.js phpmyadmin dist js file
js/navigation.js
$(document).on('keydown', (event) => {
if (event.ctrlKey && event.key === '\\') {
event.data = {'resize_handler': this};
this.collapse(event);
}
});
@Max95Cohen
Max95Cohen / plugins
Created January 19, 2023 14:02
Sublime Package controll: Install package
A File Icon
Emmet
Auto-save
HTML-CSS-JS Prettify
Pretty JSON
syncviewscroll
Inspired Github Color Theme
@Max95Cohen
Max95Cohen / apache2.conf
Last active January 20, 2023 03:35
apache2.conf config
ServerSignature Off
ServerTokens Prod
ServerName "localhost.local"
[Service]
UMask=0007
@Max95Cohen
Max95Cohen / example.conf
Last active January 20, 2023 03:36
example.conf apache2 virtual host config
<VirtualHost *:80>
CustomLog /path/access.log combined
DirectoryIndex index.php index.html
DocumentRoot /path
ErrorLog /path/error.log
ServerAlias www.example.com
ServerName example.com
<Directory /path>
Options -Indexes +FollowSymLinks
AllowOverride All