forked from rstacruz/cheatsheets
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
127 changed files
with
1,289 additions
and
1,059 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
_output | ||
_site |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<script src="assets/jquery.js"></script> | ||
<script src="assets/prettify.js"></script> | ||
<script>$("pre").addClass("prettyprint");</script> | ||
<script>prettyPrint();</script> | ||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title></title> | ||
<link href="assets/style.css" rel="stylesheet" /> | ||
<link href='http://fonts.googleapis.com/css?family=Muli:400,100' rel='stylesheet' type='text/css'> | ||
<link href='http://fonts.googleapis.com/css?family=Ubuntu+Mono:400' rel='stylesheet' type='text/css'> | ||
</head> | ||
<body> | ||
<div class='background'></div> | ||
<div class='all'> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title></title> | ||
<link href="style.css" rel="stylesheet" /> | ||
<link href='http://fonts.googleapis.com/css?family=Muli:400,100' rel='stylesheet' type='text/css'> | ||
<link href='http://fonts.googleapis.com/css?family=Ubuntu+Mono:400' rel='stylesheet' type='text/css'> | ||
</head> | ||
<body> | ||
<div class='background'></div> | ||
<div class='all'> | ||
<h1> | ||
<%= page.meta.title || File.basename(page.file, '.*').capitalize %> | ||
<a class='back' href='.'>Index</a> | ||
</h1> | ||
<%= yield %> | ||
</div> | ||
{% include head.html %} | ||
|
||
<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/1.6.4/jquery.min.js'></script> | ||
<script src="http://cachedcommons.org/cache/prettify/1.0.0/javascripts/prettify-min.js"></script> | ||
<script>$("pre").addClass("prettyprint");</script> | ||
<script>prettyPrint();</script> | ||
</body> | ||
</html> | ||
<h1> | ||
{{ page.title }} | ||
<a class='back' href='.'>Index</a> | ||
</h1> | ||
|
||
{{ content }} | ||
|
||
{% include foot.html %} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{% include head.html %} | ||
|
||
<h1> | ||
{{ page.title }} | ||
<a class='back' href='.'>Index</a> | ||
</h1> | ||
|
||
{% for page in site.pages %} | ||
<a href="{{ page.url }}">{{ page.title }}</a> | ||
{% endfor %} | ||
|
||
{% include foot.html %} |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
Convert mp4 to gif: | ||
--- | ||
title: Animated gifs | ||
layout: default | ||
--- | ||
|
||
### Convert mp4 to gif | ||
|
||
mkdir -p gif | ||
mplayer -ao null -vo gif89a:outdir=gif $mp4 | ||
mogrify -format gif *.png | ||
gifsicle --colors=256 --delay=4 --loopcount=0 --dither -O3 gif/*.gif > ${mp4%.*}.gif | ||
rm -rf gif | ||
|
||
Or a given range (-ss -endpos): | ||
### Or a given range (-ss -endpos) | ||
|
||
mplayer -ao null -ss 0:02:06 -endpos 0:05:00 -vo gif89a:outdir=gif videofile.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
# Ansi codes | ||
--- | ||
title: Ansi codes | ||
layout: default | ||
--- | ||
|
||
Format | ||
|
||
|
File renamed without changes
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.