Skip to content

Instantly share code, notes, and snippets.

View marvindanig's full-sized avatar

Marvin Danig marvindanig

View GitHub Profile
@marvindanig
marvindanig / vomit 2
Created October 23, 2021 04:43
nodegit poops upon installation.
------
> [6/8] RUN npm ci:
#10 2.291 npm WARN old lockfile
#10 2.291 npm WARN old lockfile The package-lock.json file was created with an old version of npm,
#10 2.291 npm WARN old lockfile so supplemental metadata must be fetched from the registry.
#10 2.291 npm WARN old lockfile
#10 2.292 npm WARN old lockfile This is a one-time fix-up, please be patient...
#10 2.292 npm WARN old lockfile
#10 40.58 npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
#10 44.96 npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
@marvindanig
marvindanig / vomit
Created October 23, 2021 04:22
nodegit install fails on docker node-16 stretch image
[+] Building 182.5s (13/15)
=> [internal] load build definition from Dockerfile.dev 0.0s
=> => transferring dockerfile: 960B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 35B 0.0s
=> [internal] load metadata for docker.io/library/node:17-stretch 0.5s
=> [auth] library/node:pull token for registry-1.docker.io 0.0s
=> [ 1/10] FROM docker.io/library/node:17-stretch@sha256:0c665077d2085e37933192b0c7be2617d4b0fcb028eb7a2d59f78b2a
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
## User settings
xcuserdata/
## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
*.xcscmblueprint
*.xccheckout
@marvindanig
marvindanig / crazy.webpack.config.js
Created February 28, 2020 21:26
webpack -– shit gets real where it isn't even expected to.
const path = require('path')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const FixStyleOnlyEntriesPlugin = require('webpack-fix-style-only-entries')
function recursiveIssuer(m) {
if (m.issuer) {
return recursiveIssuer(m.issuer)
} else if (m.name) {
return m.name
} else {
@marvindanig
marvindanig / openssl-error-log.txt
Last active December 26, 2019 22:37
rbenv fails at installing ruby 2.6.3 on MacOS Catalina with the following error:
/var/folders/l_/xgbzwc3j0xn_cb74550m71vr0000gn/T/ruby-build.20191226172745.60290.bRrVkQ ~/Projects/ror/bubblin.io/bubblin.io
HTTP/1.1 200 OK
Content-Type: binary/octet-stream
Content-Length: 8845861
Connection: keep-alive
Date: Thu, 26 Dec 2019 16:46:26 GMT
Last-Modified: Tue, 01 Oct 2019 21:38:26 GMT
ETag: "3be209000dbc7e1b95bcdf47980a3baa"
Accept-Ranges: bytes
Server: AmazonS3
@marvindanig
marvindanig / .siteIgnore
Last active January 19, 2020 04:35
A .siteIgnore file to prevent rogue websites and nefarious interests from tracking you. Copy paste it on /etc/hosts to save yourself and the web in general.
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
@marvindanig
marvindanig / nginx_conf.erb
Created October 15, 2018 12:43
nginx configuration for capistrano3-nginx ~> 3.0 gem with HSTS preload, ipv6 and http ~> https redirection
upstream puma_<%= fetch(:nginx_config_name) %> { <%
@backends = [fetch(:puma_bind)].flatten.map do |m|
etype, address = /(tcp|unix|ssl):\/{1,2}(.+)/.match(m).captures
if etype == 'unix'
"server #{etype}:#{address} #{fetch(:nginx_socket_flags)};"
else
"server #{address.gsub(/0\.0\.0\.0(.+)/, "127.0.0.1\\1")} #{fetch(:nginx_http_flags)};"
end
end
%><% @backends.each do |server| %>
@marvindanig
marvindanig / cache_storage_size.js
Created December 16, 2017 17:36 — forked from ebidel/sw_caching_size.js
Print service worker cache sizes and overall bytes cached.
/**
* @author ebidel@ (Eric Bidelman)
* License Apache-2.0
*/
// Prints the size of each cache in the Cache Storage API and the overall bytes cached.
async function getCacheStoragesAssetTotalSize() {
// Note: opaque (i.e. cross-domain, without CORS) responses in the cache will return a size of 0.
const cacheNames = await caches.keys();
@marvindanig
marvindanig / license-badges.md
Created June 12, 2017 22:59 — forked from lukas-h/license-badges.md
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

  • Badges are made with Shields.io.
  • This badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.  
  • 🇫🇷 Cette liste en français

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would