If you're seeing this error, try heroku ps:scale web=0
then import the database again and run heroku ps:scale web=1
afterwards. Found nothing on google for this error, so posting this gist with the solution that worked for me. Could have been a temporary error too.
This file contains 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
# How to use it: | |
# | |
# Plug it at the end of your :browser pipeline in your Phoenix app router.ex | |
# Make sure it is plugged before your session-based authentication and authorization Plugs. | |
# | |
# pipeline :browser do | |
# plug :accepts, ["html"] | |
# plug :fetch_session | |
# plug :fetch_flash | |
# plug :put_secure_browser_headers |
This file contains 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
defmodule MyApp.Web.ComponentHelpers do | |
def component(template, assigns) do | |
MyApp.Web.ComponentView.render(template, assigns) | |
end | |
def component(template, assigns, do: block) do | |
MyApp.Web.ComponentView.render(template, Keyword.merge(assigns, [do: block])) | |
end | |
def c(name, assigns) do |
ffmpeg -f avfoundation -framerate 30 -s "640x480" -i "0" -c:v rawvideo -pix_fmt rgb24 -f caca -s "640x480" output4.mp4
brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-libcaca
ffmpeg -i vitrine.mp4 -vf scale=1024:-1 -q:vscale 0 vitrine.avi
This file contains 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
#!/bin/bash | |
# video demo at: http://www.youtube.com/watch?v=90xoathBYfk | |
# written by "mhwombat": https://bbs.archlinux.org/viewtopic.php?id=71938&p=2 | |
# Based on "snippy" by "sessy" | |
# (https://bbs.archlinux.org/viewtopic.php?id=71938) | |
# | |
# You will also need "dmenu", "xsel" and "xdotool". Get them from your linux | |
# distro in the usual way. | |
# |
How to set up multiple accounts with Mutt E-mail Client
Thanks to this article by Christoph Berg
Directories and files
~/
This file contains 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
OSX Apps | |
- Total Spaces, for keeping X11 in different space and faster switching | |
- MenuAndDockless for hidding topbar menu | |
X11 - Macports | |
- sudo port install xorg-server | |
- sudo port install xinit | |
- sudo port install terminus-font dejavu-fonts bitstream-fonts | |
Suckless - suckless.org |
This file contains 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
#!/bin/sh | |
# jnewfiles | |
# Detects new and changed php and html files last xxx minutes | |
# (C) 2014 Rene Kreijveld, enail [at] renekreijveld [dot] nl | |
# Update 31-12-2013: only send email when changes are found | |
# Update 04-02-2014: check for new files last three hours | |
# Update 05-05-2014: check for new html files also | |
# Update 07-05-2014: filter out ju_chached and DirectAdmin stats folders in html files |
-
Install XQuartz (http://xquartz.macosforge.org) which is the development version of the X11.app that ships with OS X, which means it is way more up to date. I have had some weird issues with X11.app v. 2.3-something. XQuartz 2.5.0 fixed that.
-
Install
dwm
from Homebrew,brew install dwm
. This makes a bunch of necessary tweaks to the DWM configuration. -
Add the following script to $PATH, name it
dwm-launch
andchmod 755
:cd ~
while true