Skip to content

Instantly share code, notes, and snippets.

@mihado
mihado / Ubuntu_Vagrant_libvirt.md
Created March 21, 2022 15:32 — forked from PaulNeumann/Ubuntu_Vagrant_libvirt.md
How to Install the Vagrant libvirt Provider on Ubuntu 20.04.1 LTS Desktop or Server

How to Install the Vagrant libvirt Provider on Ubuntu 20.04.1 LTS Desktop or Server

This document describes how to install the Vagrant libvirt provider on Ubuntu 20.04.1 LTS Desktop or Server. Much of the content is based on a blog post by Philippe Vanhaesendonck of Oracle Corp. describing how to set up the Vagrant libvirt provider on Oracle Linux.

All of the commands shown should be run in a terminal window or SSH session.

Before You Start

Verify That Your CPU Supports Hardware Virtualization

@mihado
mihado / Free O'Reilly Books.md
Created August 16, 2021 10:27 — forked from augbog/Free O'Reilly Books.md
Free O'Reilly Books

Free O'Reilly books and convenient script to just download them.

Thanks /u/FallenAege/ and /u/ShPavel/ from this Reddit post

How to use:

  1. Take the download.sh file and put it into a directory where you want the files to be saved.
  2. cd into the directory and make sure that it has executable permissions (chmod +x download.sh should do it)
  3. Run ./download.sh and wee there it goes. Also if you do not want all the files, just simply comment the ones you do not want.
@mihado
mihado / userChrome.css
Last active June 4, 2021 04:21
Firefox
/*
about:config
toolkit.legacyUserProfileCustomizations.stylesheets true
browser.tabs.drawInTitlebar false
*/
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
#TabsToolbar {
frrek,w3rxeueixtjhkgcttydtydctyydjhj
cj
djhhchfhjhfjhcfhgcfhch
cdh
hdhghfvgv,rkbjg
fgghcgdghhd
djhhchfhjhfjhcfhgcfhchhfyf
gh
fdjkgnjvhgjdg
vh;clkjfk
  • Dynamic Dispatch
  • Dynamic Method
  • Ghost Methods
  • Dynamic Proxies
  • Blank Slate
  • Kernel Method
  • Flattening the Scope (aka Nested Lexical Scopes)
  • Context Probe
  • Class Eval (not really a 'spell' more just a demonstration of its usage)
  • Class Macros
@mihado
mihado / tensorflow_configure
Last active November 15, 2017 19:09
MBPro2014 GT 750M tensorflow r1.3 ./configure
$ ./configure
You have bazel 0.7.0-homebrew installed.
Please specify the location of python. [Default is /Users/mihado/tensorflow/bin/python]:
Found possible Python library paths:
/Users/mihado/tensorflow/lib/python3.6/site-packages
Please input the desired Python library path to use. Default is [/Users/mihado/tensorflow/lib/python3.6/site-packages]
Using python library path: /Users/mihado/tensorflow/lib/python3.6/site-packages
Do you wish to build TensorFlow with MKL support? [y/N]
No MKL support will be enabled for TensorFlow
@mihado
mihado / gist:fd3e7fc7092b54c61622ca797348e55d
Created October 25, 2016 01:42 — forked from jrochkind/gist:2161449
A Capistrano Rails Guide

A Capistrano Rails Guide

by Jonathan Rochkind, http://bibwild.wordpress.com

why cap?

Capistrano automates pushing out a new version of your application to a deployment location.

I've been writing and deploying Rails apps for a while, but I avoided using Capistrano until recently. I've got a pretty simple one-host deployment, and even though everyone said Capistrano was great, every time I tried to get started I just got snowed under not being able to figure out exactly what I wanted to do, and figured I wasn't having that much trouble doing it "manually".

development:
adapter: mysql2
host: localhost
encoding: utf8
pool: 10
username: <%= ENV['MYSQL_USER'] %>
password: <%= ENV['MYSQL_PASSWORD'] %>
database: development<%= ENV['TEST_ENV_NUMBER'] %>
socket: /var/run/mysqld/mysqld.sock
test:
@mihado
mihado / gist:afb13e6ff59c95afef7b9a51127cc3df
Created July 24, 2016 22:21
Beervana Android stracktrace
07-21 15:10:38.907 4070-4070/nz.co.powershop.beervana2015 I/chromium: [INFO:CONSOLE(14)] "The key "target-densitydpi" is not supported.", source: https://untappd.com/oauth/authenticate/?client_id=1E467933868AF24B9D30B70D37717E44F695B867&response_type=code&redirect_url=https://beervana-nz.herokuapp.com/untappd/callback (14)
07-21 15:10:39.223 4070-4088/nz.co.powershop.beervana2015 E/eglCodecCommon: glUtilsParamSize: unknow param 0x00000b44
07-21 15:10:39.232 4070-4088/nz.co.powershop.beervana2015 E/eglCodecCommon: glUtilsParamSize: unknow param 0x00000bd0
07-21 15:10:39.265 4070-4088/nz.co.powershop.beervana2015 E/chromium: [ERROR:buffer_manager.cc(313)] [.Parent-Compositor-0x7ff6a6831420]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command
07-21 15:10:39.299 4070-4088/nz.co.powershop.beervana2015 E/eglCodecCommon: **** ERROR unknown type 0x0 (glSizeof,73)
07-21 15:10:39.316 4070-4088/nz.co.powershop.beervana2015 E/eglCodecCommon: glUtilsParamSize: unknow param 0x00000b44
07-21 15:1
@mihado
mihado / rake_routes
Created March 23, 2016 22:36
devise vs devise_token_auth routes
Prefix Verb URI Pattern Controller#Action
new_user_session GET /users/sign_in(.:format) devise/sessions#new
user_session POST /users/sign_in(.:format) devise/sessions#create
destroy_user_session DELETE /users/sign_out(.:format) devise/sessions#destroy
user_password POST /users/password(.:format) devise/passwords#create
new_user_password GET /users/password/new(.:format) devise/passwords#new
edit_user_password GET /users/password/edit(.:format) devise/passwords#edit
PATCH /users/password(.:format) devise/passwords#update
PUT /users/password(.:format) devise/passwords#update
cancel_user_registration GET /users/cancel(.:format) devise/registrations#cancel