Skip to content

Instantly share code, notes, and snippets.

View Icehunter's full-sized avatar

Ryan Wilson Icehunter

View GitHub Profile
#!/bin/sh
# Print all environment variables
echo "Environment Variables:"
env
# Alternatively, print specific environment variables
echo "MASTER: $MASTER"
echo "USERNAME: $USERNAME"
echo "PASSWORD: $PASSWORD"
FROM openjdk:17-jdk-slim
# Environment variables
ENV SWARM_VERSION=3.31
ENV SWARM_CLIENT_JAR=/usr/share/jenkins/swarm-client.jar
# Download Swarm Client JAR
RUN apt-get update && apt-get install -y curl && apt-get clean \
&& mkdir -p /usr/share/jenkins \
&& curl -L -o ${SWARM_CLIENT_JAR} https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/swarm-client/${SWARM_VERSION}/swarm-client-${SWARM_VERSION}.jar \
version: '3.8'
services:
jenkins:
image: jenkins/jenkins:lts
container_name: jenkins
ports:
- "8080:8080"
- "50000:50000"
volumes:
function Get-LostBlobs {
# Create the 'lost' directory if it doesn't exist
$lostDir = "lost"
if (-not (Test-Path $lostDir)) {
New-Item -ItemType Directory -Path $lostDir | Out-Null
}
# Run git fsck and filter for lost blobs
git fsck --lost-found | ForEach-Object {
$line = $_
Guys, this is getting really frustrating. **We need to stop committing directly to the `dev` branch**. Every time someone does this, the project gets out of sync, and now every `git pull` leads to these ridiculous merge commits that we shouldn’t have to deal with. It’s causing a ton of unnecessary conflicts and wasting everyone’s time.
We’ve talked about this before—use **feature branches**. It’s not hard, and it keeps things clean. If this keeps happening, we’re just going to keep running into the same issues, and the project will be a mess. Let’s get it together.
If you’re not sure how to use Git correctly or need a refresher, check out these resources:
1. **Git Branching Basics**:
A comprehensive guide by Atlassian on how to use Git branches for better project organization.
[Atlassian Git Branching](https://www.atlassian.com/git/tutorials/using-branches)
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "copy",
"singleLine": false
This file has been truncated, but you can view the full file.
[
{
"id": 1,
"name": "Afghanistan",
"states": [
{
"id": 3901,
"name": "Badakhshan",
"cities": [
{
### Keybase proof
I hereby claim:
* I am icehunter on github.
* I am icehunter (https://keybase.io/icehunter) on keybase.
* I have a public key ASBptmE6G3tTU0M_fyUx-Zt6HKvcMH4DQ81Alr8CiZkZvwo
To claim this, I am signing this object:
@Icehunter
Icehunter / workspace.sh
Created March 6, 2016 07:04 — forked from scottsb/casesafe.sh
Create and manage a case-sensitive disk-image on OSX.
#!/bin/bash
# ---------------------------------------------------------
# Customizable Settings
# ---------------------------------------------------------
# where to store the sparse-image
WORKSPACE=${HOME}/.workspace.dmg.sparseimage
# location where workspace will be mounted
'use strict';
// linting rules prevent modifying Object directly
var extend = Object;
extend.compact = function (obj) {
var self = this;
function compactArray(array) {
return array.filter(function (value) {