Skip to content

Instantly share code, notes, and snippets.

View thewtex's full-sized avatar
🌞
Getting into a release groove

Matt McCormick thewtex

🌞
Getting into a release groove
View GitHub Profile
@linar-jether
linar-jether / dask_celery_scheduler.py
Created March 18, 2018 09:20
A dask distributed scheduler based on on Celery tasks - Allows reusing an existing celery cluster for ad-hoc computation
from __future__ import absolute_import, division, print_function
import multiprocessing
import pickle
from multiprocessing.pool import ThreadPool
from celery import shared_task
from dask.local import get_async # TODO: get better get
from dask.context import _globals
from dask.optimize import fuse, cull
@rohancme
rohancme / Jenkinsfile-windows.groovy
Last active November 3, 2017 02:06
A simple Windows Jenkinsfile for the Kubernetes plugin
podTemplate(label: 'windows-vs2017',
containers: [
containerTemplate(name: 'jnlp', image: '{{REPLACE-WITH-YOUR-CUSTOM-IMAGE}}',
envVars:[
containerEnvVar(key: 'HOME', value:'C:\\users\\containeradministrator'),
containerEnvVar(key: 'JENKINS_HOME', value: 'G:\\')
],
workingDir:'C:\\Jenkins\\')
],
nodeSelector: 'beta.kubernetes.io/os=windows') {
@rohancme
rohancme / Jenkinsfile-ubuntu.groovy
Last active November 3, 2017 02:06
Jenkinsfile for a Linux build with the K8S plugin
podTemplate(label: 'my-build-pod', containers: [
// This is the official jnlp base image with added support for ssh access to git repos
containerTemplate(name: 'jnlp', image: 'larribas/jenkins-jnlp-slave-with-ssh:1.0.0', args: '${computer.jnlpmac} ${computer.name}'),
// This image gives us a container with kubectl installed so we can deploy the image we build
containerTemplate(name: 'kubectl', image: 'lachlanevenson/k8s-kubectl', ttyEnabled: true, command: 'cat'),
// A docker container to build our image
containerTemplate(name: 'docker', image: 'docker', command: 'cat', ttyEnabled: true)]) {
node ('my-build-pod') {
// Store ssh credentials in Jenkins, replace GITHUB_URL with your Github Repo
git branch: "${env.BRANCH_NAME}", credentialsId: "{{JENKINS_CREDENTIALS}}", url: '{{GITHUB_URL}}'
@rohancme
rohancme / jenkins-windows-msbuild-Dockerfile
Last active September 23, 2020 01:29
My base MSBuild image
FROM microsoft/windowsservercore
# Pass in JENKINS_SECRET and JENKINS_JNLP_URL as an environment variables
# Install jre and add to PATH
# Do not recommend pushing the image to a public repository due to Oracle's EULA: http://www.oracle.com/technetwork/java/javase/documentation/index.html
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
RUN wget 'http://javadl.oracle.com/webapps/download/AutoDL?BundleId=210185' -Outfile 'C:\jreinstaller.exe' ; \
Start-Process -filepath C:\jreinstaller.exe -passthru -wait -argumentlist "/s,INSTALLDIR=c:\Java\jre1.8.0_91" ; \
FROM microsoft/windowsservercore
# Specify a public IP here so the build machine can download slave.jar
ARG BASE_URL
# Specify the internal Kubernetes service IP Address here
ARG JENKINS_JNLP_URL
ARG JENKINS_SECRET
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
@rohancme
rohancme / jenkins-ubuntu-agent-Dockerfile
Last active November 3, 2017 02:07
Jenkins Ubuntu slave
FROM jenkinsci/jnlp-slave
ENV JENKINS_AGENT_NAME ubuntu-agent
## Location to download slave.jar from
ARG JENKINS_URL
ARG JENKINS_SECRET
@rohancme
rohancme / jenkins-master-deployment.yaml
Created July 15, 2017 01:37
Jenkins master Kubernetes deployment file
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: jenkins-master
namespace: ci
spec:
template:
metadata:
labels:
name: jenkins-master
@dmnsgn
dmnsgn / WebGL-WebGPU-frameworks-libraries.md
Last active September 26, 2025 09:52
A collection of WebGL and WebGPU frameworks and libraries

A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.

Engines and libraries ⚙️

Name Stars Last Commit Description
three.js ![GitHub
@nl5887
nl5887 / transfer.fish
Last active July 30, 2024 09:21
Bash and zsh alias for transfer.sh. Transfers files and directories to transfer.sh.
function transfer
if test (count $argv) -eq 0
echo "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"
return 1
end
## get temporarily filename, output is written to this file show progress can be showed
set tmpfile ( mktemp -t transferXXX )
## upload stdin or file
@myusuf3
myusuf3 / delete_git_submodule.md
Created November 3, 2014 17:36
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule