Skip to content

Instantly share code, notes, and snippets.

@jeyaramashok
jeyaramashok / ocp-k8s-version.md
Last active May 19, 2024 07:35
openshift kubernetes version mapping
Red Hat OpenShift version Kubernetes version
4.15 1.28
4.14 1.27
4.13 1.26
4.12 1.25
4.11 1.24
4.10 1.23
4.9 1.22
4.8 1.21
@luismts
luismts / GitCommitBestPractices.md
Last active May 19, 2024 07:35
Git Tips and Git Commit Best Practices

Git Commit Best Practices

Basic Rules

Commit Related Changes

A commit should be a wrapper for related changes. For example, fixing two different bugs should produce two separate commits. Small commits make it easier for other developers to understand the changes and roll them back if something went wrong. With tools like the staging area and the ability to stage only parts of a file, Git makes it easy to create very granular commits.

Commit Often

Committing often keeps your commits small and, again, helps you commit only related changes. Moreover, it allows you to share your code more frequently with others. That way it‘s easier for everyone to integrate changes regularly and avoid having merge conflicts. Having large commits and sharing them infrequently, in contrast, makes it hard to solve conflicts.

@davispuh
davispuh / steam_console_params.txt
Last active May 19, 2024 07:30
Steam client parameters, consoles commands and variables
-480p - Run tenfoot in 480p rather than 1080p
-720p - Run tenfoot in 720p rather than 1080p
-accesscode -
-all_languages - show longest loc string from any language
-batterytestmode - rapidly cycle battery percentages for testing
-bigpicture - Start in Steam Big Picture mode
-blefw -
-cafeapplaunch - Launch apps in a cyber cafe context
-candidates - Show libjingle candidates for local connection as they are processed
-ccsyntax - Spew details about the localized strings we load
@rawaludin
rawaludin / psd2png.sh
Created July 11, 2013 05:56
Batch Convert PSD to PNG in Mac OS X
#!/bin/bash
for i in *psd
do
name=${i%.psd}
convert "$name.psd[0]" -resize 100% "$name.png"
done
@mickeypash
mickeypash / gist:b0b22ab84495fe4b033895a79dd78468
Last active May 19, 2024 07:26
George Hotz - talking hour - 2020-08-31
@FreddieOliveira
FreddieOliveira / docker.md
Last active May 19, 2024 07:24
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@aishwarya8615
aishwarya8615 / Life_Expectancy_Data.csv
Last active May 19, 2024 07:24
Life Expectancy Data
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 23 columns, instead of 13. in line 6.
Country,Continent,Year,Status,Life_expectancy ,Adult_Mortality,infant_deaths,Alcohol,percentage_expenditure,Hepatitis_B,Measles , BMI ,under_five_deaths ,Polio,Total_expenditure,Diphtheria , HIV/AIDS,GDP,Population, thinness 1-19 years, thinness 5-9 years,Income_composition_of_resources,Schooling
Afghanistan,Asia,2015,Developing,65,263,62,0.01,71.27962362,65,1154,19.1,83,6,8.16,65,0.1,584.25921,33736494,17.2,17.3,0.479,10.1
Afghanistan,Asia,2014,Developing,59.9,271,64,0.01,73.52358168,62,492,18.6,86,58,8.18,62,0.1,612.696514,327582,17.5,17.5,0.476,10
Afghanistan,Asia,2013,Developing,59.9,268,66,0.01,73.21924272,64,430,18.1,89,62,8.13,64,0.1,631.744976,31731688,17.7,17.7,0.47,9.9
Afghanistan,Asia,2012,Developing,59.5,272,69,0.01,78.1842153,67,2787,17.6,93,67,8.52,67,0.1,669.959,3696958,17.9,18,0.463,9.8
Afghanistan,Asia,2011,Developing,59.2,275,71,0.01,7.097108703,68,3013,17.2,97,68,7.87,68,0.1,63.537231,2978599,18.2,18.2,0.454,9.5
Afghanistan,Asia,2010,Developing,58.8,279,74,0.01,79.67936736,66,1989,16.7,102
@johnbeynon
johnbeynon / add_domain.rb
Last active May 19, 2024 07:24
Add custom domain to Render preview environment app
#!/usr/bin/ruby
# Script to add a custom domain to a preview environment web service. Use it via the buildCommand
#
# Resultant custom domain added to the service will be:
# <servicename>-pr-<number>.prs.mydomain.com
#
# Setup:
#
# Add a wildcard DNS entry to your domain, something like *.prs.mydomain.com pointing to 216.57.24.1
@tsuriga
tsuriga / config.ini
Created March 20, 2016 13:48
Simple config file validation in python
[DEFAULT]
; Operation mode
; This is a global value for all sections
mode = master
[server]
; Connection lifetime
timeout = 3600