This file contains hidden or 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
@echo off | |
set PATH=C:\Program Files\Cava Packager 2.0\bin;D:\strawberryperl\perl\bin;D:\utils;%PATH% | |
echo %PATH% | |
set RET=0 | |
for /F %%i in ('where perl') do set PERL_EXE=%%i | |
for /F %%i in ('cd') do set WS_DIR=%%i | |
set PERL_EXE=%PERL_EXE:\=/% | |
set WS_DIR=%WS_DIR:\=/% |
This file contains hidden or 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 | |
# This script changes the emails of author and committer | |
# from the first argument to the second | |
old=$1 | |
new=$2 | |
if [[ -z $old ]]; then | |
echo "The original email is expected!" | |
exit 1 | |
fi |
This file contains hidden or 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/perl | |
use strict; | |
my $refname = $ARGV[0]; | |
my $oldrev = $ARGV[1]; | |
my $newrev = $ARGV[2]; | |
my $rc = 0; | |
my $cmd = "git rev-list "; |
This file contains hidden or 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 | |
echo "Convert lightweight tag to annotated tag..." | |
for tg in $(git tag |grep REL) | |
do | |
newtag=${tg#REL_} | |
newtag=${newtag//_/.} | |
cmt=$(git log -1 --pretty=%s $tg) | |
tagger=$(git log -1 --pretty=%an $tg) | |
tagmail=$(git log -1 --pretty=%ae $tg) |
This file contains hidden or 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
# Ignore certificate error and use active mode | |
# The "-P -" option instructs curl to use active mode | |
# The "--ftp-ssl" option instructs curl to use SSL V2 | |
# The "-k" option instructs curl to ignore server certificate error | |
curl -v -k -P - --ftp-ssl -T ftp_hook.md ftp://uca:uca@vmcentos64 |
This file contains hidden or 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
-- Oracle flavor | |
insert all | |
into t (col1, col2, col3) values ('val1_1', 'val1_2', 'val1_3') | |
into t (col1, col2, col3) values ('val2_1', 'val2_2', 'val2_3') | |
into t (col1, col2, col3) values ('val3_1', 'val3_2', 'val3_3') | |
. | |
. | |
. | |
select 1 from dual; |
This file contains hidden or 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
\documentclass[a4paper]{article} | |
\usepackage{pdfpages} | |
\begin{document} | |
\includepdf[pages=1-last,nup=2x3,landscape=false,frame=true, | |
noautoscale=true,scale=0.7,delta=4mm 5mm]{slides-handout.pdf} | |
\end{document} |
This file contains hidden or 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
git checkout master | |
git checkout -b <NEW_NAME_FOR_MASTER> | |
git symbolic-ref HEAD refs/heads/<NEW_NAME_FOR_MASTER> | |
git branch -D master |
This file contains hidden or 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
/* reset browser styles */ | |
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, | |
blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, | |
em, img, ins, kbd, q, s, samp,small, strike, strong, sub, sup, tt, var, | |
b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, | |
table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, | |
details, embed, figure, figcaption, footer, header, hgroup, menu, nav, | |
output, ruby, section, summary, time, mark, audio, video { | |
margin: 0; | |
padding: 0; |
This file contains hidden or 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
# Quirk and dirty solution | |
git branch | grep '*' | |
# Use Git's plumbing command | |
git rev-parse --abbrev-ref HEAD |