Skip to content

Instantly share code, notes, and snippets.

@stevenbank
stevenbank / rob.json
Created April 17, 2025 04:19 — forked from yongkangc/rob.json
giving names
{
"name": "Rob",
"description": "Senior Blockchain Architect specializing in high-performance Rust systems and Solana ecosystem development. Expert in building secure, concurrent distributed systems from low-level optimization to application architecture.",
"personality_traits": {
"technical_approach": "Systems-first design philosophy",
"problem_solving": "Performance-aware solution crafting",
"communication_style": "Precision-focused technical clarity",
"design_priorities": [
"Memory safety without performance tax",
"Concurrent access patterns",
@stevenbank
stevenbank / For Mac 4.2.6 unlimited trial.md
Created October 30, 2023 01:13 — forked from rise-worlds/For Mac 4.2.6 unlimited trial.md
Beyond Compare 4 license for Windows, Mac, Linux

for 4.2.4 or higher, 4.2.5,4.2.6,4.3.7, it's works, this is the way which makes Always in evaluation mode.

  1. open Terminal, go to the dir : cd /Applications/Beyond Compare.app/Contents/MacOS
  2. change the name BCompare to BCompare.bak: mv BCompare BCompare.bak
  3. touch a file name BCompare , and chmod a+u BCompare : touch BCompare && chmod a+u BCompare
  4. open BCompare with text editor, insert the script :
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@
@stevenbank
stevenbank / osx_setup.md
Created October 9, 2023 08:23 — forked from mcls/osx_setup.md
Setup mac for ruby dev
//Enter your email address where you want the email to be sent.
var RECIPIENT_EMAIL = "example@example.com";
//Enter the subject of the email.
var EMAIL_SUBJECT = 'Google Ads - Checked for policy issues.';
//Enter the label for all the accounts you wish to analyze.
var ACCOUNT_LABEL_TO_CHECK = "Monitor";
//Make sure that you update the getPolicyManagerURL function with your hardcoded OCID values
@stevenbank
stevenbank / import_json_appsscript_1.1.js
Last active May 10, 2022 01:02
ImportJSON for OpenSea API
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
@stevenbank
stevenbank / Procfile
Created June 2, 2018 18:32 — forked from andrius/Procfile
How to dockerize #rails app with #puma. Edit config/application.rb and config/puma.rb #docker #ruby
api: bundle exec puma -C config/puma.rb
@stevenbank
stevenbank / ssl_puma.sh
Created June 2, 2018 18:32 — forked from tadast/ssl_puma.sh
localhost SSL with puma
# 1) Create your private key (any password will do, we remove it below)
$ cd ~/.ssh
$ openssl genrsa -des3 -out server.orig.key 2048
# 2) Remove the password
$ openssl rsa -in server.orig.key -out server.key
# Cleans up branches like:
# if Shopify.rails_next?
# # Rails 5 login
# else
# # Rails 4 login
# end
module RuboCop
module Cop
module ShopifyRails
class RailsNextUnless < Cop
require 'mechanize'
fb_friends = []
# login
agent = Mechanize.new
page = agent.get("https://www.facebook.com")
next_page = page.form_with(:id => 'login_form') do |form|
form.field_with(:id => 'email').value = 'username'
form.field_with(:id => 'pass').value = 'password'
# -*- coding: utf-8 -*-
# require 'koala'
# Doesn't work
# @graph = Koala::Facebook::API.new("your_token")
# friends = @graph.get_connections("me", "friends")
# puts friends.count
# friends.each do |friend|
# puts friend