- Copy-paste to split book into separate chapter files
- Fix inline spans broken by a space after a word before the closing
*
- Remove image width and height inherited from images in docx
- Wrap all images in an Electric Book figure blockquote
- Simplify indentation in lists by reducing space after list marker to one space
- Remove non-kramdown markdown
^
around superscripts after numbers - Wrap the opening words of a paragraph in a span
- Find an email address
# List all branches and their hashes on remote | |
git ls-remote --head | |
# List all tags and their hashes on a remote server | |
git ls-remote -t | |
# Get hash for a specific tag | |
git rev-parse v1.1.0 | |
# Get last tag for current branch |
<?php | |
/* Plugin Name: My Plugin */ | |
include( dirname( __FILE__ ) . '/library/admin-page-framework.php' ); | |
if ( ! class_exists( 'MyPluginName_AdminPageFramework' ) ) { | |
return; | |
} | |
class MyPluginName extends MyPluginName_AdminPageFramework { | |
//... Start code here ... |
for file in * | |
do | |
date=`cut -d' ' -f 1 <<< "$file"` | |
dir=${file%".jpg"} | |
mkdir "$dir" | |
mv "$file" "$dir" | |
time=`cut -d' ' -f 2 <<< "$file" | sed -e 's/\./\:/g'` | |
datetime=$date'T'$time'+00:00' | |
printf '%s\n' '---' 'categories: ["instagram"]' "date: $datetime" 'description: ""' 'draft: false' 'resources:' " - src: '$file'" ' name: "header"' 'layout: instagram' 'slug:' 'stories:' 'subtitle:' 'title: Untitled' 'options:' ' unlisted: false' ' showHeader: true' '---' '' "<img src=\"$file\" />" | tee $dir/index.md $dir/index.pt.md | |
done |
#!/bin/bash | |
INCLUDE="/etc/nginx/incl/basicauth.conf" | |
SOURCEDIR="/home/Digital-Insanity/content/" | |
read -p "Website nginx directory without trailling slash [/var/web/brunoamaral.eu]:" publicDir | |
publicDir=${publicDir:-/var/web/brunoamaral.eu} | |
read -p "Which directory should we protect? (no trailling slash)" relUrl | |
htpasswd -c "$publicDir$relUrl/.htpasswd" nginx; | |
cp "$publicDir$relUrl/.htpasswd" "$SOURCEDIR$relUrl" |
#!/bin/bash | |
# That tells Linux to use a Bourne shell interpreter. | |
# Run this script from the current directory. (Required on OSX.) | |
cd -- "$(dirname "$0")" | |
# Don't echo these commands. | |
set +v | |
# Get the filename from the user. |
<html> | |
<head></head> | |
<body> | |
<div class="noticia">CARGANDO</div> | |
<script src="https://code.jquery.com/jquery-3.1.0.js"></script> | |
<script> | |
$(function(){ | |
var url = 'https://www.domain.co/index.xml'; | |
var news = $('.noticia'); |
Many of us spend many hours of our days using their terminal. Plus, we all have different tastes when it comes to color schemes. That's why the ability to change the color scheme of a terminal is one of its more important featuresl. Throughout this tutorial, I'll teach you how you can change the looks of your terminal, step by step.
This tutorial is aimed at elementary OS users, but it also works for any Ubuntu user. Start by installing dconf-tools:
sudo apt-get install dconf-tools
Secondly, you need to decide which theme you're going to apply. You can find dozens of terminal color schemes online, you can even design your own using this web application. Design the color scheme, hit "Get Scheme" and choose "Terminator". You'll get a raw text file with a background color, a foreground color and a palette. Those strings define your color scheme. In this tutorial, I'll post an
#!/bin/bash | |
# Apply custom color theme for Pantheon Terminal ver 5.3+ | |
# 1) preview and choose a color theme from http://mayccoll.github.io/Gogh/ | |
# 2) open the equivalent bash file containing the color values at https://github.com/Mayccoll/Gogh/tree/master/themes | |
# 3) concatenate all 16 colors at the top with colon ":", then replace it at the palette variable below | |
# 4) replace color for foreground, background, and cursor; choose whether your theme is light or dark | |
# 5) sudo apt-get install dconf-tools | |
# 6) execute this script |
#blog-title a { | |
background: transparent url('https://snap.as/img/logo-mark-sm.png') no-repeat bottom left; | |
padding-left: 42px; | |
} |