View t490-arch-install-steps.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# These are the steps I take to install a fresh copy of Arch Linux on to a Lenovo Thinkpad T490 | |
# Spec: i7; 40gb RAM; | |
# This will go from the very start up to having a base installation ready to add you chosen window manager or desktop environment. | |
# Make a bootable usb stick with the latest version of Arch Linux on. | |
# Plug to into computer and boot. | |
# Connecting to Internet (wifi) | |
iwctl device list |
View example.r
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library("tidyverse") | |
data <- read.csv("props.csv") | |
data %>% | |
filter(Semi_Detached_Average_Price < 200000) %>% | |
filter(Semi_Detached_Average_Price > 180000) %>% | |
filter( | |
Region_Name == "Warwickshire" | | |
Region_Name == "Staffordshire" | | |
Region_Name == "London" | |
) %>% |
View test gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use DavidPeach\Fluid\MyProcessor; | |
require_once '../vendor/autoload.php'; | |
$process = new MyProcessor(10); |
View Installation.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# These are the steps I take to install a fresh copy of Arch Linux on to my Lenovo Thinkpad T470 | |
# Spec: i5; 16gb RAM; Integrated Intel 620 graphics; SSD; | |
# This will go from the very start up to having a base installation ready to add you chosen window manager or desktop environment. | |
# Make a bootable usb stick with the latest version of Arch Linux on. | |
# Plug to into computer and boot. | |
# Connecting to Internet (wifi) | |
iwctl device list |
View laravel-ci.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
branches: [ "*" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
setup: |
View laravel-ci.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Laravel | |
on: | |
push: | |
branches: [ "*" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
setup: |
View web.phpstormtest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Support\Facades\Route; | |
/* | |
|-------------------------------------------------------------------------- | |
| Web Routes | |
|-------------------------------------------------------------------------- | |
| | |
| Here is where you can register web routes for your application. These |
View index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# When hitting the websocket endpoint, the key generated seems to often get messed up. | |
# Sometimes like this: | |
883a ff42 4864 0162 8659 a29b 3900 73e4 | |
3fff 9634 11dd 4285 fefc 3d4a ff63 6fd5 | |
# More often like this: | |
³B1¿Ç?Àam¢å¡öY9ì©zŒ uö1ve‹…µ |
View ViewPostsTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Tests\Feature; | |
use App\Models\Post; | |
use Illuminate\Database\Eloquent\Collection; | |
use Illuminate\Database\Eloquent\Factories\HasFactory; | |
use Illuminate\Foundation\Testing\RefreshDatabase; | |
use Illuminate\Foundation\Testing\WithFaker; | |
use Tests\TestCase; |
View wp-disable-emojis-plugin.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Disable Emojis | |
Plugin URI: https://davidpeach.co.uk | |
Description: Stop the connection to w.org through emojis | |
Version: 1.0.0 | |
Author: David Peach | |
Author URI: https://davidpeach.co.uk | |
License: GNU | |
*/ |
NewerOlder