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 | |
#check to see if arguments are set | |
E_BADARGS=65 | |
if [ ! -n "$1" ] | |
then | |
echo "Usage: `basename $0` textfilename [rtffilename optional]" | |
exit $E_BADARGS | |
fi |
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 | |
#Setup a new domain on slicehost using layout outlined here: | |
#http://articles.slicehost.com/2008/5/16/ubuntu-hardy-nginx-virtual-hosts | |
#and creating an nginx config file based on this article: | |
#http://www.dailycupoftech.com/2009/02/24/basic-slicehost-slice-setup-part-7-create-the-virtual-host-website/ | |
# ---------------------------------------------------------------- | |
#check to see if arguments are set | |
E_BADARGS=65 |
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
## extract audio from .avi as .aac (conversion from another audio codec) | |
ffmpeg -i foo.avi -acodec aac -ab 128k -strict experimental bar.aac | |
## extract audio from .avi as .mp3 (no conversion, just copy) | |
ffmpeg -i foo.avi -acodec copy bar.mp3 | |
## convert .mp3 to .aac | |
ffmpeg -i foo.mp3 -acodec aac -ab 128k -strict experimental bar.aac | |
## extract single frame as image from .mp4 |
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
#displays status line at bottom of screen window | |
hardstatus alwayslastline | |
#configuration of text to show in status line http://aperiodic.net/screen/man:string_escapes | |
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%Y-%m-%d %{W}%c %{g}]' | |
# binding the F1 - F8 keys to the first 8 screens, F11 = previous | F12 = next | |
bindkey -k k1 select 0 | |
bindkey -k k2 select 1 | |
bindkey -k k3 select 2 |
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/bash | |
gconftool-2 --set "/apps/gnome-terminal/profiles/Default/use_theme_background" --type bool false | |
gconftool-2 --set "/apps/gnome-terminal/profiles/Default/use_theme_colors" --type bool false | |
gconftool-2 --set "/apps/gnome-terminal/profiles/Default/palette" --type string "#070736364242:#D3D301010202:#858599990000:#B5B589890000:#26268B8BD2D2:#D3D336368282:#2A2AA1A19898:#EEEEE8E8D5D5:#00002B2B3636:#CBCB4B4B1616:#58586E6E7575:#65657B7B8383:#838394949696:#6C6C7171C4C4:#9393A1A1A1A1:#FDFDF6F6E3E3" | |
gconftool-2 --set "/apps/gnome-terminal/profiles/Default/background_color" --type string "#00002B2B3636" | |
gconftool-2 --set "/apps/gnome-terminal/profiles/Default/foreground_color" --type string "#65657B7B8383" |
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
Attribute VB_Name = "Subject" | |
Sub AppendTags() | |
On Error Resume Next | |
Dim MsgColl As Object | |
Dim msg As Outlook.mailItem | |
Dim objNS As Outlook.NameSpace | |
Dim i As Long | |
Dim subjectname As String | |
Select Case TypeName(Application.ActiveWindow) |
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
join( | |
forEach( | |
value.trim().split(" "), | |
v, | |
v.substring(0,1).toUppercase() + v.substring(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
{% if site.github_user %} | |
<section> | |
<h2>GitHub Activity</h2> | |
<ul id="gh_events"> | |
<li class="loading">Status updating...</li> | |
</ul> | |
{% if site.github_show_profile_link %} | |
<a href="https://github.com/{{site.github_user}}">@{{site.github_user}}</a> on GitHub | |
{% endif %} | |
<script type="text/javascript"> |
OlderNewer