Skip to content

Instantly share code, notes, and snippets.

View pavoldecky's full-sized avatar

Pavol Decky pavoldecky

View GitHub Profile
@jchandra74
jchandra74 / PowerShell Customization.md
Last active January 8, 2025 09:35
PowerShell, Cmder / ConEmu, Posh-Git, Oh-My-Posh, Powerline Customization

Pimping Up Your PowerShell & Cmder with Posh-Git, Oh-My-Posh, & Powerline Fonts

Backstory (TLDR)

I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.

For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.

Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.

@TurBas
TurBas / disabledIfNotValid.ts
Created May 11, 2017 18:49
Aurelia disable button on validation errors
import {customAttribute, inject} from 'aurelia-framework'
import {ValidationController} from 'aurelia-validation'
import * as jQuery from "jquery";
@inject(Element)
@customAttribute('disabled-if-not-valid')
export class DisabledIfNotValid {
private element: JQuery;
private controller: ValidationController;
@phuysmans
phuysmans / gist:4f67a7fa1b0c6809a86f014694ac6c3a
Created January 8, 2018 09:29
docker compose health check example
version: '2.1'
services:
php:
tty: true
build:
context: .
dockerfile: tests/Docker/Dockerfile-PHP
args:
version: cli
volumes:
@rjhilgefort
rjhilgefort / colorls-alias.sh
Last active February 7, 2023 16:22
https://github.com/athityakumar/colorls beautifies your `ls` and adds icons!
# Enable tab completion of flags
source $(dirname $(gem which colorls))/tab_complete.sh
# Move standard ls
alias ols="ls"
# Base formats
alias ls="colorls -A" # short, multi-line
alias ll="colorls -1A" # list, 1 per line
alias ld="ll" # ^^^, NOTE: Trying to move to this for alternate hand commands
alias la="colorls -lA" # list w/ info
@zoilomora
zoilomora / README.md
Last active April 20, 2025 20:46
How to disable systemd-resolved in Ubuntu

How to disable systemd-resolved in Ubuntu

Stages

  • Disable and stop the systemd-resolved service:

      sudo systemctl disable systemd-resolved.service
      sudo systemctl stop systemd-resolved
    
  • Then put the following line in the [main] section of your /etc/NetworkManager/NetworkManager.conf:

@Zerg00s
Zerg00s / App_Permissions_deployment.bat
Last active February 6, 2024 08:32
Register Azure AD App and Upload a certificate
@ECHO OFF
PowerShell.exe -Command "& '%~dpn0.ps1' -path '%~dp0'"
REM PAUSE
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
if ($host.Name -eq 'ConsoleHost')
{
Import-Module PSReadLine
}
#Import-Module PSColors
#Import-Module posh-git
Import-Module -Name Terminal-Icons
@seankearon
seankearon / AzureStorageConnectionStringParser.cs
Last active July 13, 2022 14:31
Simple Azure Storage Connection String Parser
using System;
using System.Collections.Generic;
/// <summary> Based on Patric Macvey's answer here https://stackoverflow.com/a/60998564/2608 </summary>
public class AzureStorageConnectionStringParser
{
readonly Dictionary<string, string> _values = new Dictionary<string, string>();
readonly string _connectionString;
public AzureStorageConnectionStringParser(string connectionString)
@rameshkrishna
rameshkrishna / openvpncloudlared.txt
Last active February 11, 2025 01:03
OpenVPN with Cloudflared Tunnels - No Port Fowarding - No Static IP - NO DDNS
Task:
Access OpenVPN or any Service on Home Network from Public Networks (Hotel) without configuring router and without static IP
Step 1:
Install OpenVPN on any device connected to Home Network (Raspberry mychoice with pivpn)
- Change default OpenVPN protocol from UDP to TCP (Cloudflare doesn't support UDP)
- Make a note of TCP port number (default is 443)
- Grab the OpenVPN client config file
Step 2:
Install Cloudflared on Raspberry PI
- Create a tunnel
@davidfowl
davidfowl / MinimalAPIs.md
Last active March 16, 2025 16:47
Minimal APIs at a glance