Skip to content

Instantly share code, notes, and snippets.

View majorsilence's full-sized avatar
🐢
I may be slow to respond.

Peter Gill majorsilence

🐢
I may be slow to respond.
View GitHub Profile
@majorsilence
majorsilence / copy-github-issues.py
Last active September 27, 2023 17:16
Copy github issues from one issue tracker to another
from github import Github
from github import Auth
import time
# NOTE: this copies the issues. It does not transfer them.
# PYTHON SETUP:
# sudo apt update && apt install python3
# wget https://bootstrap.pypa.io/get-ip.py
# sudo python3 get-ip.py
using System;
using FluentMigrator;
namespace Majorsilence.WebSite.DatabaseMigrations.Migrations;
[Migration(1, "CreateIdentitySchema")]
public class CreateIdentitySchema : Migration
{
public override void Up()
{
/**
* 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();
@majorsilence
majorsilence / Jenkinsfile
Created February 13, 2022 22:30
Zig Jenkins pipeline
pipeline {
agent none
stages {
stage('build and test') {
agent {
docker {
image 'ubuntu:20.04'
args '-u root:root'
}
}
@majorsilence
majorsilence / Jenkinsfile
Created February 13, 2022 22:29
C++ Jenkins Pipeline
pipeline {
agent none
stages {
stage('build') {
agent {
docker {
image 'gcc:9.4.0'
}
}
steps {
@majorsilence
majorsilence / Jenkinsfile
Created February 13, 2022 22:28
C Jenkins Pipeline
pipeline {
agent none
stages {
stage('build') {
agent {
docker {
image 'gcc:9.4.0'
}
}
steps {
@majorsilence
majorsilence / Jenkinsfile
Created February 13, 2022 22:28
Swift Jenkins Pipeline
pipeline {
agent none
stages {
stage('build and test') {
agent {
docker {
image 'swift:5.5.3'
}
}
steps {
@majorsilence
majorsilence / Jenkinsfile
Created February 13, 2022 22:27
Java Jenkins Pipeline
pipeline {
agent none
stages {
stage('build and test') {
agent {
docker {
image 'openjdk:19-jdk-buster'
}
}
steps {
@majorsilence
majorsilence / Jenkinsfile
Created February 13, 2022 22:26
Ruby Jenkins Pipeline
pipeline {
agent none
stages {
stage('build and test') {
agent {
docker {
image 'ruby:3.1.0'
}
}
steps {
@majorsilence
majorsilence / Jenkinsfile
Last active February 13, 2022 22:27
Python Jenkins Pipeline
pipeline {
agent none
stages {
stage('build and test') {
agent {
docker {
image 'python:3.9.10'
}
}
steps {