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
let g:lightline = { | |
\ 'colorscheme': 'seoul256', | |
\ 'mode_map': {'c': 'NORMAL'}, | |
\ 'active': { | |
\ 'right': [ [ 'syntastic', 'lineinfo' ], | |
\ [ 'percent' ], [ 'winform' ], | |
\ [ 'fileformat', 'fileencoding', 'filetype' ] ], | |
\ 'left': [ [ 'mode', 'paste' ], [ 'fugitive', 'branch', 'filename' ] ] | |
\ }, | |
\ 'component_function': { |
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
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-gui-common | |
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev | |
#Optional: so vim can be uninstalled again via `dpkg -r vim` | |
sudo apt-get install checkinstall | |
sudo rm -rf /usr/local/share/vim /usr/bin/vim | |
cd ~ |
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
$Server = "ftp://ftp.example.com/" | |
$User = "[email protected]" | |
$Pass = "[email protected]" | |
Function Get-FtpDirectory($Directory) { | |
# Credentials | |
$FTPRequest = [System.Net.FtpWebRequest]::Create("$($Server)$($Directory)") | |
$FTPRequest.Credentials = New-Object System.Net.NetworkCredential($User,$Pass) | |
$FTPRequest.Method = [System.Net.WebRequestMethods+FTP]::ListDirectoryDetails |