Skip to content

Instantly share code, notes, and snippets.

View ttys3's full-sized avatar
💭
sad, ttyS0 has been taken by other user

ttys3

💭
sad, ttyS0 has been taken by other user
View GitHub Profile
@ttys3
ttys3 / .phpstorm.meta.php
Created June 12, 2020 18:17 — forked from barryvdh/.phpstorm.meta.php
Laravel PhpStorm Meta file
<?php
namespace PHPSTORM_META {
/**
* PhpStorm Meta file, to provide autocomplete information for PhpStorm
* Generated on 2017-09-28.
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
export EDITOR=vim
export VISUAL=vim
#setup XIM environment, needn't if use SCIM as gtk-immodules
export XIM=ibus
export XMODIFIERS=@im=ibus
export GTK_IM_MODULE=ibus
export QT_IM_MODULE=ibus
#export GTK_IM_MODULE_FILE=/usr/lib/gtk-3.0/3.0.0/immodules.cache
# see https://github.com/getantibody/antibody/issues/218
robbyrussell/oh-my-zsh path:oh-my-zsh.sh
robbyrussell/oh-my-zsh path:lib/history.zsh
robbyrussell/oh-my-zsh path:lib/git.zsh
robbyrussell/oh-my-zsh path:lib/grep.zsh
zsh-users/zsh-syntax-highlighting
zsh-users/zsh-completions
#fixup zsh Home and End keys not working problem
bindkey "${terminfo[khome]}" beginning-of-line
bindkey "${terminfo[kend]}" end-of-line
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# Created by newuser for 5.7.1
#typeset -U path
@ttys3
ttys3 / navicat.desktop.sh
Last active July 15, 2020 02:13 — forked from argilzar/navicat.desktop
Create navicat desktop entry ubuntu
cat > ~/.local/share/applications/navicat.desktop <<EOL
[Desktop Entry]
Type=Application
Name=Navicat Premium 15
GenericName=Database Development Tool
Icon=/home/ttys3/.icons/navicat-icon.png
Exec=/home/ttys3/Apps/navicat15-premium-en-patched.AppImage
Categories=Development;
Keywords=database;sql;
Terminal=false
@ttys3
ttys3 / chroot.sh
Created July 25, 2020 18:15 — forked from uglide/chroot.sh
Chroot to Installed system on LVM
#!/bin/bash
fdisk -lu
pvscan
vgscan
vgchange -a y
lvscan
mount /dev/ubuntu-vg/root /mnt
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
@ttys3
ttys3 / arch-chroot
Created July 25, 2020 18:16 — forked from systemdarena/arch-chroot
arch-chroot for fedora
#!/bin/bash
shopt -s extglob
# generated from util-linux source: libmount/src/utils.c
declare -A pseudofs_types=([anon_inodefs]=1
[autofs]=1
[bdev]=1
[binfmt_misc]=1
[cgroup]=1
@ttys3
ttys3 / README.md
Created November 27, 2020 08:32 — forked from magnetikonline/README.md
List all Git repository objects by size.

List all Git repository objects by size

Summary

Bash script to:

  • Iterate all commits made within a Git repository.
  • List every object at each commit.
@ttys3
ttys3 / line_length.rb
Created December 27, 2020 17:34 — forked from sterpe/line_length.rb
Overcommit LineLength pre-commit hook
# ./.git-hooks/pre_commit/line_length.rb
#
# E.g.:
# Precommit:
# LineLength:
# enabled: true
# description: Verify source line lengths do not exceed 72 columns
# max: 72
# include: ["src/**/*.*"]
#