To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
- Homebrew
- Mountain Lion -> High Sierra
/* gcc hi.c -o hi -lcrypto */ | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <openssl/crypto.h> | |
int | |
main(int argc, char *argv[]) | |
{ | |
void *(*openssl_malloc)(size_t), (*openssl_free)(void *); |
To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
desc "convert a latin1 database with utf8 data into proper utf8" | |
task :convert_to_utf8 => :environment do | |
puts Time.now | |
dryrun = ENV['DOIT'] != '1' | |
conn = ActiveRecord::Base.connection | |
if dryrun | |
def conn.run_sql(sql) | |
puts(sql) | |
end | |
else |