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
``` | |
dyld: lazy symbol binding failed: Symbol not found: _ffi_prep_closure_loc | |
Referenced from: /Users/ls/.gem/ruby/3.0.0/gems/ffi-1.14.2/lib/ffi_c.bundle | |
Expected in: /usr/lib/libffi.dylib | |
dyld: Symbol not found: _ffi_prep_closure_loc | |
Referenced from: /Users/ls/.gem/ruby/3.0.0/gems/ffi-1.14.2/lib/ffi_c.bundle | |
Expected in: /usr/lib/libffi.dylib | |
Abort trap: 6 |
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 -u | |
# Check if script is run non-interactively (e.g. CI) | |
# If it is run non-interactively we should not prompt for passwords. | |
if [[ ! -t 0 || -n "${CI-}" ]]; then | |
NONINTERACTIVE=1 | |
fi | |
# First check if the OS is Linux. |
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
autocmd BufWritePre * :%s/\s\+$//e | |
" Auto reload file | |
au FocusGained,BufEnter * :checktime | |
let mapleader="," | |
" Fzf mapping replacing ControlP command | |
nnoremap <C-p> :Files<Cr> | |
" Fzf mapping for find in files |
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
autocmd BufWritePre * :%s/\s\+$//e | |
color desert | |
let mapleader="," | |
" Fzf mapping replacing ControlP command | |
nnoremap <C-p> :Files<Cr> | |
" Fzf mapping for find in files | |
nnoremap <C-g> :Rg<Cr> |
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
# Old file start | |
module EventsHelper | |
def user_is_owner?(model) | |
user_signed_in? && model.user == current_user | |
end | |
end | |
# Old file end | |
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
$ lein repl | |
Mar 18, 2016 7:24:39 PM org.apache.http.impl.execchain.RetryExec execute | |
INFO: I/O exception (java.net.SocketException) caught when processing request to {s}->https://repo1.maven.org:443: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext) | |
Mar 18, 2016 7:24:39 PM org.apache.http.impl.execchain.RetryExec execute | |
INFO: Retrying request to {s}->https://repo1.maven.org:443 | |
Mar 18, 2016 7:24:39 PM org.apache.http.impl.execchain.RetryExec execute | |
INFO: I/O exception (java.net.SocketException) caught when processing request to {s}->https://repo1.maven.org:443: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext) | |
Mar 18, 2016 7:24:39 PM org.apache.http.impl.execchain.RetryExec execute | |
INFO: Retrying request to {s}->https://repo1.maven.org:443 | |
Mar 18, 2016 7:24:39 PM org. |
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
function OffersController($scope, $sce) { | |
activate(); | |
function activate() { | |
$('.selectpicker').selectpicker({ | |
style: 'btn-info', | |
size: 4 | |
}); | |
} | |
} |
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
require 'active_support' | |
require 'active_record' | |
require 'benchmark/ips' | |
ActiveRecord::Base.establish_connection( | |
adapter: 'mysql2', | |
encoding: 'utf8', | |
reconnect: true, | |
pool: 25, | |
host: 'localhost', |
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
require 'active_support' | |
require 'active_record' | |
require 'benchmark/ips' | |
ActiveRecord::Base.establish_connection adapter: 'sqlite3', database: ':memory:' | |
ActiveRecord::Base.connection.instance_eval do | |
create_table(:customers) { |c| c.string :name } | |
end | |
class Customer < ActiveRecord::Base; end |
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
https://github.com/DamirSvrtan/fasterer | |
https://github.com/codeclimate/codeclimate | |
https://github.com/metricfu/metric_fu |
NewerOlder