Add remote2
as a remote
$ git remote -v
remote2 git@github.com:repo2.git (fetch)
remote2 git@github.com:repo2.git (push)
origin git@github.com:repo.git (fetch)
origin git@github.com:repo.git (push)
#!/usr/bin/env bash | |
uninstall() { | |
list=`gem list --no-versions` | |
for gem in $list; do | |
gem uninstall $gem -aIx | |
done | |
gem list | |
gem install bundler | |
} |
Installing patron 0.4.20 with native extensions | |
Gem::Ext::BuildError: ERROR: Failed to build gem native extension. | |
/home/ubuntu/.rbenv/versions/2.2.3/bin/ruby -r ./siteconf20151121-13137-yck58r.rb extconf.rb | |
checking for curl-config... no | |
checking for main() in -lcurl... no | |
*** extconf.rb failed *** | |
Could not create Makefile due to some reason, probably lack of necessary | |
libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. |
# frozen_string_literal: true | |
require 'csv' | |
require 'restforce' | |
CONFIG = { | |
username: '', | |
password: ENV['SFDC_PASSWORD'], | |
client_id: '', | |
client_secret: ENV['SFDC_CLIENT_SECRET'], |
require 'csv' | |
require 'nokogiri' | |
require 'open-uri' | |
require 'pry' | |
urls = File.read('urls.txt').split("\n") | |
CSV.open('scraped_data.csv', 'wb') do |csv| | |
urls.each do |url| | |
html = URI.open(url).read |
#!/usr/bin/env bash | |
# Usage | |
# cred-diff <env> (<branch|ref>|master) | |
# eg | |
# cred-diff production master | |
VAR=$2 | |
REF="${VAR:-main}" | |
git checkout $REF --quiet | |
printf . |
#!/usr/bin/env ruby | |
require 'delivery_boy' | |
# topic = 'raw-transactions-truelayer' | |
topic = ARGV[0] | |
command = "stream-kafka #{topic}" | |
CONFIG = { | |
brokers: ['---.europe-west1.gcp.confluent.cloud:9092'], |
# frozen_string_literal: true | |
module Karafka | |
class App | |
CONFIG = Rails.application.credentials.kafka | |
setup do |config| | |
config.client_id = 'cas_client' | |
config.kafka = { |
# frozen_string_literal: true | |
Rails.application.eager_load! | |
unused_routes = {} | |
# Iterating over all non-empty routes from RouteSet | |
Rails.application.routes.routes.map(&:requirements).reject(&:empty?).each do |route| | |
name = route[:controller].camelcase | |
next if name.start_with?('Rails') |
require 'socket' | |
socket = TCPServer.new(4040) | |
loop do | |
client = socket.accept | |
first_line = client.gets | |
verb, path, _ = first_line.split | |
if verb == 'GET' |