Skip to content

Instantly share code, notes, and snippets.

@jjb
jjb / file.md
Last active December 2, 2024 09:16
Using Jemalloc 5 with Ruby.md

For years, people have been using jemalloc with ruby. There were various benchmarks and discussions. Legend had it that Jemalloc 5 didn't work as well as Jemalloc 3.

Then, one day, hope appeared on the horizon. @wjordan offered a config for Jemalloc 5.

Ubuntu/Debian

FROM ruby:3.1.2-bullseye
RUN apt-get update ; \
@yahonda
yahonda / ruby31onrails.md
Last active October 21, 2024 18:20
Ruby 3.1 on Rails

Ruby 3.1 on Rails

Actions required to use Ruby 3.1.0 with Rails

Rails 7.0.Z

  • Rails 7.0.1 is compatible with Ruby 3.1.0.
  • Rails 7.0.1 addes net-smtp, net-imap and net-pop gems as Action Mailbox and Action Mailer dependency, you do not need to add them explicitly in your application Gemfile anymore.
  • thor 1.2.1 has been released. You will not see DidYouMean::SPELL_CHECKERS.merge deprecate warnings anymore.

Rails 6.1.Z

  • Use Rails 6.1.5 to support database.yml with aliases and secrets.yml with aliases.
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active December 8, 2024 16:46
crack activate Office on mac with license file

GraphQL vs Firebase

With the variety of server-side technologies today, developers have a lot of choices when it comes to deciding what kind of backend to use for their next application.

In this article, we want to explore the differences between GraphQL and Firebase, two very popular server-side technologies.

Overview

Before diving into technical details, let's create some perspective on the two technologies and where they're coming from.

@donnierayjones
donnierayjones / LICENSE
Last active June 24, 2024 14:28
Render Bootstrap as "small" layout when printing
Copyright (C) 2016 Donnie Ray Jones
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
@ak47
ak47 / unicorn.rb
Created April 3, 2014 23:54
force figaro ENV vars to reload on unicorn USR2 restarts
root = "/var/www/cake/current"
working_directory root
pid "#{root}/tmp/pids/unicorn.pid"
stderr_path "#{root}/log/unicorn.stderr.log"
stdout_path "#{root}/log/unicorn.log"
listen "/tmp/unicorn.cake.sock"
worker_processes 2
timeout 15
@jhjguxin
jhjguxin / changelog.markdown
Last active December 14, 2015 16:29
tips from guanxi.me

guanxi app 's changelog from francis

date: 2013-4-3

feature

  • commend#index 支持基于 sql 的无限翻页
  • 重新定义智能推荐逻辑
  • 定义活跃度算法
  • 定义了定时任务用于更新智能推荐和活跃用户
@jhjguxin
jhjguxin / Resume.markdown
Last active December 13, 2015 23:38
jhjguxin's resume
@jhjguxin
jhjguxin / bundle.markdown
Last active October 6, 2015 22:07
tips from francis

which bundle

bundler

Broken bundle install details (1.1rc)

Cleanup then broken commands:

$ rm -rf ~/.bundle/ ~/.gem/