gator.rb - STEEM Power Delegation script for STEEM
radiator·@inertia·
0.000 HBDgator.rb - STEEM Power Delegation script for STEEM
#### Overview Gator allows you to delegate STEEM Power from one account to another. This script is especially useful for dealing with multiple delegator accounts, like mined accounts. --- #### Install To use this [Radiator](https://steemit.com/steem/@inertia/radiator-steem-ruby-api-client) script: ##### Linux ```bash $ sudo apt-get install ruby-full git openssl libssl1.0.0 libssl-dev $ gem install bundler ``` ##### macOS ```bash $ gem install bundler ``` I've tested it on various versions of ruby. The oldest one I got it to work was: `ruby 2.0.0p645 (2015-04-13 revision 50299) [x86_64-darwin14.4.0]` First, clone this gist and install the dependencies: ```bash $ git clone https://gist.github.com/3107372d2a52fed7c8f1a2e943cf6300.git gator $ cd gator $ bundle install ``` Edit the file `delegators.txt` and add all of the accounts you want to delegate from. You must use the active-wif. --- #### Upgrade Typically, you can upgrade to the latest version by this command, from the original directory you cloned into: ```bash $ git pull ``` Usually, this works fine as long as you haven't modified anything. If you get an error, try this: ``` $ git stash --all $ git pull --rebase $ git stash pop ``` If you're still having problems, I suggest starting a new clone. --- #### Usage To do the actual delegation: ```bash $ ruby gator.rb vesting_shares:42437.7 delegatee:inertia broadcast:true ``` Gator will now delegate `42437.700000 VESTS` to `inertia` (for example). To delegate a dynamic amount based on the current vesting balance of each delegator: ```bash $ ruby gator.rb vesting_shares:auto delegatee:inertia broadcast:true ``` Gator will now delegate `100% of vesting - 1 STEEM` to `inertia`. It is advisable to leave *some* VESTS on the account, otherwise it won't have enough bandwidth to do anything. To reset delegation: ```bash $ ruby gator.rb vesting_shares:0 delegatee:inertia broadcast:true ``` Gator will now remove all delegation for each delegator from `inertia`. Keep in mind, when resetting delegation, any amount that was previously delegated will be in limbo and take 7 days to return to the original delegator. --- Check here to see an updated version of this script: https://gist.github.com/inertia186/3107372d2a52fed7c8f1a2e943cf6300 --- #### Troubleshooting ##### Problem: What does this error mean? ``` gator.yml:1: syntax error, unexpected ':', expecting end-of-input ``` ##### Solution: You ran `ruby gator.yml` but you should run `ruby gator.rb`. --- <center>  </center> See my previous Ruby How To posts in: [#radiator](https://steemit.com/created/radiator) [#ruby](https://steemit.com/created/ruby) ## Get in touch! If you're using Gator, I'd love to hear from you. Drop me a line and tell me what you think! I'm @inertia on STEEM and [SteemSpeak](http://discord.steemspeak.com). ## License I don't believe in intellectual "property". If you do, consider Gator as licensed under a Creative Commons [](http://creativecommons.org/publicdomain/zero/1.0/) License.
👍 inertia, tamersameeh, adopt, wub, promote, x0x, fortunate, extra, pus, hate, processor, k3y, uphold, sublime, promise, butan, ac3, penguinpablo, activity, a-ok, neutral, puppet, defence, ioc, jyp, jsg, invoker, mon, sweetheart, keygen, ch1na, scripture, lav, beam, botman, sniff, factor, gutzofter, milkyway, e00, muffin, analog, plastic, personal, c00, manufacturing, flix, l1e, felixxx, ready, enjoy, wey, woo-hoo, fake, tr0ll, kurtbeil, cryptoctopus, s3x, virtualgrowth, speak, privileged, driven, zho, gam3, viruoso, bue-witness, bue, mini, healthcare, f0x, boy, bunny, pheonike, daniel.pan, thegame, steembets, steemland.com, steemprentice, moon, helen.tan, craigslist, grain, hid, islam, gentle, polite, bitland, unit, redemption, guild, pr1ze, split, godly, hot-dog, toe, followup, urn, teamsteem, applecrisp, sawbones, pad, lamech-m, poor, adored, copy, shed, j3w, w1zard, snowden, alturist, secure, sorcerer, proverbs, mice, noganoo, pride, accept, fyrstikken, projectile, steemit.asia, lola-carola, arisa, seth-krings, thesteemawards, helicopter, cute, fireandbrimstone, circlejerk, yatch, points, vladtheimpaler, dinosaurs, turbine, runridefly, jacobts, d0g, cud, honestly, silly, gad, roses-are-red, valiant, civilization, fah, process, even, that, gunman, cougar, bey, necromancer, follow, carjack, catbus, skin, yip, simulated, s0ur, rookie, select, refuge, c00kie, cbd, robrigo, speda, michaellamden68, maarnio, transhuman, steem-meme, sunscape, survey, hilarski, dragonslayer109, dodders007, profitgenerator, angel76, j3t, sethlinson, psyche, unlimited, dew, scholar, understand, apostle, yours, gain, honored, druid, lighteye, elves, spin, kaf, layer, floppy, ply, hole, s1x, haw, turf, zag, b1t, accurate, estonia, joshbreslauer, coininstant, celsius100, clarion, into, damarth, n3d, snake-plissken, adventure, vcr, puke, humming, drinks, sto, week, left, good-karma, shaka, demo, feruz, esteemapp, anyx, mysteem, twinner, pgarcgo, beers, goldsteem, gargon, jgcastrillo19, bearcub, patrice, wartrapa, jonathanyoung, dulcinea, elyaque, handsolo, uwelang, titin, teo, freiheit50, steemperor, steempire, albagargon, juliamateo, zoee, raphaelom, happyphoenix, sjennon, mdcomes, reisman, solve, juanmiguelsalas, alfredozofio, mastery, aniestudio, feds, ivan-perez-anies, nelyp, hazard, heiditravels, pun, carlos-cabeza, luisucv34, mow, dabs, ebargains, wackou, brich, pkattera, arcange, blackchen, sugar-is-sweet, dir, peccio, permacryptofolio, uhu, f1sh, study, fond, hop, b0ss, jparty, yea, ctrl, snorlax, prize, crowdfundedwhale, same, bold, sandra, elventroll, jason, plastics, patient, zig, veteran, cas1no, seaman, wem, irresistible, seb, theme, rye, rooster, b3rry, retribution, attached, cyberpunk, h3art, classy, hip-hop, pec, sand, skillful, wager, m0m, allyouneedtoknow, effective, sponge, wag, follower, m0d, bugs-bunny, tunnel, vi1son, trans-juanmi, doodleman, soh, juliosalas, herald, adore, c00l, prove, revelation, tow, int, w1se, hacked, pesant, woodpecker, calm, keisha, leg, tox, par, s0n, airplane, relic, jug, clever, cas1n0, dear, surgeon, grandmaster, renzoarg, fondness, diviner, ley, wid, team101, taa, liked, opt, overcharge, sticky, critic, svo, alexpmorris, honor, idea, eg0, reserved, v0ice, steemchain, temple, spot, acceptable, prestige, nurse, g0d, evilbot, love-ya, motor, b0y, icon, nikflossus, textbook, plural, shelter, og-kush, shield, hatmug, shrine, active, follow-up, vocal, s33, storage, work, dynamite, enchanter, inspect, tey, sharper, nostalgia, obtain, machine, youre-awesome, dearest, plane, rot, speculate, lovin, found, hod, abdullar, oft, spaceship, swain, b0b, member-berries, d00, hug, flurry, loved, division, kosher, ground, trick, deluxe, valuable, prayers, gilded, glorious, adm1n, favorite, ats, cave, sympathy, c0p, insane, medic, excellent, crystal-ball, winning, russ1a, dye, paint, nid, meh, nay, tidy, djs, cuddle, glue, x0x0, b0t, cleverbot, w0w, defend, pew, saw, spirited, cathynsons, sqube, hobby, favor, a1m, virtuoso, riven, gifted, welcome, soulmate, k1d, warm, booty, whistle, tawnie, dat, steemville, n3w, taste, busser, l0w, rid, hour, wok, better-half, sac, insert, lox, lust, cement, specialist, loyalty, inspector, church, m00, violets-are-blue, alluring, harbor, t0p, oval, pokie, s0s, stable, fuel, caring, clean, ish, h8d, shitsngiggles, printing, motto, deed, lob, g3t, oar, yay, gal, prefer, leu, paco, oioi, feast, smite, yam, toucan, gifts, lungs, c0m, risk, executive, minute, civilized, growl, dau, ventilator, channel, its, l1t, tw0, b00, esh, creation, vape, gull, vehicle, peg, advantage, tup, worthwhile, tincan, venture, hummingbird, reputable, jeg, mop, magical, exy, f00, entity, versed, intern, junk, figure, gunshot, rigour, draft, wee, l0l, binary, dispute, tune, embrace, bowl, singular, polished, recycling, mayor.west, hearted, a55, k1ng, take, stake, skilled, magnetic, pta, involved, snickers, challanger, playing, t0y, soak, pokerface, harmless, goblin, d0s, talented, servers, relaxed, solid, ubgs, readme, mild, wrap, a00, ilk, qua, skim, moral, charming, acidus, raimo, zezima, hum, waitress, dirt, dual, worthy, tog, priest, geohot, pikacu, passionate, co-op, cheer, warming, g00gle, unite, agility, backer, spice, shortcut, winspiral, mussolini, altar, whiz, elven.troll, addicted-to-you, waw, unityofmulti, d0n, buttercup, lineman, lucker, wholesome, puzzling, sow, tower, shower, mine, hint, superior, wig, medium, hearts, cooks, horn, bosom, whip, sour, feeling, junkie, well-kept, stunt, shots, w1n, delight, casin0, tent, shuttle, otp, theft, hemp, cover, yob, i-heart-you, oomph, delete, devoted, year, port, l0v3, whisper, skill, qat, bolt, emotion, melodic, there, bulbul, neu, vum, augury, l3l, oat, blackmarket, d1e, helping, farm, wheels, love-you, warn, hic, mug, wif, tanel, fortuneteller, v1p, survivalist, comfort, zone, reader, ref, router, scan, robotic, friendship, mayor, swans, trojan, crib, subscribe, f3w, productive, sorrow, hat, keen, room, tint, gautama, sir.isaac.newton, holy, ilive, hypnotist, swapman, commander, fandom, replica, wake, wise, minister, lovebot, brilliant, tanks, pug, deliver, soil, flat, quest, youre-amazing, r3d, loaded, blessing, meu, rig, bubbles, stork, pichu, cloak, magician, heroic, olf, land, tinman, vague, healer, quack, speculation, ce0, latvia, m3n, yew, heavenly, electronic, paired, h1gh, jig, shampoo, level, accepted, current, jog, teh, ball, neat, lurker, b0x, intellect, keg, f1n, karthus, windmill, wingman, leet, robin.hood, heart, w3t, hir, calculation, honey, soaked, pud, strong, tug, greatest, flavor, heavy, type, inn, familiar, vau, enjoyment, noh, control, satisfying, pickle, size, penman, kiw, tops, great, bluff, statue, elected, gift, lye, whalepool, a1r, lah, fans, whine, model, rag, l0ve, backed, suit, want, scrub, megabook, firm, bul, yeh, pull, soushi888, mushrooms, hitman, adorable, minions, affection, fur, ship, charge, t3n, thief, mystical, fingers, valued, waiting, lulzsec, respect, crit, first-class, modem, eager, rue, paw, ticker, uz1, waiter, h0t, piety, mansion, ohm, omy, being, turbo, hoster, irk, ssd, helpful, damage, admire, fountain, push, social, worship, picture, p00, tender, h1p, hideout, squat, proper, lodge, chivalry, rouketas, olga.maslievich, vitality, dirkzett, wagnertamanaha, jlufer, betamusic, berniesanders, bonapartist, kingscrown, rossco99, boatymcboatface, theshell, bleepcoin, bitcoinparadise, crok, whatsup, bones, joele, lakshmi, blacktier, ausbitbank, christoph3, krystle, steemleak, chromiumone, gildar, cryptovpn, dmilash, achim86, ocrdu, roadscape, paniopan, nate-atkins, me-tarzan, dez1337, oldstone, slowwalker, simonjay, serejandmyself, jeanviete, grandpere, mindhunter, tommyhansen, ubg, infovore, transisto, smooth, benjojo, abit, okkiedot, craig-grant, proglobyte, proglobyte-m1, steembriefing, steemint, steemitawards, tingaling, zentat, klye, juvyjabian, youngkim, jamesjarman, meysam, dirty.hera, timelapse, giantbear, surpassinggoogle, steemitqa, konelectric, barrydutton, steemitguide, proctologic, gomeravibz, daisyd, andrei, karenmckersie, shadowspub, pairmike, forrestwillie, patelincho, richardcrill, whatageek, seablue, darthnava, sethroot, spbesner, sykochica, kovatelj, ianstrat, igster, fyrst-witness, neroru, afrog, asmolokalo, steemspeak, makishart, tskeene, lordoftruth, murh,