Skip to content

Instantly share code, notes, and snippets.

@fordperfect
fordperfect / csd-wrapper.sh
Created February 27, 2018 18:53 — forked from l0ki000/csd-wrapper.sh
Cisco Anyconnect CSD wrapper for OpenConnect (exhanced to autodownload and autoupdate hostscan)
#!/bin/bash
# Cisco Anyconnect CSD wrapper for OpenConnect
# Enter your vpn host here
CSD_HOSTNAME=
if [[ -z ${CSD_HOSTNAME} ]]
then
echo "Define CSD_HOSTNAME with vpn-host in script text. Exiting."
exit 1
fi
@fordperfect
fordperfect / vimwiki2html.md
Created September 22, 2017 16:14 — forked from enpassant/vimwiki2html.md
Convert VimWiki to HTML (markdown, mediawiki)

With this wiki2html.sh bash script and pandoc program, you can convert markdown to html.

Usage: In the vim list section of the .vimrcfile, include options:

let g:vimwiki_list = [{'path': ‘your_wiki_place',
  \ 'path_html': ‘wiki_html_location’,
  \ 'syntax': 'markdown',
 \ 'ext': '.md',
@fordperfect
fordperfect / Cliref.md
Created February 2, 2017 15:40 — forked from yunga/Cliref.md
CLIRef.md
_________ _____ _______________       _____
\_   ___ \\    \\___________   \____ / ____\     ~/.bash/cliref.md
/    \  \/|    | |   ||       _/ __ \  __\    copy/paste from whatisdb
\     \___|__  |_|_  ||    |   \  __/|_ |   http://pastebin.com/yGmGiDQX
 \________  /_____ \_||____|_  /____  /_|     yunga.palatino@gmail.com
 20160515 \/ 1527 \/         \/     \/

alias CLIRef.txt='curl -s "http://pastebin.com/raw/yGmGiDQX" | less -i'

@fordperfect
fordperfect / master.vim
Created June 13, 2016 14:56 — forked from gmccreight/master.vim
A script that gives you a playground for mastering vim
" copy all this into a vim buffer, save it, then...
" source the file by typing :so %
" Now the vim buffer acts like a specialized application for mastering vim
" There are two queues, Study and Known. Depending how confident you feel
" about the item you are currently learning, you can move it down several
" positions, all the way to the end of the Study queue, or to the Known
" queue.
" type ,, (that's comma comma)
@fordperfect
fordperfect / rem-update.sh
Created October 1, 2015 17:31
Uses ical2rem to sync Google Calendars with Remind (one way).
#!/bin/bash
#
# Features:
# 1) Adds a tag to each calendar;
# 2) Checks for updates and does not update unless changes are found;
# 3) Cleans up ical2rem's output.
#
# Instructions:
#
# This program will not tamper with your reminders file so you are responsible for editing it.