Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

yaasita yaasita

💭
I may be slow to respond.
Block or report user

Report or block yaasita

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View check.js
"use strict";
const fetch = require("node-fetch");
const url = new URL("https://api.github.com/users/yaasita/repos");
const params = {
page: 1,
per_page: 100
};
url.search = new URLSearchParams(params);
(async () => {
View app.js
const express = require('express')
const app = express()
const port = 3000
app.get('/', (req, res) => res.send('Hello World!'))
app.listen(port, '0.0.0.0', () => console.log(`Example app listening on port ${port}!`))
View index.js
"use strict";
const jose = require("jose");
const fetch = require("node-fetch");
const key = require("/path/to/service-account.json");
(async () => {
const privateKey = jose.JWK.asKey(key.private_key);
const k = jose.JWT.sign(
{
scope: "https://www.googleapis.com/auth/cloud-platform"
},
View 2-m30saidai.pdf.txt
JVBERi0xLjcKJeLjz9MKMSAwIG9iago8PC9Qcm9kdWNlcihpVGV4dFNoYXJwkiA1LjUuMTMgqTIw
MDAtMjAxOCBpVGV4dCBHcm91cCBOViBcKEFHUEwtdmVyc2lvblwpOyBtb2RpZmllZCB1c2luZyBp
VGV4dFNoYXJwkiA1LjUuMTMgqTIwMDAtMjAxOCBpVGV4dCBHcm91cCBOViBcKEFHUEwtdmVyc2lv
blwpKS9DcmVhdGlvbkRhdGUoRDoyMDE5MDkyOTE1MTUwOCswOScwMCcpL01vZERhdGUoRDoyMDE5
MDkyOTE1MTUwOCswOScwMCcpL1RpdGxlKCkvU3ViamVjdCgpL0tleXdvcmRzKCkvQ3JlYXRvcihD
dWJlUERGKS9BdXRob3IoKT4+CmVuZG9iagoxMSAwIG9iago8PC9GaWx0ZXIvRmxhdGVEZWNvZGUv
TGVuZ3RoIDI0MDY+PnN0cmVhbQp4nIWZzc7ethFG974K30Ek/hMIuEk3WbQo2t6AxJ/Ai9iGkyx6
9505MymQdNEP8AH0mBwNHw5JSe93P/z4lx8/f/r143d///Zl/nP/+vF8+ry+7V++/PZt7o/v/unT
5w93+Lg+zV/9Cs6fn68fvvvhr8/Xf/376/4oDfax6789P+/v/pEqym195pe1f/n6zP3t+fzT/vD9
JX/j+yN/48P+vP703/d1Wbf3/N7+TWs405a+KuU8nCJ1k8pwivQglTicad8NqV7DmXZYJrXhTDta
View d.pl
#!/usr/bin/perl
use strict;
use warnings;
use feature qw(:5.10);
use utf8;
my ($n1, $n2);
{
my $line = <STDIN>;
($n1, $n2) = split(/\s+/, $line);
View exec.sh
#!/bin/bash
export MAIN1="exportした変数"
MAIN2="普通の変数"
exec ./sub.sh
echo "この行は実行されない"
View chef.snip
snippet template
template "${1:#:condition}" do
source "script.erb"
owner "root"
group "root"
mode "0644"
variables(
:dbname => node['hoge']['mysql_create_database'],
:dbuser => node['hoge']['mysql_create_database'],
:dbpass => node['hoge']['mysql_create_database'],
View squid.conf.diff
diff --git a/squid/squid.conf b/squid/squid.conf
index c9bc262..66adc26 100644
--- a/squid/squid.conf
+++ b/squid/squid.conf
@@ -1408,7 +1408,7 @@ include /etc/squid/conf.d/*
http_access allow localhost
# And finally deny all other access to this proxy
-http_access deny all
+http_access allow all
View ore_gcp-snapshot-backup.pl
#!/usr/bin/perl
use strict;
use warnings;
use feature qw(say);
use JSON qw/decode_json/;
### Initial Settings ###
my $ZONE = shift;
my $TARGET_DISK = shift;
my $SAVE_NUMBER = shift;
########################
View main.js
"use strict";
const fs = require("fs");
const zlib = require("zlib");
const path = require("path");
(async () => {
console.log(
[
"ログファイル",
"リージョン",
You can’t perform that action at this time.