- bootstrap with typeahead
- jquery
This will use bootstrap with typeahead to create an autocomplete search.
input {
jdbc {
jdbc_connection_string => "jdbc:postgresql://127.0.0.1:5432/db"
jdbc_user => "username"
jdbc_password => "password"
jdbc_driver_library => "/Users/user/JDBC/postgresql-42.2.2.jar"
jdbc_driver_class => "org.postgresql.Driver"
statement => 'SELECT id, first_name, last_name, email from users'
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Sid": "DenyAdminAccountAndBilling", | |
| "Effect": "Deny", | |
| "Action": [ | |
| "organizations:*", | |
| "aws-portal:*Billing", | |
| "awsbillingconsole:*Billing", |
| telnet 127.0.0.1 11211 | |
| flush_all | |
| quit |
This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :
| package main | |
| import ( | |
| "crypto/aes" | |
| "crypto/cipher" | |
| "crypto/rand" | |
| "crypto/sha256" | |
| "encoding/base64" | |
| "fmt" | |
| "io" |
| psql -h host -U username dbname -c "copy (select * from table) TO STDOUT WITH CSV" >> data.csv |
| func requestWith(endUrl: String, imageData: Data?, parameters: [String : Any], onCompletion: ((JSON?) -> Void)? = nil, onError: ((Error?) -> Void)? = nil){ | |
| let url = "http://google.com" /* your API url */ | |
| let headers: HTTPHeaders = [ | |
| /* "Authorization": "your_access_token", in case you need authorization header */ | |
| "Content-type": "multipart/form-data" | |
| ] | |
| Alamofire.upload(multipartFormData: { (multipartFormData) in |
We prefer to have audit logging in our services that leverage databases. It gives us clarity into sources of where ACL issues might originate as well as gives us a general timeline of activity in our application.
Audit logging is tedious to set up so this gist contains our latest iteration of audit logging support for a sequelize based service.