Skip to content

Instantly share code, notes, and snippets.

@cahitbeyaz
cahitbeyaz / generate-certificate-chain.sh
Created Jun 25, 2021 — forked from granella/generate-certificate-chain.sh
Create self-signed certificate with root and ca for development
View generate-certificate-chain.sh
#!/bin/bash
rm *.jks 2> /dev/null
rm *.pem 2> /dev/null
echo "===================================================="
echo "Creating fake third-party chain root -> ca"
echo "===================================================="
# generate private keys (for root and ca)
@cahitbeyaz
cahitbeyaz / aggrid.tr.js
Created Nov 4, 2020
AgGrid localeText i18n Turkish Türkçe
View aggrid.tr.js
var AG_GRID_LOCALE_TR = {
// Set Filter
selectAll: '(Hepsini Seç)',
selectAllSearchResults: '(Tüm Arama Sonuçlarını Seç)',
searchOoo: 'Ara...',
blanks: '(Boş)',
noMatches: 'Eşleşme yok',
// Number Filter & Text Filter
filterOoo: 'Filtrele...',
View docker-delete-everything.sh
# changed to windows scripts credits to: https://gist.github.com/beeman/aca41f3ebd2bf5efbd9d7fef09eac54d
# Stop all containers
docker stop $(docker ps -qa)
# Remove all containers
docker rm $(docker ps -qa)
# Remove all images
docker rmi -f $(docker images -qa)
View turkish-toLower-toUpper.ts
declare global {
interface String {
turkishToLower(): string;
turkishToUpper(): string;
}
}
String.prototype.turkishToLower = function () {
var string = this;
var letters = { "İ": "i", "I": "ı", "Ş": "ş", "Ğ": "ğ", "Ü": "ü", "Ö": "ö", "Ç": "ç" };