Skip to content

Instantly share code, notes, and snippets.

Avatar
🌏
Internationalizin'. Ping me if I'm slow to respond.

Zeke Sikelianos zeke

🌏
Internationalizin'. Ping me if I'm slow to respond.
View GitHub Profile
View gettext_rails_i18n error
/vendor/gems/2.7.1/ruby/2.7.0/gems/zeitwerk-2.4.0/lib/zeitwerk/kernel.rb:34:in `require'
app/vendor/gems/2.7.1/ruby/2.7.0/gems/activesupport-7.0.0.alpha.9d34ed7/lib/active_support/dependencies.rb:332:in `block in require'
app/vendor/gems/2.7.1/ruby/2.7.0/gems/activesupport-7.0.0.alpha.9d34ed7/lib/active_support/dependencies.rb:299:in `load_dependency'
app/vendor/gems/2.7.1/ruby/2.7.0/gems/activesupport-7.0.0.alpha.9d34ed7/lib/active_support/dependencies.rb:332:in `require'
app/vendor/gems/2.7.1/ruby/2.7.0/gems/gettext_i18n_rails-1.8.1/lib/gettext_i18n_rails/tasks.rb:1:in `<top (required)>'
app/vendor/gems/2.7.1/ruby/2.7.0/gems/bootsnap-1.5.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
app/vendor/gems/2.7.1/ruby/2.7.0/gems/bootsnap-1.5.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
app/vendor/gems/2.7.1/ruby/2.7.0/gems/bootsnap-1.5.0/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
app/vendor/gems/2.7.1/ruby
@zeke
zeke / accept-language-headers.js
Created Feb 5, 2021
A collection of distinct Accept-Language headers (from wordnerd.fun logs)
View accept-language-headers.js
[
"*",
"bg-CZ,bg;q=0.9,en-CZ;q=0.8,en;q=0.7,cs-BG;q=0.6,cs;q=0.5,en-US;q=0.4,de;q=0.3",
"ca,en;q=0.9,es;q=0.8,fr;q=0.7",
"ca-es",
"cs",
"cs-CZ,cs;q=0.9,en;q=0.8,sk;q=0.7",
"de,en-US;q=0.7,en;q=0.3",
"de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7",
"de-DE,en-US;q=0.7,en;q=0.3",
@zeke
zeke / erb.js
Created Jan 26, 2021
Ruby ERB localization snippets for VS Code
View erb.js
{
// Place your snippets for erb here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
"render-pet": {
"prefix": "pet",
"body": [
"<%= t(\"$1\") %>"
View ink.txt
ink
inkberries
inkberry
inkblot
inkblots
inked
inker
inkers
inkholder
inkholders
View inc.txt
incage
incaged
incages
incaging
incalculabilities
incalculability
incalculable
incalculably
incalescence
incalescences
@zeke
zeke / npm-7-beta-installation-error.txt
Created Aug 27, 2020
unable to "npm install recent-github-activity" with npm 7 beta
View npm-7-beta-installation-error.txt
$ npx recent-github-activity
Need to install the following packages:
recent-github-activity
Ok to proceed? (y) y
npm ERR! code ERESOLVE
npm ERR! unable to resolve dependency tree
npm ERR! A complete log of this run can be found in:
View browser-screenshots-with-puppeteer.js
describe.only('developer.github.com pages', () => {
jest.setTimeout(30 * 60 * 1000)
it('works', async () => {
const urls = require('./top-old-developer-site-paths.json')
.slice(0, 10)
console.log({ urls })
for (const url of urls) {
@zeke
zeke / whatchanged.sh
Created May 8, 2020
git command for creating a diff of recent changes on a specific path (in this case, `content/v3`)
View whatchanged.sh
# print output in a manpage-style pager
git whatchanged --since="1 week ago" -p content/v3
# pipe it to stdout
git whatchanged --since="1 week ago" -p content/v3 | cat
# pipe to a file and open that file in an editor
# (vscode highlights diffs, atom does not without a plugin)
git whatchanged --since="1 week ago" -p content/v3 > diff.sh && $EDITOR diff.sh
View gist:9bae8a305e180d7cf288738d9815b11c
$ npm i node-sass
> fsevents@1.2.11 install /Users/z/git/github/openapi/node_modules/jest-haste-map/node_modules/fsevents
> node-gyp rebuild
SOLINK_MODULE(target) Release/.node
CXX(target) Release/obj.target/fse/fsevents.o
SOLINK_MODULE(target) Release/fse.node
> node-sass@4.13.1 install /Users/z/git/github/openapi/node_modules/node-sass
View gist:f3c1c34560348ea80313d515d7ce7e92
$ npm i -D level
> fsevents@1.2.3 install /Users/z/git/nodejs/i18n/node_modules/fsevents
> node install
node-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.3/fse-v1.2.3-node-v72-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.2.3 and node@12.8.0 (node-v72 ABI, unknown) (falling back to source compile with node-gyp)
SOLINK_MODULE(target) Release/.node
CXX(target) Release/obj.target/fse/fsevents.o
In file included from ../fsevents.cc:6: