Skip to content

Instantly share code, notes, and snippets.

View anthonydillon's full-sized avatar

Anthony Dillon anthonydillon

View GitHub Profile
@anthonydillon
anthonydillon / I_don't_care_about_cookies.css
Last active March 3, 2024 12:04
I don't care about cookies CSS selectors
html.cookie-notification-active, html.consent-bar-push-large, body.consent-bar-push-large, body.cookiepush, body.with-eu-cookie-guideline, body.gh-cookieb-active #gh.gh-cookieb-active, html.npo_cookieBar body, body.cookiewall, body.cookie-guard, body.with-cookie-hint, body.with-cookie-bar, html.has-cookie-bar, body.with-cookie-hint {margin-top:0 !important}
#cookiesPanel ~ #header, #CpHTMLCookieBar_siteWrapper, body.show-cookie-policy-info {top:0 !important}
body.needsCookieAcceptance, body.cookie-not-set, body.cookie_privacy_info, html.cookie body, body.has-cookie-banner, html.dj_gecko body[style], body.with-cookie-alert, body.body--is-alerted, body.ct-ultimate-gdpr-cookie-topPanel-padding {padding-top:0 !important}
html.with-cookie-hint, body.gh-cookieb-active #gh-gb.gh-cookieb-active {border-top:0 !important}
html.with-cookie-popup, html.with-cookie-popup body, body.page_cookieconfirmation, body.cookieoverlay-is-open, body.cookiewall-active, body.qc-cmp-ui-showing, body.freezePage {overflow:visible !import
# 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
find . -name '*.md' -exec sed -i -E "s|^date: ['\"]?|date = \"|" {} \;
[
{
"fields": {
"url": "download",
"title": "Download"
},
"model": "website.page"
},
{
"fields": {
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')
@anthonydillon
anthonydillon / scratch.css
Last active August 17, 2016 14:21
scratch.css
/*
* Temporary styles to fix some inconsistencies between the latest markup and
* changes in cloud-vanilla-theme.
*/
.inline-list li {
display: inline-block;
}
.wrapper {
@anthonydillon
anthonydillon / docker-dns.sh
Last active February 25, 2016 09:20
Fix Docker's DNS
# 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
@anthonydillon
anthonydillon / .scss
Created December 15, 2015 12:06
indiatimes scss
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;
@anthonydillon
anthonydillon / .html
Created December 15, 2015 12:05
indiatimes markup
<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>
git submodule update