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/sh | |
# using winmerge with git | |
# replaces unix style null files with a newly created empty windows temp file | |
file1=$1 | |
if [ "$file1" == '/dev/null' ] || [ "$file1" == '\\.\nul' ] || [ ! -e "$file1" ] | |
then | |
file1="/tmp/gitnull" | |
`echo "">$file1` | |
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
#fyi %x20 is a space. | |
[alias] | |
graph = log --graph --color --pretty=format:"%C(yellow)%H%C(green)%d%C(reset)%n%x20%cd%n%x20%cn%x20(%ce)%n%x20%s%n" |
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/sh | |
@echo "Making docs" | |
git ls-files | grep php | while read line; do filename=$(basename $line); newfile=docs/$filename; echo $newfile; doxphp | |
< $line | doxphp2sphinx > ${newfile/%.php/.rst}; done | |
@echo "deleting empty files" | |
rm -f $(find . -empty) |
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
..:77I777777777777777777777I. . | |
..?77777777777777777777777777777$+.. | |
. ~7777777I7777777777777777777777777$~.. | |
.7I7777...7777777777777777777777777$7+. | |
.?7777.. ..77777777777777777777777$$7. | |
.77777 777777777777777777777$$$$$I | |
.77777.. ...7777777777777777777$$$$$$$$ | |
.7777777 .77$777777777777777777$$$$$$$$ | |
.77777777777777777777777777777$$$$$$$$$$ | |
.77777777777777777777777777$$$$$$$$$$$$$ |
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
xxx | |
xxx | |
xxxxxxxxxxxxx | |
xxxxxxxxxxxxx | |
xxx | |
xxx | |
xxxxxxxxxxxxx | |
xxxxxxxxxxxxx |
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 pretty format options | |
------------------------- | |
- '%x20': space | |
- '%H': commit hash | |
- '%h': abbreviated commit hash | |
- '%T': tree hash | |
- '%t': abbreviated tree hash | |
- '%P': parent hashes | |
- '%p': abbreviated parent hashes | |
- '%an': author name |
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/sh | |
while true; | |
do | |
clear | |
git log \ | |
--graph \ | |
--all \ | |
--color \ | |
--date=short \ | |
-40 \ |
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/sh | |
clear | |
echo -e " " | |
echo -e " \e[00;32m xxx " | |
echo -e " \e[00;32m xxx \e[01;33m welcome to GIT" | |
echo -e " \e[00;32m xxxxxxxxxxxxx \e[01;33m the information manager from hell" | |
echo -e " \e[00;32m xxxxxxxxxxxxx " | |
echo -e " \e[00;32m xxx " | |
echo -e " \e[00;32m xxx " | |
echo -e " \e[00;32m \e[01;37m" $(git --version) |
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/sh | |
echo -e "\e[01;33m[username]\e[00m" | |
read user | |
echo -e "\e[01;33m[password]\e[00m" | |
read pass | |
echo -e "\e[01;33m[database]\e[00m" | |
read db | |
echo -e "\e[01;33m[sql file]\e[00m" | |
read file | |
mysql> mysql -u $user -p $pass $db < ~/Downloads/$file |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>css injection | xero.nu</title> | |
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<style type="text/css"> | |
body{ | |
font: normal 12pt "Times New Roman", serif; | |
background: #ccc; | |
color: #000066; |
OlderNewer