Skip to content

Instantly share code, notes, and snippets.

View eclipseo's full-sized avatar

Robert-André Mauchin eclipseo

View GitHub Profile
@eclipseo
eclipseo / rust-setup.py
Created March 22, 2019 20:01
Add new rust packages to Anitya and assign Rust SIG commit rights
import asyncio
import aiohttp
import sys
import os
def get_subdirectories(dir):
return [name for name in os.listdir(dir)
if os.path.isdir(os.path.join(dir, name))]
async def main(paths):
@eclipseo
eclipseo / golang-setup.py
Created March 29, 2019 11:30
Tool to register Golang packages in Anitya
import asyncio
import aiohttp
import sys
import os
from subprocess import CalledProcessError, check_output
def get_data(pkg):
data = {}
spec = os.path.join(pkg, pkg + '.spec')
try:
@eclipseo
eclipseo / check-anitya.py
Last active December 22, 2019 21:33
Tool to register packages with Anitya
import aiohttp
import asyncio
import os
import sys
import time
from subprocess import CalledProcessError, check_output
# Anitya access token
TOKEN = ''
@eclipseo
eclipseo / README.md
Last active November 9, 2020 10:15 — forked from ignatenkobrain/README.md
Rust on Side Tags
set release 32
set build (fedpkg verrel)
set pkg (string split -m 2 -r - $build)[1]
set tag (fedpkg request-side-tag --base-tag f$release-build | grep -oE "(f[0-9]{2}-build-side-[0-9]{5})" | head -1)

fedpkg clone $pkg
cd $pkg
fedpkg request-branch f$release --no-git-branch
@eclipseo
eclipseo / README.md
Last active December 20, 2020 02:11
Golang on Side Tags
set release 33
set build (fedpkg verrel)
set pkg (string split -m 2 -r - $build)[1]
set tag (fedpkg request-side-tag --base-tag f$release-build | grep -oE "(f[0-9]{2}-build-side-[0-9]{5})" | head -1)

fedpkg clone $pkg
cd $pkg
fedpkg request-branch f$release --no-git-branch
@eclipseo
eclipseo / keybase.md
Created April 4, 2021 21:48
keybase.md

Keybase proof

I hereby claim:

  • I am eclipseo on github.
  • I am eclipseo (https://keybase.io/eclipseo) on keybase.
  • I have a public key whose fingerprint is B5CE 0F62 7DEA 5742 65A2 48E6 392B 133D 6C19 D0F9

To claim this, I am signing this object:

@eclipseo
eclipseo / bluebird.min.js
Last active August 20, 2022 17:56
bluebird.min.js
!function(a){"use strict";function b(a,b){var c=a[b];a[b]=function(){return P.resolve(c.apply(this,arguments))}}a.fetch=function(a){return function(b){return P.resolve(a.apply(this,arguments))}}(fetch),[a.Response,a.Request].forEach(function(a){a&&a.prototype&&"arrayBuffer blob formData json text".split(" ").forEach(function(c){a.prototype[c]&&b(a.prototype,c)})})}("undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});
!function(a){"use strict";function b(a,b){var c=a[b];a[b]=function(){return P.resolve(c.apply(this,arguments))}}a.fetch=function(a){return function(b){return P.resolve(a.apply(this,arguments))}}(fetch),[a.Response,a.Request].forEach(function(a){a&&a.prototype&&"arrayBuffer blob formData json text".split(" ").forEach(function(c){a.prototype[c]&&b(a.prototype,c)})})}("undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});
!function(a){var b="object"==typeof self&&self.self==self&&self||"object"==typeof global&&global.global==global&&global;"function"==typeof define&&define.amd?define(["exports"],function(c){b.Backbone=a(b,c)}):"undefined"!=typeof exports?a(b,exports):b.Imgur=a(b,{})}(function(a,b){var c=function(a){return this.account=function(b){if(b=b||{},!b.hasOwnProperty("username"))throw new Error("username required");var c=Object.assign(b,{username:b.username});return a.request("get","account/{username}",c)},this.galleryFavorites=function(b){if(b=b||{},!b.hasOwnProperty("username"))throw new Error("username required");var c=Object.assign(b,{username:b.username,page:b.page||0,sort:b.sort||"newest"});return a.request("get","account/{username}/gallery_favorites/{page}/{sort}",c)},this.favorites=function(b){if(b=b||{},!b.hasOwnProperty("username"))throw new Error("username required");var c=Object.assign(b,{username:b.username});return a.request("get","account/{username}/favorites",c)},this.submissions=function(b){if(b=b||{},
!function(e){"use strict";function n(e){e=e||{};var n,o,r,i=0,c=e.backoff||1,a=e.interval,l=e.timeout||15e3,u={cancel:function(){e.debug&&console.log("harness.cancel"),r?(clearTimeout(r),o.reject(t.CancellationError())):n&&(n.cancel(),o.reject(t.CancellationError()))},go:function(u){if(e.debug&&console.log("harness.go"),o=t.pending(),arguments.length>1)var s=Array.prototype.slice.call(arguments,1),f=!0;var d=function(){i++,e.debug&&console.log(" harness.attempt:",i),n=f?u.apply(u,s):u(),n.timeout(l).then(o.resolve.bind(o))["catch"](t.CancellationError,function(e){o.reject(e)})["catch"](function(t){if(e.attempt&&i>=e.attempt)return void o.reject(t);var l=a&&i>1?a+(i-1)*c:0;e.debug&&console.log(" ",t,"retry in:",l+"ms"),n=void 0,r=setTimeout(function(){r=void 0,d()},l)})};return d(),o.promise}};return u}var o,t;null!=e&&(o=e.harness),"undefined"!=typeof module&&module.exports?(t=require("bluebird"),module.exports=n):"undefined"!=typeof define&&define.amd?(t=e.Promise,define([],function(){return n})):(t=e.Pr