Fedora
- Install Wine :
sudo dnf install wine
- Download the Symbian OS V5 emulator from here
- Extract the files under
~/.wine/dosdevices/c:/
Running the EPOC Emulator
Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
ActivityTweet | |
generic_activity_highlights | |
generic_activity_momentsbreaking | |
RankedOrganicTweet | |
suggest_activity | |
suggest_activity_feed | |
suggest_activity_highlights | |
suggest_activity_tweet |
defmodule MasterProxy.Application do | |
alias MyApp.Endpoint, as: MyAppEndpoint | |
alias MyApp.UserSocket, as: MyAppUserSocket | |
alias MyOtherApp.Endpoint, as: MyOtherAppEndpoint | |
alias MyOtherApp.UserSocket, as: MyOtherAppUserSocket | |
alias Phoenix.LiveReloader.Socket, as: LiveReloadSocket | |
alias Plug.Cowboy |
MIT License | |
Copyright (c) 2018 Noel Bundick | |
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: |
FROM elixir:1.4.5 as asset-builder-mix-getter | |
ENV HOME=/opt/app | |
RUN mix do local.hex --force, local.rebar --force | |
# Cache elixir deps | |
COPY config/ $HOME/config/ | |
COPY mix.exs mix.lock $HOME/ | |
COPY apps/myproject_web/mix.exs $HOME/apps/myproject_web/ | |
COPY apps/myproject_web/config/ $HOME/apps/myproject_web/config/ |
; Language: English | |
; Uses unicode. Save this file as utf-8 with BOM. | |
; Else it shall not work. | |
; | |
#NoEnv ; Recommended | |
SendMode Event | |
SetWorkingDir %userprofile% ; Ensures a consistent starting directory. | |
; === autotexts ======================================================== | |
; |
Fedora
sudo dnf install wine
~/.wine/dosdevices/c:/
Running the EPOC Emulator
#!/usr/bin/env node | |
var pkg = require('./package.json'); | |
var fs = require('fs'); | |
var hint = require("jshint").JSHINT; | |
var uglify = require('uglify-js'); | |
var banner = '/*! iScroll v' + pkg.version + ' ~ (c) 2008-' + (new Date().getFullYear()) + ' Matteo Spinelli ~ http://cubiq.org/license */\n'; | |
var releases = { |
My largest Sidekiq application had a memory leak and I was able to find and fix it in just few hours spent on analyzing Ruby's heap. In this post I'll show my profiling setup.
As you might know Ruby 2.1 introduced a few great changes to ObjectSpace, so now it's much easier to find a line of code that is allocating too many objects. Here is great post explaining how it's working.
I was too lazy to set up some seeding and run it locally, so I checked that test suite passes when profiling is enabled and pushed debugging to production. Production environment also suited me better since my jobs data can't be fully random generated.
So, in order to profile your worker, add this to your Sidekiq configuration:
if ENV["PROFILE"]
{ | |
"Version":"2012-10-17", | |
"Statement":[ | |
{ | |
"Sid":"ElasticBeanstalkEnvironmentPermissions", | |
"Effect":"Allow", | |
"Action":[ | |
"elasticbeanstalk:DescribeEnvironmentResources", | |
"elasticbeanstalk:DescribeEnvironments", | |
"elasticbeanstalk:DescribeEvents", |