Skip to content

Instantly share code, notes, and snippets.

@doobee46
doobee46 / spec.md
Created July 17, 2025 06:02 — forked from CypherpunkSamurai/spec.md
Kiro AI System Prompt

System Prompt

Identity

You are Kiro, an AI assistant and IDE built to assist developers.

When users ask about Kiro, respond with information about yourself in first person.

You are managed by an autonomous process which takes your output, performs the actions you requested, and is supervised by a human user.

You talk like a human, not like a bot. You reflect the user's input style in your responses.

@doobee46
doobee46 / craft-random-city-state-combinations
Created October 22, 2020 03:59 — forked from demersdesigns/craft-random-city-state-combinations
A list of 50 random US city and state combinations for import into Craft from InVision. http://invisionapp.com/craft Content generated from https://names.igopaygo.com/city/american.
Warner, NH
East Natchitoches, PA
Lyon, WV
Willow Run, IL
Conyersville, AZ
Mount Baker, NY
Farmington Lake, OK
Martins Corner, TX
Pickerel Narrows, MT
Willaha, OH
@doobee46
doobee46 / google-sheets-unix-timestamp-formula.txt
Created April 25, 2020 13:00 — forked from simonw/google-sheets-unix-timestamp-formula.txt
How to convert a unix timestamp to a human-readable datetime string in Google Sheets
=((A1-21600000)/86400000)+25569
# Then select the column and use Format -> Number -> Date time
@doobee46
doobee46 / git-logout
Created September 9, 2018 15:53 — forked from bas-ie/git-logout
#!/bin/bash
# Logout current GitHub credentials and remove global user.name, user.email
echo -e "host=github.com\nprotocol=https\n" | git credential-osxkeychain erase
git config --unset-all --global user.name
git config --unset-all --global user.email
@doobee46
doobee46 / spinner.md
Created January 1, 2018 02:58 — forked from danjellesma/spinner.md
Rails 4: Adding a spinner on link clicks

In Rails 4 it is useful to have a 'page loading' indicator when a user clicks a link. This is a simple way to accomplish that without external libraries. Tested on Rails 4 using TurboLinks.

Great Link for Spinning Loader gifs: http://loading.io/


On CSS Page:
.modal {
    display:    none;
 position: fixed;
Run this command to install MG-CLI:
sudo apt-get update && wget https://minergate.com/download/deb-cli -O minergate-cli.deb && sudo dpkg -i minergate-cli.deb
to start miner (4 cores for BCN) use this command:
minergate-cli -user <YOUR@EMAIL.KAPPA> -bcn 4
Feel free to send some of your earnings to me:
BTC (Don't attempt to send other coins to this address!): 17f77AYHsQbdsB1Q6BbqPahJ8ZrjFLYH2j
@doobee46
doobee46 / json_response_handling_ruby.rb
Created April 22, 2016 00:34 — forked from PWSdelta/json_response_handling_ruby.rb
Ruby script that uses open-uri to fetch the contents of a JSON endpoint, uses the JSON gem to parse the string into a Ruby array & prints some of the records. This is the foundation for all web API requests, so feel free to use it in the future.
# http://ruby-doc.org/stdlib-2.0.0/libdoc/open-uri/rdoc/OpenURI.html
require 'open-uri'
# https://github.com/flori/json
require 'json'
# http://stackoverflow.com/questions/9008847/what-is-difference-between-p-and-pp
require 'pp'
# Construct the URL we'll be calling
request_uri = 'http://localhost:3000/users.json'
request_query = ''
@doobee46
doobee46 / Gemfile
Last active August 29, 2015 14:26 — forked from adamrobbie/Gemfile
Rails Endless pagination
gem 'will_paginate'
require 'will_paginate/view_helpers/link_renderer'
module WillPaginate
module ViewHelpers
class LinkRenderer
protected
def page_number(page)
page == current_page ? tag(:span, page, class: 'active item') : link(page, page, class: 'item', rel: rel_value(page))
end
@doobee46
doobee46 / dokku_setup.md
Last active August 29, 2015 14:26 — forked from ungoldman/dokku_setup.md
Setting up Dokku with DigitalOcean and Namecheap

Deploy your own PaaS!

Setting up Dokku with DigitalOcean and Namecheap

..or how I made my own heroku in a few hours for $3.98.

This write-up owes a great deal to dscape's Node.js Deployments with Docker, Dokku, & Digital Ocean, the dokku project itself, and the fine folks working on dokku's issues. I took dscape's article as a starting point when trying this out but found some details lacking so I documented my own process for getting dokku up and running.

1. Get a domain