Skip to content

Instantly share code, notes, and snippets.

View 82p's full-sized avatar

82p

View GitHub Profile
@82p
82p / show-wifi-pass.ps1
Last active March 12, 2018 06:22
show wi-fi password in japanese powershell
$OutputEncoding='utf-8'
netsh wlan show profiles | %{ $_.Split(":")[1]} | `
Where-Object{$_ -ne $null -and ( $_ -notmatch "^\s*$" ) } | `
ForEach-Object{$_.trim()} | `
ForEach-Object{ netsh wlan show profile name="$_" key=clear} | `
Where-Object{ $_ -like "*主要なコンテンツ*" -or ( $_ -like "*SSID 名*" ) }
@82p
82p / index.js
Created December 20, 2017 15:25
filfullment for janken dialogflow
'use strict';
const functions = require('firebase-functions'); // Cloud Functions for Firebase library
const DialogflowApp = require('actions-on-google').DialogflowApp; // Google Assistant helper library
exports.dialogflowFirebaseFulfillment = functions.https.onRequest((request, response) => {
console.log('Dialogflow Request headers: ' + JSON.stringify(request.headers));
console.log('Dialogflow Request body: ' + JSON.stringify(request.body));
if (request.body.result) {
processV1Request(request, response);
} else if (request.body.queryResult) {
@82p
82p / app.ini
Last active April 3, 2017 09:26
APP_NAME = Gogs
RUN_USER = git
RUN_MODE = prod
[database]
DB_TYPE = postgres
HOST = 127.0.0.1:5432
NAME = gogs
USER = user
PASSWD = pass