Skip to content

Instantly share code, notes, and snippets.

View cahitihac's full-sized avatar
💭
Everything seems fine from where I stand

Cahit cahitihac

💭
Everything seems fine from where I stand
View GitHub Profile
@cahitihac
cahitihac / azure-terraform.md
Last active February 13, 2024 17:19
Azure & Terraform

encode pfx file into base64 (useful for saving in GitHub secrets)

base64 -i SPN-certificate.pfx -o SPN-certificate.txt

create pem file for auth with azure cli using a service principle (SPN)

openssl pkcs12 -in SPN-certificate.pfx -out SPN-certificate.pem -nodes -password pass:'password'
import React from 'react';
import PropTypes from 'prop-types';
const COLORS = [
'#000',
'#1dad60',
'#1aadf2',
'#ad1d1d',
'#caea69',
'#ea69dd',
@cahitihac
cahitihac / useful-git-commands
Last active April 1, 2019 17:47
Useful Git Commands
You have made same changes in a file (or multiple files) and you want to discard the changes without commiting.
You either want to dicard the changes in a single file or all changes in all the files.
If your intention is to discard changes in a single file then do the following;
git checkout -- <file-name>
If your intention is to discard changes in all files then do the following;
git checkout -- .
---