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 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(
[
"ログファイル",
"リージョン",
View app-type.md
type client_secret(Authorizationヘッダ内) 認証
CONFIDENTIAL OK
CONFIDENTIAL NG
PUBLIC OK
PUBLIC OK
View ProfessorBanditBakery.txt
Mi4wMTl8fDE1NTcxNTI2ODc4MDg7MTU1NzE1MjY4NzgwODsxNTU5MzE2NjQxMzQ3O1Byb2Zlc3NvciBCYW5kaXQ7cnFhbXB8MDAxMTAwMDAxMDAwMDAwMDAxMDAwfDExNjgzMzk3MzMxNDMyOTc4OzE0Nzk0MzU1ODkyMTQ4MjQ0MDAwOzEwNzQzOzEzNzsyMDQ5NzkyNjUyNzEyNTY5OzEwNzEzOzA7MDswOzM7NDswOzA7LTE7MDsxMzc7MTE3OTc5Mjg0NTc4MTczODgwMDsxMDg7MDswOzA7MDs7MDswOzA7MDswOzA7MDstMTstMTstMTstMTstMTswOzA7MDswOzUwOzA7MDsyMDsyNTsxNTU5MzAzOTQ5ODQ4OzA7MDs7Mzc7fDIxOSwyMTksODY4Njk4MjU4MDU1Njg0LDAsLDA7MjE0LDIxNCwxNTc5NzE1NjY2MzU4MDQ1OCwwLCwxOzE5MywxOTMsMTc4ODU4ODI5MjI1MSwwLCwxOzE3MiwxNzIsNDU0NjYxMTc5MDcyMCwwLCwxOzE1OCwxNTgsMTY0NzAwODM2ODk2MjIsMCwsMTsxNDQsMTQ0LDU2NzY5NTI4MjM4ODE5LDAsLDE7MTIzLDEyMywyMTM2NjM3NzU1MDM3MjksMSw4LzEwLzIgMyAxNTU3NTY1OTI3MTMxIDAsMTsxMDAsMTAwLDYxNjI4MDM2Njg5MDc1NSwwLCwxOzgzLDgzLDI2NzAxNTAxMTcxMzc2NDEsMCwsMTs2OSw2OSwxMTkwNzI5ODcwNTcyMjU4NiwxLCwxOzU3LDU3LDM5NDYxODYzOTUyMDU1NTc2LDAsLDE7NDQsNDQsMTEzMjgzNjY0NjY0NjcwNDUwLDAsLDE7MzAsMzAsMzA5ODYxNDE5NDY4MTAyOTAwLDIsLDE7MjEsMjEsNTI4NTM4ODQ1NTEyNDkzNTAwLDAsLDE7MTcsMTcsODY4MjQzMTU3ODI4NTg2NjAwLDAsLDE7OSw5LDEyNjA0MTgxNTQ
View index.js
"use strict";
const express = require("express");
const util = require("util");
const exec = util.promisify(require("child_process").exec);
const app = express();
app.get("/", async (req, res) => {
const wait_time = parseInt(req.query.wait) || 150;
let state = false;
cmd(wait_time, () => {
View hiduke.sh
#!/bin/bash
set -eu
function before2weeks {
if [[ $1 =~ 20[0-9]{6} ]];then
local file_date=${BASH_REMATCH[0]}
if [ $file_date -le $(date +%Y%m%d -d "2 weeks ago") ];then
return 0
fi
fi
You can’t perform that action at this time.