Skip to content

Instantly share code, notes, and snippets.

View ksaynice's full-sized avatar

-=K=- ksaynice

View GitHub Profile
@ksaynice
ksaynice / blast_any_spin.js
Last active January 15, 2024 16:15
Blast Airdrop Lucky/Twitter/Super Spin AUTO Scripts
const axios = {
get(url, { headers = {} }) {
return new Promise((resolve, reject) => {
const xhr = window.XMLHttpRequest
? new XMLHttpRequest()
: new ActiveXObject("Microsoft.XMLHTTP");
xhr.open("get", url);
xhr.withCredentials = true;
// Object.entries(headers).forEach(([key,value]) => xhr.setRequestHeader(key, value));
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: Filecoin phase2 signing public-key
mQINBF8DOjoBEAD09m9+SZz7JpGOH7X8cgLKSZ+RIldt1rP9towfvmgvpoKFfiVO
Qw2q4Co3L8P+QEasHHBYRiYe7HWVShH0Bpaz3zm6MXCsKS0u5hhmDqI/KX15sn+u
S4ARkIv1pXMk4pqo/51NDqknAYEOLf06V7atL0DmwfAEVtEI1V55Iashp6Wwpaob
XdxKARG9ZiwdZdqaZP0rMxYV5Id4BZNmtLB1kTJCWxg7ZGo5dI0GLYnlRxVCt10I
45cIlqOzX9VDMAYbcV0ClWUNjQm+YstVSfVbNBA59T6MLl/UL8Ipo+QR7zViblaF
QP4ixW/rXhWt0TFNyR9NXyJGuQHUewtBKOzdUm3hkjmIrQEB25XLCKeXmwVIPwiT
nZ13rMoGnsrbAlpDpexJXeqqVIz1hq2kCKboloIcu3nB2xMbgmzS6uzemiMw2US6

Keybase proof

I hereby claim:

  • I am ksaynice on github.
  • I am ksaynice (https://keybase.io/ksaynice) on keybase.
  • I have a public key ASCq2bXgwye8KMJY2-7iSG5N7oY1upMKhQSnL-dZdEijfQo

To claim this, I am signing this object:

@ksaynice
ksaynice / eth_iceage
Created January 26, 2019 09:13
eth_iceage avg block time simulator
import random
import datetime
import sys
def calc_bomb(i):
subtract = 52 if i >= CNSTNTNPL_FORK_BLKNUM else 32
period = i // 100000
if (period > 0):
# Subtract 2, this is the original formula
@ksaynice
ksaynice / iceage.py
Created January 22, 2019 10:52 — forked from lrettig/iceage.py
Simulation script for ice age block times
# Date, blocknum, difficulty as of 2019-01-18
# Script by vbuterin, slightly modified by lrettig
import random
import datetime
import sys
def calc_bomb(i):
period = i // 100000
if (period > 0):
# Subtract 2, this is the original formula
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@ksaynice
ksaynice / Rakefile
Created December 4, 2017 09:07
Rake task to publish jekyll site to github page (master branch OR gh-pages with site namespace)
require "rubygems"
require "tmpdir"
require "bundler/setup"
require "jekyll"
# Change your GitHub reponame
GITHUB_REPONAME = "ksaynice/some_repo_name"
@ksaynice
ksaynice / puma.rb
Last active October 13, 2015 04:32 — forked from sj26/boot.rb
Use dotenv with unicorn (put in config/boot.rb, thanks @keithpitt)
class PumaHelper
def self.refresh_connection_pool(base_klass, config_key)
base_klass = base_klass.constantize
config = Rails.application.config.database_configuration[config_key]
base_klass.connection_pool.disconnect! rescue ActiveRecord::ConnectionNotEstablished
base_klass.connection.disconnect! rescue ActiveRecord::ConnectionNotEstablished
base_klass.establish_connection config
true
rescue
class ProcessImage
class ResizeCover < ProcessImage::Base
include Interactor
include MomCatalogModels::Fileable
GRID_W = 960
GRID_H = 1200
def call
magic_resize_cover
# Function to print strftime results
def print_strftime_formats(a,cur_date)
a.each do |format|
b = "%#{format}"
output = cur_date.strftime(b)
puts "t.strftime('#{b}'), => #{output}"
end
end
a = ('a'..'z').to_a