Skip to content

Instantly share code, notes, and snippets.

@recca0120
recca0120 / Windows10-Setup.ps1
Created July 6, 2020 17:58 — forked from NickCraver/Windows10-Setup.ps1
(In Progress) PowerShell Script I use to customize my machines in the same way for privacy, search, UI, etc.
##################
# Privacy Settings
##################
# Privacy: Let apps use my advertising ID: Disable
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0
# To Restore:
#Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1
# Privacy: SmartScreen Filter for Store Apps: Disable
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0
@recca0120
recca0120 / Windows10AWSEC2.md
Created July 4, 2020 04:00 — forked from peterforgacs/Windows10AWSEC2.md
Running Windows 10 on AWS EC2

Running Windows 10 on AWS EC2

Downloading the image

Download the windows image you want.

AWS vmimport supported versions: Microsoft Windows 10 (Professional, Enterprise, Education) (US English) (64-bit only)

So Home wont work.

@recca0120
recca0120 / Parameter.php
Last active February 14, 2020 13:58
php Array key 自動轉換 studly, camel, snake, kebab case
<?php
use ArrayAccess;
class Parameter implements ArrayAccess
{
const STUDLY = 1;
const CAMEL = 2;
const SNAKE = 3;
const KEBAB = 4;
import {
HTTP_INTERCEPTORS,
HttpClient,
HttpParams,
} from '@angular/common/http';
import {
HttpClientTestingModule,
HttpTestingController,
} from '@angular/common/http/testing';
import { ProblemNode } from './ProblemMatcher';
import { TestNode, TestSuiteNode } from './Parser';
import { TestEvent, TestSuiteEvent } from './TestExplorer';
export declare type Node = TestSuiteNode | TestNode | ProblemNode;
export declare type TestInfo = Node | TestSuiteEvent | TestEvent;
export class TestEventCollection {
private events: Map<string, TestSuiteEvent | TestEvent> = new Map();
import files from './Filesystem';
import { TestRunner } from './TestRunner';
import { Problem } from './ProblemMatcher';
import { SpawnOptions } from 'child_process';
import { Test, TestSuite } from './Parser';
import { TestEventCollection } from './TestEventCollection';
import { TestResponse } from './TestResponse';
import { TestSuiteCollection } from './TestSuiteCollection';
import {
Connection,
@recca0120
recca0120 / .php_cs.dist
Created February 7, 2019 12:52
php-cs-fixer for laravel
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$rules = [
'array_syntax' => [
'syntax' => 'short',
],
'binary_operator_spaces' => [
@recca0120
recca0120 / .vimrc
Created February 4, 2019 23:06 — forked from JeffreyWay/.vimrc
My .vimrc file
set nocompatible " Disable vi-compatibility
set t_Co=256
colorscheme xoria256
set guifont=menlo\ for\ powerline:h16
set guioptions-=T " Removes top toolbar
set guioptions-=r " Removes right hand scroll bar
set go-=L " Removes left hand scroll bar
set linespace=15
@recca0120
recca0120 / notes.md
Created August 28, 2018 17:18 — forked from inecmc/notes.md
How to run multiple Redis instances on Ubuntu 16.04

Create the directory for the new instance

$ sudo install -o redis -g redis -d /var/lib/redis2

Create a new configuration file

$ sudo cp -p /etc/redis/redis.conf /etc/redis/redis2.conf
@recca0120
recca0120 / BadEgg.php
Last active August 10, 2018 09:01
聖佑愛吃蛋
<?php
class BadEgg implements Egg
{
public function eaten()
{
return 'Unsatisfy';
}
}