recentpopularlog in

kme : script   82

« earlier  
Space Camp (1986) Movie Script | SS
Sampled in Invsble City's "Neon Crusader" -
Atlantis, you are go
for SRB separation.
Hit it!
Control, this is Atlantis.
We have SRB separation
edm  synthwave  sample  film  script  quotes 
july 2019 by kme
swcarpentry/windows-installer: Software Carpentry installer for Windows. |
Software Carpentry installer for Windows. Contribute to swcarpentry/windows-installer development by creating an account on GitHub.
workshop  windows  unix  msysgit  commandline  bash  installation  installer  script  python 
february 2019 by kme
gist:e3896a4a96e931fa7c61 · GitHub |
<code class="language-perl">#!/usr/bin/perl
use warnings;
use strict;
use Class::Load qw( try_load_class );
use Carp qw();
use Package::Stash;

for my $module ( @ARGV ) {
if ( not try_load_class( $module ) ) {
printf "Can't load %s\n";
Carp::carp $Class::Load::ERROR;
printf "%s ( Version %s ) => %s\n",
$INC{ Class::Load::_mod2pm( $module...
perl  PERL5LIB  script  utility  library  whereis  wherefrom  maybesolution 
february 2018 by kme
gist:e3896a4a96e931fa7c61 · GitHub |
<code class="lang-perl">#!/usr/bin/perl
use warnings;
use strict;
use Class::Load qw( load_optional_class );

for my $module ( @ARGV ) {
next unless load_optional_class( $module );
printf "%s => %s\n", $module, $INC{ Class::Load::_mod2pm( $module ) };
perl  PERL5LIB  library  script  sysadmin  maybesolution 
february 2018 by kme
GitHub - vim-scripts/csv.vim: A Filetype plugin for csv files. |
Check out :ArrangeColumn and :UnArrangeColumn. These allow you to use vertical selections to prepend/append to individual columns. Pretty handy! link:

<code class="language-vim">
" create this as ~/.vim/filetype.vim
if exists("did_load_csvfiletype")
let did_load_csvfiletype=1

augroup filetypedetect
au! BufRead,BufNewFile *.csv,*.dat,*.tab,*.bed setfiletype csv
augroup END
Syntax error when opening a CSV file

If you see this error:

<code>CSV Syntax:Invalid column pattern, using default pattern \%([^,]*,\|$\)</code>

This happens usually, when the syntax script is read before the filetype plugin, so the plugin did not have a chance to setup the column delimiter correctly.

The easy way to fix it, is to make sure the :syntax on (:syn-on) statement comes after the :filetype plugin (:filetype-plugin-on) statement in your .vimrc

Alternatively, you can simply call InitCSV and ignore the error.
Autocommand on opening/closing files

Alternatively, you can restrict this setting to files below a certain size. For example, if you only want to enable this feature for files smaller than 1 MB, put this into your .vimrc

let g:csv_autocmd_arrange = 1
let g:csv_autocmd_arrange_size = 1024*1024
vim  script  csv  syntaxhighlighting  programming  plugin  delimitedtext  textprocessing  errormessage  essential  movein  solution 
october 2017 by kme
rotate-backups 4.4 : Python Package Index
Works, but filenames like '1495849557_2017_05_26_9.2.0_gitlab_backup.tar' will confuse it.
python  sysadmin  backup  backupandrecovery  automation  script  solution 
may 2017 by kme
dumblob/mysql2sqlite: Converts MySQL dump to SQLite3 compatible dump
Using 'mysqldump' is no joke. SequelPro didn't work (at least with default options).
mysqldump --skip-extended-insert --compact [options]... DB_name
sqlite  conversion  dba  script  importexport  mysql  solution 
february 2017 by kme
uncommitted 1.6 : Python Package Index
See also, which contains a Ruby 'git-all.rb' that does a lot (if not all) of the same things.
git  versioncontrol  script  python  devel  mercurial  hg  subversion  svn 
january 2015 by kme
Find perl module version from command-line

use CPAN;

printf("%-20s %10s %10s\n", "Module", "Installed", "CPAN");

foreach $a (@ARGV) {
foreach $mod (CPAN::Shell->expand("Module", $a)){
printf("%-20s %10s %10s %s\n",
$mod->inst_version eq "undef" || !defined($mod->inst_version)
? "-" : $mod->inst_version,
$mod->cpan_version eq "undef" || !defined($mod->cpan_version)
? "-" : $mod->cpan_version,
$mod->uptodate ? "" : "*"
perl  module  cpan  tipsandtricks  version  script 
october 2014 by kme
education/teachers_pet · GitHub
Each class is an 'organization' on GitHub. This allows the instructors (GitHub organization Owners) to create, push, pull, and administer all repositories. This achieves two goals:

Instructors can push code starter code to all students
Instructors can easily browse/pull student code at any time during the assignment to assist in questions, check on progress
Each student is given a team in the organization. The team name is the same as the student's GitHub username. The course instructors are also added as team members for each team (see the goals above).
github  education  script  automation  versioncontrol 
july 2014 by kme
MadScientist JNC Session Manager
I didn't need this. After following the instructions at and installing a 32-bit JRE and ia32-libs, I needed to 1) install xterm, then 2) move ncsvc out of ~/.juniper_networks/network_connect and to somewhere else (outside of my encrypted home folder) to get it to work, since it's a SUID root executable. And for shame.

Only problem is, ia32-libs doesn't seem to exist in recent (14.04) versions of Ubuntu.
java  junipervpn  networking  ubuntu  32or64  reference  nottheproblemihad  perl  script 
june 2014 by kme
This one single method will work in both 64bit and 32bit systems by using the 32bit flash natively, or emulating it with ia32-libs. Either way, it uses nspluginwrapper. You can download and execute this file or just copy and paste the whole block into you
clear &&
echo 'Installing Flash for Midori' &&
read -p 'Press Enter to continue, or abort by pressing CTRL+C' nothing &&
mkdir -p ~/.mozilla/plugins &&
wget &&
tar -zxvf install_flash_player_11_linux.i386.tar.gz &&
rm install_flash_player_11_linux.i386.tar.gz &&
if [ $(getconf LONG_BIT) = '64' ]
mv ~/.mozilla/plugins/ &&
sudo apt-get install nspluginwrapper ia32-libs
mv ~/.mozilla/plugins/ &&
sudo apt-get install nspluginwrapper
fi &&
nspluginwrapper -a -v -n -i
xfce  elementaryos  midori  flash  flashplugin  script  commandline  solution 
march 2014 by kme
Can I assign a system-wide external editor in Windows? - mac keyboardshortcuts | Ask MetaFilter
A sort of expert-level version of that script, which would also preserve the current clipboard and probably run a little more smoothly, would probably look like this:

Clip = %Clipboard%
Clipboard =
Send, ^a
KeyWait, a
Send, ^c
Run, C:\Program Files\emacs-22.3\bin\runemacs.exe
Sleep, 3000
Send, ^v
Sleep, 500
Clipboard = %Clip%
windows  clipboard  textprocessing  editor  automation  autohotkey  script  likemac  alternativeto  quickcursor 
january 2014 by kme
linux - How to "undo" unzip command? - Super User
use this:

unzip -l filename | awk 'BEGIN { OFS="" ; ORS="" } ; { for ( i=4; i<NF; i++ ) print $i " "; print $NF "\n" }' | xargs -I{} rm -v {}
Use this if you are skeptical (will prompt for confirmation)

unzip -l filename | awk 'BEGIN { OFS="" ; ORS="" } ; { for ( i=4; i<NF; i++ ) print $i " "; print $NF "\n" }' | xargs -I{} rm -iv {}
archive  zip  shell  commandline  script  solution 
july 2013 by kme
Is there a vim plugin for preview markdown file? - Stack Overflow
function! s:setupMarkup() nnoremap <leader>p :silent !open -a '%:p'<cr> endfunction au BufRead,BufNewFile *.{md,markdown,mdown,mkd,mkdn} call s:setupMarkup()
vim  markdown  markup  marked  preview  webdevel  plugin  script  samplecode  solution 
march 2013 by kme
MacVim: Re-map command key combinations like <d-f> - Super User
if has("gui_macvim")
macmenu &File.New\ Tab key=<nop>
map <D-t> :CommandT<CR>

So basically you unmap the respective menu item, and then you are free to map the shortcut you were trying to map. (I'm not sure what the ampersand is doing; it works with and without it.)

This must be put in ~/.gvimrc, not ~/.vimrc! (Apparently ~/.vimrc is read too early, so the (un)mappings will be clobbered if you put them there.)
vim  commandt  script  addon  editing  productivity  plugin  solution 
march 2013 by kme
« earlier      
per page:    204080120160

Copy this bookmark:

to read