Skip to content

Instantly share code, notes, and snippets.

@MahdiMirzadeh
MahdiMirzadeh / Fontconfig.md
Last active May 13, 2024 19:23
Font Configuration in Linux

Font Configuration in Linux

A computer font (or font) is an electronic data file containing a set of glyphs, characters, or symbols such as dingbats.

Most computer fonts used today are in either bitmap(BDF) or outline data(otf/ttf) formats.

Many non-English users have problems with their language's rendering, at least Persian users have problems with viewing Persian charactars that can happen because:

  1. Proper fonts are not installed/found by fontconfig. Click here
  2. Fontconfig order is wrong and the latin fonts are above Persian fonts and don't have a good support that causes problems. Click Here

Notes

@0xabad1dea
0xabad1dea / copilot-risk-assessment.md
Last active June 26, 2025 22:23
Risk Assessment of GitHub Copilot

Risk Assessment of GitHub Copilot

0xabad1dea, July 2021

this is a rough draft and may be updated with more examples

GitHub was kind enough to grant me swift access to the Copilot test phase despite me @'ing them several hundred times about ICE. I would like to examine it not in terms of productivity, but security. How risky is it to allow an AI to write some or all of your code?

Ultimately, a human being must take responsibility for every line of code that is committed. AI should not be used for "responsibility washing." However, Copilot is a tool, and workers need their tools to be reliable. A carpenter doesn't have to

@plembo
plembo / vmwp-no3d-avail.md
Last active March 26, 2025 07:03
VMware Player: No 3d support available from the host

VMware Player: "No 3d support is available from the host"

Facts: VMware Player on Ubuntu 18.04 LTS with the standard Gnome desktop running an AMD WX-2100 graphics card. Both glxinfo and glxgears show 3d acceleration is enabled and working on the host. In addition to VMware Player, the host is also running the qemu-kvm/libvirtd stack from Ubuntu's official repositories. My use case for 3d accelerated graphics in a Windows guest is to occasionally play a Windows-only game.

Issue: Player barks this warning during installation of... anything.

Solution: This askubuntu post, Powered by StackExchange[TM], provides the solution:

@scalahub
scalahub / license-badges.md
Created June 8, 2019 05:12 — forked from lukas-h/license-badges.md
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

@BenniG123
BenniG123 / tesseract-ocr-folder.ps1
Last active November 14, 2023 14:37
Quick powershell script to grab all images in a folder, run tessaract OCR on all of them, and then pipe all output to out.txt
function Get-DirectoryName($initialDirectory)
{
[System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null
$openFolderDialog = New-Object System.Windows.Forms.FolderBrowserDialog
$openFolderDialog.ShowDialog() | Out-Null
return $openFolderDialog.SelectedPath
}
Write-Output "Select image folder"
@maxwelleite
maxwelleite / ttf-wine-tahoma-installer.sh
Last active July 23, 2024 07:56
Script to install the latest Wine Tahoma fonts on Ubuntu distros
#!/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/Bionic
# Latest Update: 20/11/2020