Skip to content

Instantly share code, notes, and snippets.

View xavidram's full-sized avatar

Xavid Ramirez xavidram

View GitHub Profile
@iamnabink
iamnabink / auth_retry_interceptor.dart
Last active May 26, 2025 09:22
Auth Refresh Token Retry Interceptor using Dio Package
/// Author: Nabraj Khadka
/// Created: 28.05.2023
/// Description: Auth Interceptor
///
import 'package:project/app/api/interceptors/pretty_dio_logger.dart';
import 'package:project/app/configs/api_endpoints.dart';
import 'package:project/app/storage/storage_const.dart';
import 'package:project/app/view/dialogs/toast.dart';
import 'package:project/features/auth/domain/repositories/token_repository.dart';
@bchavez
bchavez / MapMaker.csproj
Last active February 11, 2022 17:56
Using Bogus.Locations to generate random points in a 3 mile radius
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Bogus" Version="28.4.4" />
<PackageReference Include="Bogus.Locations" Version="28.4.4.8" />
@Mau5Machine
Mau5Machine / docker-compose.yml
Last active July 17, 2025 20:13
Traefik Configuration and Setup
version: "3.3"
services:
################################################
#### Traefik Proxy Setup #####
###############################################
traefik:
image: traefik:v2.0
restart: always
@timwis
timwis / App.vue
Created February 19, 2019 12:51
Using mapbox-gj-leaflet with Vue2Leaflet
<template>
<LMap id="map" :center="center" :zoom="zoom">
<LTileLayer
:options="layerOptions"
:tile-layer-class="tileLayerClass" />
</LMap>
</template>
<script>
import { LMap, LTileLayer } from 'vue2-leaflet'
@jamielaundon
jamielaundon / create-pfx
Created January 22, 2016 22:02
Create IIS .pfx from Let's Encrypt fullchain and privkey
sudo openssl pkcs12 -export -in /etc/letsencrypt/live/domain.com/fullchain.pem -inkey /etc/letsencrypt/live/domain.com/privkey.pem -out domain.com.pfx