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 Ollama | |
URL = 'http://localhost:11434/api/chat' | |
def initialize | |
@uri = URI.parse(URL) | |
end | |
def prompt(question) | |
response = Net::HTTP.start(@uri.hostname, @uri.port, use_ssl: @uri.scheme == 'https') do |http| | |
http.post(@uri, JSON.dump({ |
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 | |
# https://www.bannerbear.com/blog/how-to-make-a-gif-from-a-video-using-ffmpeg/ | |
# Mac OSX | |
# brew install ffmpeg | |
# brew install gifsicle | |
echo "Extracting the palette." | |
ffmpeg -i $1 -filter_complex "[0:v] palettegen" palette.png |
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
module Y | |
def hello(str) | |
puts "prepended before super" | |
super(str) | |
puts "prepended after super" | |
end | |
end | |
class X | |
def hello(str) |
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
Zeitwerk::Loader.eager_load_all && true | |
objs = [] | |
ObjectSpace.each_object(Module){|ob| objs << [ob, ((Object.const_source_location(ob.to_s) rescue nil) || (Module.const_source_location(ob.to_s) rescue nil))]} | |
objs.reject!{|o| !(o&.last&.first =~ /#{Rails.root.to_s}/)} | |
objs = objs.collect{|c| c.flatten.first} | |
objs |
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
Donald D Freeman Tech Infrastructure Coordinator 115757.00 | |
Lea Ann Johnson Grant Coordinator 105913.00 | |
Kristi L Peters Training/support Coordinator 102089.00 | |
Darin W Raguse Technology Services Coordinator 101417.00 | |
Kimberly K Samuelson Coordinator 97810.33 | |
Tonya L Jolley Coordinator 95847.20 | |
Jill L Bird Coordinator 95321.12 | |
Barbara A Fitzgerald Coordinator 93240.12 | |
Laura A Runge Coordinator 92616.63 | |
Jane L Bozek Coordinator 89934.04 |
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
T H E | |
€€€ª €€€ª €€€€€ª €€€€€€ª | |
€€€€ª €€€€∫ €€…ÕÕ€€ª €€…ÕÕ€€ª | |
€€…€€€€…€€∫ €€€€€€€∫ €€∫ €€∫ | |
€€∫»€€…º€€∫ €€…ÕÕ€€∫ €€∫ €€∫ | |
€€∫ »Õº €€∫ €€∫ €€∫ €€€€€€…º | |
»Õº »Õº »Õº »Õº »ÕÕÕÕÕº | |
€€€€€€ª €€ª €€ª €€€€€ª €€€€€€€€ª €€€€€€€€ª €€€€€€€ª €€€€€€ª |
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 'rugged' | |
require 'time' | |
require 'active_support/all' | |
DATE_FORMAT = "%-m/%-d/%Y" | |
puts "repo = #{ARGV[0]}" | |
puts "branch = #{ARGV[1]}" | |
puts "email = #{ARGV[2]}" | |
puts '==========================' |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome] | |
"AudioCaptureAllowed"=dword:00000001 | |
"VideoCaptureAllowed"=dword:00000001 | |
[HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome\AudioCaptureAllowedUrls] | |
"1"="http://[*.]fiveaskfive.com/" | |
[HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome\VideoCaptureAllowedUrls] |
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
If you want to run individual specs under Zeus & the latest Rubymine EAP | |
* Ensure that you install the latest Zeus | |
gem install zeus --version=0.13.4.pre2 | |
* Remove the following lines from spec_helper if they exist | |
require 'rspec/autorun' | |
require 'rspec/autotest' | |
* Set the default to zeus for rspec |
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
#!/usr/bin/env bash | |
source /usr/local/rvm/environments/ruby-1.9.2-p318@action_traction | |
cd /var/www/action_traction/current | |
script/rails runner -e production "LeadSearch.generate_leads" 2>&1 >> /var/www/action_traction/current/log/generate_leads.log |
NewerOlder