As seen here: http://blog.z3bra.org/2014/01/images-in-terminal.html
Install packages w3m and some terminal emulator which supports images (urxvt, terminator, termite).
vboxmanage clonehd image.vdi image.img --format RAW | |
qemu-img convert -f vdi -O raw image.vdi image.img | |
vbox-img convert --srcfilename image.vdi --stdout --srcformat VDI --dstformat RAW image.img |
#!/usr/bin/env ruby | |
require 'net/http' | |
def convert_currency(from_curr, to_curr) | |
doc = Net::HTTP.get('www.google.com', "/finance/converter?a=1&from=#{from_curr}&to=#{to_curr}") | |
regexp = Regexp.new("(\\d+\\.{0,1}\\d*)\\s+#{to_curr}") | |
regexp.match doc | |
$1.to_f | |
end |
@font-face { | |
font-family: 'emoji'; | |
src: | |
local('Apple Color Emoji'); | |
local('Noto Color Emoji'); | |
local('Android Emoji'); | |
local('Segoe UI'); | |
local(EmojiSymbols); | |
unicode-range: | |
U+1f300-1f5ff, /* misc symbols + pictographs */ |
As seen here: http://blog.z3bra.org/2014/01/images-in-terminal.html
Install packages w3m and some terminal emulator which supports images (urxvt, terminator, termite).
See script
for details of each file.
Apple Support article Fonts included with macOS Sierra is also a good resource, but it is fairly confusing in certain ways, e.g. Songti SC is listed both under fonts that are "installed and enabled automatically by macOS Sierra" and that are "available for download in macOS Sierra" (Update. I checked macOS 10.12 and Songti SC has been there all along).
There is also a seemingly very informative article, Font Management in macOS and OS X by Kurt Lang, which I found via Google Search. This is where I found out about the new directory /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/Resources/FontInfo
in macOS Sierra which has replaced Stub Fonts
in Font Book.app
.
/** | |
* Smooth scroll animation | |
* @param {int} endX: destination x coordinate | |
* @param {int) endY: destination y coordinate | |
* @param {int} duration: animation duration in ms | |
*/ | |
window.smoothScrollTo = function(endX, endY, duration) { | |
var startX = window.scrollX || window.pageXOffset, | |
startY = window.scrollY || window.pageYOffset, | |
distanceX = endX - startX, |
# allow `mount` cmd without password | |
echo "$USER ALL=NOPASSWD: /bin/mount" | (sudo su -c 'EDITOR="tee -a" visudo') | |
# add the mount directive to `fstab` | |
sudo mkdir -p /c | |
sudo sh -c "echo '/mnt/c /c none bind' >> /etc/fstab" | |
# update to `.bashrc` to auto mount at login | |
echo "sudo mount -a" >> ~/.bashrc | |
# now reload it | |
source ~/.bashrc |
{ | |
"defaultProfile": "{7d04ce37-c00f-43ac-ba47-992cb1393215}", | |
"initialRows": 30, | |
"initialCols": 120, | |
"alwaysShowTabs": true, | |
"showTerminalTitleInTitlebar": true, | |
"experimental_showTabsInTitlebar": true, | |
"requestedTheme": "dark", | |
"profiles": [ | |
{ |
# Generated by Powerlevel10k configuration wizard on 2020-06-20 at 00:56 -03. | |
# Based on romkatv/powerlevel10k/config/p10k-rainbow.zsh, checksum 15764. | |
# Wizard options: nerdfont-complete + powerline, small icons, rainbow, unicode, | |
# 24h time, angled separators, sharp heads, flat tails, 2 lines, disconnected, | |
# left frame, lightest-ornaments, sparse, many icons, fluent, transient_prompt, | |
# instant_prompt=verbose. | |
# Type `p10k configure` to generate another config. | |
# | |
# Config for Powerlevel10k with powerline prompt style with colorful background. | |
# Type `p10k configure` to generate your own config based on it. |