Skip to content

Instantly share code, notes, and snippets.

View migasun's full-sized avatar

Wang Chia Hsiang migasun

View GitHub Profile
@doggy8088
doggy8088 / ghcs.ps1
Created September 6, 2024 04:43
支援預設使用 PowerShell 執行環境的 GitHub Copilot Suggest Cmdlets,從 gh copilot alias 產生範本並加入預設 Prompt,請在下載後加入檔案到 $HOME\Documents\PowerShell\Scripts 目錄即可。
# Debug support provided by common PowerShell function parameters, which is natively aliased as -d or -db
# https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-7.4#-debug
param(
[ValidateSet('gh', 'git', 'shell')]
[Alias('t')]
[String]$Target = 'shell',
[Parameter(Position=0, ValueFromRemainingArguments)]
[string]$Prompt
)
@justinatack
justinatack / Quasar Framework Login & Registration Form Card Component Example
Last active August 27, 2022 23:07
Quasar Framework Login & Registration Form Card Component Example
<template>
<q-page
class="window-height window-width row justify-center items-center"
style="background: linear-gradient(#8274C5, #5A4A9F);"
>
<div class="column q-pa-lg">
<div class="row">
<q-card square class="shadow-24" style="width:300px;height:485px;">
<q-card-section class="bg-deep-purple-7">
<h4 class="text-h5 text-white q-my-md">Company &amp; Co</h4>
@nghuuphuoc
nghuuphuoc / 1) Install
Last active September 4, 2023 09:29
Install Redis on Centos 6
// --- Compiling ---
$ wget http://download.redis.io/releases/redis-2.8.3.tar.gz
$ tar xzvf redis-2.8.3.tar.gz
$ cd redis-2.8.3
$ make
$ make install
// --- or using yum ---
$ rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
$ rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm