Skip to content

Instantly share code, notes, and snippets.

View bugrauluyurt's full-sized avatar
🏠
Working from home

Bugra Uluyurt bugrauluyurt

🏠
Working from home
View GitHub Profile
@bugrauluyurt
bugrauluyurt / default.json
Created January 27, 2024 02:48
oh-my-posh default config
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"newline": true,
"segments": [
{
"type": "dotnet",
"style": "diamond",
@bugrauluyurt
bugrauluyurt / Microsoft.PowerShell_profile.ps1
Last active February 28, 2024 18:29
Powershell Profile
Import-Module -Name Terminal-Icons
Import-Module PSReadLine
oh-my-posh init pwsh --config 'C:/Users/bugra/repos/oh-my-posh/themes/1_shell.omp.json' | Invoke-Expression
fnm env --use-on-cd | Out-String | Invoke-Expression
# Increase history
$MaximumHistoryCount = 10000
# Produce UTF-8 by default
@bugrauluyurt
bugrauluyurt / helpers.ts
Last active January 12, 2020 06:40
Seed collections to MongoDB with Node
import * as chalk from "chalk";
import * as moment from "moment";
import { Chalk } from "chalk";
export const firstLetterUpperCase = (str: string): string => {
const firstLetter = str.substring(0, 1).toUpperCase();
const remainingLetters = str.substring(1, str.length);
return `${firstLetter}${remainingLetters}`;
};
# Install postgres 9.6
brew install [email protected]
# Configure OpenSSL. Put below mentioned vars into your .bashrc
export PATH="/usr/local/opt/openssl/bin:$PATH"
# For compilers to find openssl you may need to set:
export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"
# For pkg-config to find openssl you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"
# Path to your oh-my-zsh installation.
export ZSH=/Users/bugrauluyurt/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="agnoster"
# Uncomment the following line to use case-sensitive completion.