Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
¯\(°_o)/¯ ¯\_(ツ)_/¯

Ruben Suarez Alvarez rubensa

💭
¯\(°_o)/¯ ¯\_(ツ)_/¯
View GitHub Profile
@rubensa
rubensa / ttf-wine-tahoma-installer.sh
Created Sep 9, 2020 — forked from maxwelleite/ttf-wine-tahoma-installer.sh
Script to install the latest Wine Tahoma fonts on Ubuntu distros
View ttf-wine-tahoma-installer.sh
#!/bin/bash
# Author: Maxwel Leite
# Website: http://needforbits.wordpress.com/
# Description: Script to install the latest Wine Tahoma Regular and Wine Tahoma Bold fonts on Ubuntu distros from the Wine Project.
# The Wine project includes the free and open-source fonts Wine Tahoma Regular and Wine Tahoma Bold released under LGPL
# designed to have identical metrics to the Microsoft Tahoma font. This was done because Tahoma is available by default
# on Windows, and many applications expect the font to be available.
# Dependencies: wget
# Tested: Ubuntu Saucy/Trusty/Xenial
@rubensa
rubensa / ttf-ms-tahoma-installer.sh
Created Sep 9, 2020 — forked from maxwelleite/ttf-ms-tahoma-installer.sh
Script to install the original Microsoft Tahoma font on Ubuntu distros
View ttf-ms-tahoma-installer.sh
#!/bin/bash
# Author: Maxwel Leite
# Website: http://needforbits.wordpress.com/
# Description: Script to install the original Microsoft Tahoma Regular and MS Tahoma Bold (both version 2.60) on Ubuntu distros.
# Dependencies: wget and cabextract
# Tested: Ubuntu Saucy/Trusty/Xenial/Bionic
output_dir="/usr/share/fonts/truetype/msttcorefonts/"
tmp_dir="/tmp/ttf-ms-tahoma-installer"
@rubensa
rubensa / ttf-vista-fonts-installer.sh
Created Sep 9, 2020 — forked from maxwelleite/ttf-vista-fonts-installer.sh
Script to install Microsoft Vista TrueType Fonts (TTF) aka Microsoft’s ClearType fonts on Ubuntu distros
View ttf-vista-fonts-installer.sh
#!/bin/bash
# Author: Maxwel Leite
# Website: http://needforbits.wordpress.com/
# Description: Script to install Microsoft Vista TrueType Fonts (TTF) aka Microsoft’s ClearType fonts on Ubuntu distros
# Microsoft added a group of new "ClearType Fonts" to Windows with Windows Vista and Office 2007.
# These fonts are named Constantia, Corbel, Calibri, Cambria (and Cambria Math), Candara, and Consolas.
# Calibri became the default font on Microsoft Word 2007, and it’s still the default font on Word 2016 today.
# Dependencies: wget, fontforge and cabextract
# Note: Microsoft no longer provides the PowerPoint Viewer 2007 (v12.0.4518.1014) or any version anymore for download
# Tested: Ubuntu Saucy/Trusty/Xenial/Bionic
@rubensa
rubensa / gist:407de76194d27f763cd5e8bd235fdd5d
Last active Sep 10, 2020 — forked from tinogomes/DNS_TO_LOCALHOST.markdown
Public DNS Pointing To localhost (127.0.0.1)
View gist:407de76194d27f763cd5e8bd235fdd5d

Available Wildcarded DNS Domains

It turns out that some kind hearted people already set up wildcarded domains for you already. You can use any top level domain below and any subdomain of these and they will always resolve back to 127.0.0.1 (your local machine). Here's the list of ones I know about. Let me know if there are more!

  • 127-0-0-1.org.uk
  • 42foo.com
  • beweb.com
  • domaincontrol.com
  • feacebook.com
  • fuf.me - Managed by @fidian; it will always point to localhost for IPv4 and IPv6
@rubensa
rubensa / OpenBSDBCryptPasswordEncoder.java
Last active May 18, 2018
Implementation of Spring PasswordEncoder that uses Bouncy Castle OpenBSDBCrypt.
View OpenBSDBCryptPasswordEncoder.java
/*
* Copyright 2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
You can’t perform that action at this time.