Skip to content

Instantly share code, notes, and snippets.

View chrome050's full-sized avatar

Alexander Richter chrome050

View GitHub Profile
@faizanakram99
faizanakram99 / TranslationConfigCacheFactory.php
Created June 30, 2022 16:09
Example of ConfigCacheFactory for overriding translation cache for multi-tenant app with tenant specific translations
<?php
namespace Yup\Translation;
use Symfony\Component\Config\ConfigCacheFactoryInterface;
use Symfony\Component\Config\ConfigCacheInterface;
class TranslationConfigCacheFactory implements ConfigCacheFactoryInterface
{
private ConfigCacheFactoryInterface $configCacheFactory;
@kevinmutlow
kevinmutlow / ExtSearchBar.xaml
Last active June 25, 2020 16:09
Custom SearchBar for Xamarin.Forms with Filter icon and auto-search on text changed
<?xml version="1.0" encoding="UTF-8"?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="App.Core.Controls.ExtSearchBar"
x:Name="Root">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="50" />
</Grid.RowDefinitions>
@graceavery
graceavery / harryPotterAliases
Last active May 10, 2023 02:51
bash aliases for Harry Potter enthusiasts
alias accio=wget
alias avadaKedavra='rm -f'
alias imperio=sudo
alias priorIncantato='echo `history |tail -n2 |head -n1` | sed "s/[0-9]* //"'
alias stupefy='sleep 5'
alias wingardiumLeviosa=mv
alias sonorus='set -v'
alias quietus='set +v'
@evanscottgray
evanscottgray / restsharp_tls12.md
Last active January 10, 2017 07:36
forcing tls 1.2
@unbracketed
unbracketed / export_repo_issues_to_csv.py
Last active August 3, 2023 18:13
Export Issues from Github repo to CSV (API v3)
"""
Exports Issues from a specified repository to a CSV file
Uses basic authentication (Github username + password) to retrieve Issues
from a repository that username has access to. Supports Github API v3.
"""
import csv
import requests