Skip to content

Instantly share code, notes, and snippets.

View dizco's full-sized avatar

Gabriel dizco

View GitHub Profile
@VidyasagarMSC
VidyasagarMSC / istioctl_windows10.md
Last active June 26, 2024 19:18
Setup Istio/istioctl on Windows 10

Download Istio

Set the environment variable

  • Copy the absolute path to the bin folder under the downloaded istio-<VERSION_NUMBER> folder e.g., C:/Users/Administrator/istio-1.0.5-win/istio-1.0.5/bin
  • In the Search on the taskbar, look and open "Edit environment variables for my account".
  • Under User variables, edit path environment variable and add a new entry pointing to the bin folder as copied above. Save the entries.
@dizco
dizco / app.component.ts
Last active December 31, 2021 06:13
Ngx-Admin and Nebular menu translation. Supports nested menu items and live reload
/**
* @license
* Copyright Akveo. All Rights Reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
import { Component, OnInit } from '@angular/core';
import { AnalyticsService } from './@core/utils/analytics.service';
import { TranslateService } from '@ngx-translate/core';
@Component({
@archy-bold
archy-bold / ExamplePassportTest.php
Last active October 15, 2022 03:49
Testing Passport Authenticated Controllers and Routes in Laravel
<?php
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class ExamplePassportTest extends \PassportTestCase
{
use DatabaseTransactions;
@odan
odan / xampp_php7_xdebug.md
Last active October 19, 2024 04:15
Installing Xdebug for XAMPP
@danharper
danharper / CatchAllOptionsRequestsProvider.php
Last active August 3, 2024 16:44
Lumen with CORS and OPTIONS requests
<?php namespace App\Providers;
use Illuminate\Support\ServiceProvider;
/**
* If the incoming request is an OPTIONS request
* we will register a handler for the requested route
*/
class CatchAllOptionsRequestsProvider extends ServiceProvider {
@banaslee
banaslee / XGH - en.txt
Last active November 12, 2024 13:00
eXtreme Go-Horse Process
eXtreme Go Horse (XGH) Process
Source: http://gohorseprocess.wordpress.com
1. I think therefore it's not XGH.
In XGH you don't think, you do the first thing that comes to your mind. There's not a second option as the first one is faster.
2. There are 3 ways of solving a problem: the right way, the wrong way and the XGH way which is exactly like the wrong one but faster.
XGH is faster than any development process you know (see Axiom 14).