This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# ВАЖНО. mail.ru время от времени меняет внутрянку, не очень сильно, но требуется адаптация скрипта. | |
# Если скрипт не работает, просьба разместить патч в комментариях или сделать работающий форк. | |
# 2018-06-18 updated: mail.ru changed internals | |
# 2017-09-22 original idea: https://novall.net/itnews/bash-skript-dlya-skachivaniya-fajlov-s-mail-ru-cherez-konsol-linux.html | |
URL="$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RUN export LATEST_PROTO_VERSION=$(curl -sL https://api.github.com/repos/protocolbuffers/protobuf/releases/latest | grep '"tag_name":' | cut -d: -f2 | cut -c4-8) && \ | |
curl -sL https://github.com/protocolbuffers/protobuf/releases/download/v${LATEST_PROTO_VERSION}/protoc-${LATEST_PROTO_VERSION}-linux-x86_64.zip -o proto.zip && \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# code --list-extensions | xargs -L 1 echo code --install-extension >> etx.sh | |
code --install-extension alexdima.copy-relative-path | |
code --install-extension bmewburn.vscode-intelephense-client | |
code --install-extension brandonjmatthews.one-dark-dark-plus | |
code --install-extension christian-kohler.npm-intellisense | |
code --install-extension dbaeumer.vscode-eslint | |
code --install-extension dracula-theme.theme-dracula | |
code --install-extension eamodio.gitlens |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map ц showHelp | |
map с scrollDown | |
map м scrollUp | |
map о scrollLeft | |
map х scrollRight | |
map гг scrollToTop | |
map Г scrollToBottom | |
map .О scrollToLeft | |
map .Х scrollToRight | |
map <с-в> scrollDown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd $HOME | |
git clone https://github.com/vim/vim | |
cd vim | |
make distclean | |
./configure –enable-multibyte \ | |
--enable-fontset \ | |
--enable-xim \ | |
--enable-gui=auto \ | |
--enable-luainterp=dynamic \ | |
--enable-pythoninterp=yes \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Images | |
* | |
* Look at src/images, optimize the images and send them to the appropriate place | |
*/ | |
gulp.task('images', function() { | |
// Add the newer pipe to pass through newer images only | |
return gulp.src(['./assets/img/raw/**/*.{png,jpg,gif}']) | |
.pipe(newer('./assets/img/')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.commonrc.zsh | |
# Vi mode | |
bindkey -v | |
# Use vim cli mode | |
bindkey '^P' up-history | |
bindkey '^N' down-history | |
# backspace and ^h working even after |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Download using android tool from the sdk | |
Instead of running the android sdk manager with a GUI, you also have an option to run in headless mode. You just need to specify -u flag. | |
To list packages available for installation or upgrade: | |
$ cd android-sdk-linux | |
$ ./tools/android list sdk --all | |
Refresh Sources: | |
(...) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<style type="text/css"> | |
@import url(https://fonts.googleapis.com/css?family=Droid+Sans+Mono); | |
body { | |
margin:0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Some good standards, which are not used if the user | |
# creates his/her own .bashrc/.bash_profile | |
export PATH="$PATH:/c/cerver/bin/nodejs/:/c/server/bin/nodejs/node_modules/npm/:/c/server/bin/ruby/bin/" | |
# --show-control-chars: help showing Korean or accented characters | |
alias ls='ls -F --color=auto --show-control-chars' | |
alias ll='ls -l' | |
alias www='cd /c/server/www/' | |
alias st='cmd //c /d/#portable/Total\ Commander/Plugins/exe/SublimeText3/subl.exe' |
NewerOlder