Skip to content

Instantly share code, notes, and snippets.

let configpath = '/home/eailfly/.cvimrc'
map d closeTab
map b :buffer<Space>
map W :tabdetach<CR>
map u lastClosedTab
map O :history<Space>
map <Leader>t newtab
" The default <Leader> key
let mapleader = ','
" the highlight color in find mode
@eailfly
eailfly / changeUserTimeZone.groovy
Created August 30, 2018 08:21 — forked from ricardocasares/notifyOwnChanges.groovy
Bulk profile update for JIRA users from Groovy script on script-runner plugin.
/**
* This script was succesfuly tested on JIRA 6.1
*/
// import JIRA Component Accessor
import com.atlassian.jira.component.ComponentAccessor
// Create a new instance
cA = new ComponentAccessor();
// Get all application users
users = cA.getUserManager().getAllApplicationUsers();
@eailfly
eailfly / install-tmux
Last active August 31, 2018 07:56 — forked from cdkamat/install-tmux
Install tmux 2.3 on rhel/centos 6
# Install tmux on Centos release 6.9
# install deps
yum install gcc kernel-devel make ncurses-devel
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
curl -OL https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz
tar -xf libevent-2.1.8-stable.tar.gz
cd libevent-2.1.8-stable
./configure --prefix=/usr/local
@eailfly
eailfly / uninstall_vmware.bash
Last active December 17, 2019 06:16
Remove VMware Fusion.
#!/usr/bin/env bash
# Usage: bash uninstall_vmware.bash
remove() {
entry="$1"
echo -ne "Removing \e[1;34m$entry\e[0m... "
sudo rm -rf "$entry" &> /tmp/uninstall-vmware.log
if [[ ! -e "$entry" ]]; then
echo -e "\e[1;32mOK\e[0m"
@eailfly
eailfly / windows10-flypy.reg
Last active July 23, 2021 06:08
Add flypy on win10
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\InputMethod\Settings\CHS]
"EnableExtraDomainType"=dword:00000001
"Enable Double Pinyin"=dword:00000001
"DoublePinyinScheme"=dword:0000000a
"UserDefinedDoublePinyinScheme0"="flypy*2*^*iuvdjhcwfg^xmlnpbksqszxkrltvyovt"

This is from askubuntu.com

Using find + xargs + mv:

find . -type f -print0 | xargs -0 -I file mv --backup=numbered file .

This will move all the files in the current working directory and its subdirectories (recursively) into the current working directory, numbering files with the same filename numerically in order to avoid overwrites of files with the same filename.

@eailfly
eailfly / Add_all_folders_to_This_PC_in_File_Explorer.reg
Created November 16, 2022 12:29
Add or Remove Folders under This PC in File Explorer in Windows 11
Windows Registry Editor Version 5.00
; Created by: Shawn Brink
; Created on: June 16, 2022
; Tutorial: https://www.elevenforum.com/t/add-or-remove-folders-under-this-pc-in-file-explorer-in-windows-11.7122/
; 3D Folders
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}]
@eailfly
eailfly / DeleteiCloudicon.reg
Created December 29, 2022 04:35
Delete iCloud icon from My Computer
Windows Registry Editor Version 5.00
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{F0D63F85-37EC-4097-B30D-61B4A8917118}]
@eailfly
eailfly / iRime.custom.yaml
Created October 13, 2018 02:45
iRime Configuration
patch:
app_setting:
space_swipe_to_move: true #开启空格键盘移动光标
play_key_voice: true #开启键盘声
play_key_voice_name: "default.caf" #键盘声音文件,如果声音文件不存在或者没有开发访问权限,将播放系统声音。
play_key_voice_volume: 1.0 #键盘音量大小范围从0.0~1.0之间
impact_feedback: true #键盘震动反馈。这里只支持IOS10以上的系统,且只支持Taptic Engine技术的机型。
impact_feedback_style: "UIImpactFeedbackStyleLight" #UIImpactFeedbackStyleLight 轻 UIImpactFeedbackStyleMedium 中 UIImpactFeedbackStyleHeavy 高
swipe_just_insert_symbol: true #未开放
is_custom_key_font: false #键盘字体是否自字义
@eailfly
eailfly / gnome-extensions.txt
Last active September 27, 2023 10:55
Gnome extensions
Clipboard Indicator
Caffeine
Dash to Dock
Dash to Panel
Tray Icons: Reloaded