Skip to content

Instantly share code, notes, and snippets.

View igwejk's full-sized avatar
🏠
Working from home

Igwe Kalu igwejk

🏠
Working from home
View GitHub Profile
@igwejk
igwejk / .gitlfstracks
Created September 10, 2023 21:35 — forked from bdombro/.gitlfstracks
Git LFS Default Tracks - Common binary file extensions
"To include this, run `cat .gitlfstrack | xargs git lfs track`"
"*.3ds"
"*.3g2"
"*.3gp"
"*.7z"
"*.a"
"*.aac"
"*.adp"
"*.ai"
"*.aif"
@igwejk
igwejk / graphql_example.py
Created July 28, 2023 07:35 — forked from gbaman/graphql_example.py
An example on using the Github GraphQL API with Python 3
# An example to get the remaining rate limit using the Github GraphQL API.
import requests
headers = {"Authorization": "Bearer YOUR API KEY"}
def run_query(query): # A simple function to use requests.post to make the API call. Note the json= section.
request = requests.post('https://api.github.com/graphql', json={'query': query}, headers=headers)
if request.status_code == 200:
@igwejk
igwejk / getting-going-best-practices.md
Created July 27, 2023 08:46 — forked from jbjonesjr/getting-going-best-practices.md
Getting Going and Best Practices Guide

GitHub Onboarding and Introduction

A guide for getting started and best practices for teams new to, or improving their interactions with, GitHub

image GitHub's features and capabilities

This document is meant to help new teams to GitHub familiarize themselves with the features and platform, as well as start to explore some of the best practices. While not a complete exploration, it's meant as a introduction to the key tenets of using GitHub for your business. For teams and organizations that desire more one on one support, GitHub Professional Services has many different options available to customize tools, training, and process to best meet your needs. The GitHub offerings listed in the diagram above are just a sampling of the various capabilities and we'd love to create a customized offering to meet your specific organizational needs.

Overview and Intr

@igwejk
igwejk / user.py
Created January 19, 2023 15:30 — forked from psa-jforestier/user.py
List all inactive user of a GitHub organization using GitHub API
'''
List all inactive user of a GitHub organization
See user.py --help for usage.
Partially inspired by https://gist.github.com/morido/9817399
'''
import sys # to use sys.stdout
import os
from datetime import datetime
from time import strftime
import datetime
@igwejk
igwejk / Jenkinsfile
Created June 23, 2020 15:29 — forked from merikan/Jenkinsfile
Some Jenkinsfile examples
Some Jenkinsfile examples
@igwejk
igwejk / braking.md
Created May 18, 2019 21:27
Theorie Test / Q & A - These are the more difficult questions. They are not all of the questions you may encounter on the test.

Braking

Standard Braking Distance

  • DE: (Geschwindigkeit / 10) * (Geschwindigkeit / 10)
  • EN: (Speed / 10) * (Speed / 10)

Evasive (Emergency) Braking Distance

  • DE: ((Geschwindigkeit / 10) * (Geschwindigkeit / 10)) / 2
  • EN: ((Speed / 10) * (Speed / 10)) / 2
@igwejk
igwejk / http-decorator-with-cancellation
Created November 27, 2014 10:36
AngularJS $http Decorator with a Fluent Cancellation API
(function (angular) {
"use strict";
/**
* `app` usually should be the module defined by your root scope.
* @type @exp;angular@call;module
*/
var app = angular.module("app", [/* your app dependencies */]);
app.config(["$provide",