Skip to content

Instantly share code, notes, and snippets.

View petru's full-sized avatar
🎯
Focusing

Petru Madar petru

🎯
Focusing
View GitHub Profile
@petru
petru / RAILS_CHEATSHEET.md
Created April 6, 2020 00:32 — forked from mdang/RAILS_CHEATSHEET.md
Ruby on Rails Cheatsheet

Ruby on Rails Cheatsheet

Architecture

Create a new application

Install the Rails gem if you haven't done so before

@petru
petru / # gettext - 2018-12-18_01-04-50.txt
Created December 17, 2018 23:18
gettext on 4.4.157 - Homebrew build logs
Homebrew build logs for gettext on 4.4.157
Build date: 2018-12-18 01:04:50
@petru
petru / latest-firefox.sh
Created September 16, 2018 20:00 — forked from ruario/latest-firefox.sh
This script will find the latest Firefox binary package, download it and repackage it into Slackware format.
#!/bin/bash
# latest-firefox Version 1.5.2
# This script will find the latest Firefox binary package, download it
# and repackage it into Slackware format.
# I don't use Firefox for regular browsing but it is handy for
# comparative tests against Vivaldi. :P
# Copyright 2018 Ruari Oedegaard, Oslo, Norway
petru:~/workspace (pelican) $ pelican-quickstart
Traceback (most recent call last):
File "/usr/local/bin/pelican-quickstart", line 7, in <module>
from pelican.tools.pelican_quickstart import main
File "/usr/local/lib/python2.7/dist-packages/pelican/tools/pelican_quickstart.py", line 52, in <module>
'lang': locale.getlocale()[0].split('_')[0],
AttributeError: 'NoneType' object has no attribute 'split'

Keybase proof

I hereby claim:

  • I am petru on github.
  • I am petru (https://keybase.io/petru) on keybase.
  • I have a public key whose fingerprint is DE5E 7CBA 0E53 C060 B555 F5AF 229F C84B 3E96 6B1B

To claim this, I am signing this object:

require 'rubygems'
require 'simple_youtube'
and the error:
petru@ubuntu:~$ ruby ta.rb
/var/lib/gems/1.9.1/gems/simple_youtube-4.0.2/lib/simple_youtube/youtube.rb:3:in `<module:Youtube>': uninitialized constant Youtube::ActiveYoutube (NameError)
from /var/lib/gems/1.9.1/gems/simple_youtube-4.0.2/lib/simple_youtube/youtube.rb:2:in `<top (required)>'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require'