This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rbenv global system && \ | |
sudo gem install securerandom -v 0.3.2 && \ | |
sudo gem install drb -v 2.0.6 && \ | |
sudo gem install minitest -v 5.25.4 && \ | |
sudo gem install zeitwerk -v 2.6.18 && \ | |
sudo gem install activesupport -v 6.1.7.10 && \ | |
sudo gem install cocoapods | |
2.7.8: | |
gem install securerandom -v 0.3.2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List me all versions of webos and tizen for the last 5 years with respective chromium versions. | |
# WebOS and Tizen Versions with Chromium (Last 5 Years) | |
## WebOS | |
| WebOS Version | Release Date | Chromium Version | | |
|---------------|--------------|------------------| | |
| webOS 6.0 | 2021 | Chromium 79 | | |
| webOS 6.5 | 2022 | Chromium 87 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import fontforge | |
import sys | |
if len(sys.argv) < 3: | |
print("Usage: python remove_calt.py input_font output_font") | |
sys.exit(1) | |
input_font = sys.argv[1] | |
output_font = sys.argv[2] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fs from 'node:fs'; | |
fs.readdirSync('./in') | |
.map((file) => { | |
const name = file | |
.replace(/\.(otf|ttf)/, '') | |
.match(/[A-Z][a-z]+/g) | |
.join(' '); | |
return `/FontPatcher/font-patcher --outputdir ./out --name "${name}" --complete --mono ./in/${file};`; | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set cursorline | |
set expandtab | |
set hlsearch | |
set incsearch | |
set laststatus=2 | |
set noshowmode | |
set number | |
set shiftwidth=2 | |
set tabstop=2 | |
set viminfo= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/fontforge | |
import fontforge | |
import sys | |
# Check if input and output paths are provided | |
if len(sys.argv) < 3: | |
print("Usage: fontforge -script remove_features.py input.ttf output.ttf") | |
sys.exit(1) | |
input_font = sys.argv[1] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fontforge | |
import sys | |
import math | |
if len(sys.argv) != 8: | |
print("Usage: python italicize.py <input-font> <output-font> <font-name> <family-name> <full-name> <font-weight> <italic-degree>") | |
sys.exit(1) | |
input_font = sys.argv[1] | |
output_font = sys.argv[2] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fontforge | |
import sys | |
def increase_line_spacing(input_font, output_font, increase_factor): | |
font = fontforge.open(input_font) | |
# Store the original values | |
original_em = font.em | |
original_ascent = font.ascent | |
original_descent = font.descent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set incsearch | |
set laststatus=2 | |
set noshowmode | |
set ruler | |
set termguicolors | |
set ttimeout ttimeoutlen=0 | |
set viminfo= | |
call plug#begin() | |
Plug 'catppuccin/vim' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const name = 'RSA-OAEP'; | |
const hash = 'SHA-256'; | |
const modulusLength = 2048; | |
const publicExponent = new Uint8Array([1, 0, 1]); | |
const format = 'spki'; | |
const message = 'hello'; | |
// browser | |
const { privateKey, publicKey } = await crypto.subtle.generateKey( | |
{ name, hash, modulusLength, publicExponent }, |
NewerOlder