Skip to content

Instantly share code, notes, and snippets.

View thegreyd's full-sized avatar
:shipit:
Working from home

Siddharth Sharma thegreyd

:shipit:
Working from home
  • Red Hat @openshift
  • Toronto, Canada
  • 23:00 (UTC -04:00)
View GitHub Profile
import koji
import requests_kerberos
from datetime import datetime
koji_session = koji.ClientSession("https://brewhub.engineering.redhat.com/brewhub")
# navigate to https://art-dash.engineering.redhat.com/dashboard/build/history
# find a very recently completed build (should be at the top)
# note the package name
package_name = 'ose-ovn-kubernetes-container'
@thegreyd
thegreyd / review-release-config
Created April 17, 2023 15:57 — forked from joepvd/review-release-config
Review release configuration
#!/usr/bin/env python
import requests
from ruamel import yaml
import sys
versions = ["4.10", "4.11", "4.12", "4.13", "4.14"]
def get_data():
@thegreyd
thegreyd / again_remix.rb
Created August 21, 2018 03:27
Sonic Pi Remix
live_loop :song do
sample "again_beg_full.wav", rate: 2, attack: 1, release: 1, amp: 2
sleep 10.2
end
live_loop :beat do
use_bpm 47
sample :loop_amen, rate: 1, beat_stretch: 2
sleep 2
end
@thegreyd
thegreyd / share.sh
Created December 18, 2017 15:33
Local File Sharing with Python Server
#!/bin/sh
#bash script to share files with a url from a folder
#steps
#copy file to the share folder, start python server
#check ip address and form the url and share it
cd ~/Public
ifconfig wlp3s0 | grep "inet " | awk '{print "Sharing at "$2":8000"}'
echo "Press Ctrl-C to stop"
python3 -m http.server
@thegreyd
thegreyd / rvm.fish
Created July 10, 2017 00:17 — forked from itay-grudev/rvm.fish
Using RVM with Fish Shell in just 6 lines of code
# ~/.config/fish/functions/rvm.fish
function rvm --description "Ruby Version Manager"
exec bash --login -c "rvm $argv; exec fish" ^&1
end
0xedd95b9A8EF25BADBD7B529b72952a7ECA89fFc9
@thegreyd
thegreyd / gitable_3.py
Last active April 11, 2017 22:42 — forked from timm/gitable.py
Python3 version - Extracting info from github
# gitabel Python3 version
# the world's smallest project management tool
# reports relabelling times in github (time in seconds since epoch)
# thanks to dr parnin
# todo:
# - ensure events sorted by time
# - add issue id
# - add person handle
"""
@thegreyd
thegreyd / latest_keepassXC.sh
Last active April 20, 2017 16:05 — forked from rossant/latest_pandoc.sh
Install latest .deb KeepassXC, using the GitHub release page
#!/bin/bash
#bash script to install latest keepassxc release
#fetch the stable deb package from github release page
#Requires superuser permission
#page is not guaranteed to update with latest release
#verify for latest releases here: https://github.com/keepassxreboot/keepassxc/releases
URL="https://github.com/magkopian/keepassxc-debian/releases/latest"
RELEASEPAGE="$(wget $URL -q -O -)"
DEBURL="$(echo $RELEASEPAGE | grep -oP '"([^"]+_stable.deb)"')"
@thegreyd
thegreyd / capitalize_md.sh
Last active April 20, 2017 16:06
Script to Rename/Capitalize files in a folder
#!/bin/bash
#script to capitalize names of markdown files in a folder
#requires python
for mdfile in $(ls *.md)
do
mv "$mdfile" "$(echo "print '$mdfile'.capitalize()" | python)"
done