The C lib for 5.6 is compiled with support for local infiles by default. In order to disable
the local infile behavior Consumers of the C lib must explicitly set the option
MYSQL_OPT_LOCAL_INFILE
to 0
. The mysql2
gem only sets the MYSQL_OPT_LOCAL_INFILE
option
when the local_infile
key is explicitly present in the Ruby client options. This means that
5.6 clients, which do not specify this key have the local infile behavior enabled making
it the default for these clients.
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
package main | |
import ( | |
"fmt" | |
"math" | |
"math/rand" | |
"strings" | |
) | |
type avlNode struct { |
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
package main | |
import ( | |
"fmt" | |
) | |
type linkedList struct { | |
value int | |
next *linkedList | |
} |
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 | |
set -e | |
controller_name=$1 | |
file="${PWD}/pkg/controller/$controller_name/${controller_name}_controller.go" | |
COMMAND=$(cat <<'EOF' | |
controller_camel = ENV['CONTROLLER_NAME'].split('_').collect(&:capitalize).join |
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
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"os" | |
"strings" | |
log "github.com/sirupsen/logrus" | |
apps "k8s.io/api/apps/v1" |
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
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"os" | |
"strings" | |
log "github.com/sirupsen/logrus" | |
apps "k8s.io/api/apps/v1" |
I hereby claim:
- I am cvgw on github.
- I am cvgw (https://keybase.io/cvgw) on keybase.
- I have a public key whose fingerprint is 48CE 6F08 577C 3762 2A70 5F3A 5C5A 67AE 0B17 3668
To claim this, I am signing this object:
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
class DbModelGenerator < Rails::Generators::NamedBase | |
source_root File.expand_path('../templates', __FILE__) | |
hook_for :test_framework, in: :rspec, as: :model do |instance, invoke| | |
instance.invoke "controller", [instance.name.pluralize] | |
instance.invoke "model" | |
end | |
def create_files | |
# create custom files here, be sure to add them to your |
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
class ResourceGenerator < Rails::Generators::NamedBase | |
source_root File.expand_path('../templates', __FILE__) | |
def create_files | |
template "action.rb", "app/actions/#{file_name}_actions.rb" | |
template "action_spec.rb", "spec/actions/#{file_name}_actions_spec.rb" | |
end | |
hook_for :test_framework, in: :rspec, as: :model do |instance, invoke| | |
instance.invoke "controller", [instance.name.pluralize] |
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
this.app.load('intercom', function (root, app) { | |
'use strict'; | |
var current_user; | |
var startIntercom = function () { | |
window.intercomSettings = { | |
// TODO: The current logged in user's full name | |
name: current_user.attributes.name, |