Skip to content

Instantly share code, notes, and snippets.

View ShamarKellman's full-sized avatar

Shamar Kellman ShamarKellman

View GitHub Profile
@ShamarKellman
ShamarKellman / MockSocialite.php
Created September 24, 2021 02:53 — forked from jlmaners/MockSocialite.php
Mocking Socialite
<?php
$mockSocialite = \Mockery::mock('Laravel\Socialite\Contracts\Factory');
$this->app['Laravel\Socialite\Contracts\Factory'] = $mockSocialite;
$abstractUser = Mockery::mock('Laravel\Socialite\Two\User');
$abstractUser
->shouldReceive('getId')
->andReturn(rand())
->shouldReceive('getName')
@ShamarKellman
ShamarKellman / RadioBox.vue
Created July 26, 2021 15:04 — forked from Jonarod/RadioBox.vue
Simple custom Radio component for Vue.js, compatible with v-model.
/**
* @usage:
*
* <RadioBox label="Foo" value="foo" v-model="MySelectedValue" />
* <RadioBox label="Bar" value="bar" v-model="MySelectedValue" />
* <RadioBox label="Baz" value="baz" v-model="MySelectedValue" />
*
* data(){
* return {
* MySelectedValue: "",
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[
{
"parish": "ChristChurch",
"name": "ABC Highway",
"codes": "14008, 15057, 15059, 15096, 17080, 17081, 17087, 17088, 17090, 17091, 17092, 17093"
},
{
"parish": "ChristChurch",
"name": "Amity Lodge",
"codes": "15001, 15002, 15003, 15005, 15007"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ShamarKellman
ShamarKellman / setnet
Created January 3, 2020 15:29
Set NETBIOS
Here's how to:
1. Run PowerShell as an Administrator
2. Disable NetBIOS settings: $adapters=(gwmi win32_networkadapterconfiguration )
Foreach ($adapter in $adapters){
Write-Host $adapter
$adapter.settcpipnetbios(2)
}
Enable NetBIOS settings: $adapters=(gwmi win32_networkadapterconfiguration )
Foreach ($adapter in $adapters){
Write-Host $adapter
@ShamarKellman
ShamarKellman / letsencrypt_2019.md
Created December 5, 2019 17:48 — forked from cecilemuller/letsencrypt_2020.md
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files:

@ShamarKellman
ShamarKellman / KeyMultiselect.vue
Created October 20, 2019 13:04 — forked from jacobg/KeyMultiselect.vue
Extensions for the vue-multiselect component
<template>
<multiselect
v-bind="$attrs"
v-on="listeners"
:value="completeValue"
:options="options"
:track-by="trackBy"
:taggable="taggable"
@tag="addTag"
class="key-multiselect"
@ShamarKellman
ShamarKellman / upload.component.ts
Created November 20, 2018 11:18 — forked from StephenFluin/upload.component.ts
Firebase Uploader Component with Angular 2
import { Component, Input } from '@angular/core';
import { Router } from '@angular/router';
import { AngularFire, FirebaseListObservable } from 'angularfire2';
import { Observable } from 'rxjs';
declare var firebase: any;
interface Image {
path: string;
git pull
composer install --no-dev --optimize-autoloader
php artisan optimize
php artisan route:cache
php artisan cache:clear
php artisan migrate:refresh --seed --force