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
# This script was created to convert a directory full | |
# of markdown files into rst equivalents. It uses | |
# pandoc to do the conversion. | |
# | |
# 1. Install pandoc from http://johnmacfarlane.net/pandoc/ | |
# 2. Copy this script into the directory containing the .md files | |
# 3. Ensure that the script has execute permissions | |
# 4. Run the script | |
# | |
# By default this will keep the original .md 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
find . -name '*.md' -exec sed -i -E "s|^date: ['\"]?|date = \"|" {} \; |
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
[ | |
{ | |
"fields": { | |
"url": "download", | |
"title": "Download" | |
}, | |
"model": "website.page" | |
}, | |
{ | |
"fields": { |
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
from website.models import Page | |
from website.db_helpers import import_page_from_json_file | |
if Page.objects.filter(url="download").exists(): | |
Page.objects.get(url="download").delete() | |
import_page_from_json_file('download.json') |
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
/* | |
* Temporary styles to fix some inconsistencies between the latest markup and | |
* changes in cloud-vanilla-theme. | |
*/ | |
.inline-list li { | |
display: inline-block; | |
} | |
.wrapper { |
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
# To get the IPV4 IP | |
nmcli dev show | grep DNS | |
sudo vim /lib/systemd/system/docker.service | |
# Add dns flag to ExecStart | |
ExecStart=/usr/bin/docker daemon --dns 8.8.8.8 --dns 10.20.64.1 -H fd:// | |
sudo systemctl daemon-reload | |
sudo service docker restart |
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
body { | |
background-color: #57B136; | |
font-family: Arial; | |
} | |
.container { | |
width: 600px; | |
box-shadow: 0 0 20px 10px rgba(0, 0, 0, .1); | |
margin: 40px; | |
background-color: white; |
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
<div class="container"> | |
<header class="header"> | |
<nav> | |
<ul class="header__menu"> | |
<li class="header__menu-item">item 1</li> | |
<li class="header__menu-item">item 2</li> | |
<li class="header__menu-item">item 3</li> | |
</ul> | |
</nav> | |
<h1 class="header__title">indiatimes</h1> |
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 submodule update |
NewerOlder