Instantly share code, notes, and snippets.

View mobile_backend_storage_query_sample.php
<?php
/*
curl -X GET -G \
-H "X-NCMB-Application-Key: eda167f64692337c2bd01e25f9ebbc3d03967ca5fd2b398c7ee8c0b393127436" \
-H "X-NCMB-Timestamp: 2018-11-30T07:41:48.769Z" \
-H "X-NCMB-Signature: jQg0MIuTewb5V8NiiXy3EkcmBYdm5Uxa6Hwg2Nk4JzA=" \
-H "Content-Type: application/json" \
--data-urlencode 'createDate={"$gte":"2018-10-30","$lte":"2018-10-30"}' \
https://mbaas.api.nifcloud.com/2013-09-01/classes/first
*/
View file0.txt
mruby.handler: |
require "htpasswd.rb"
Htpasswd.new("/path/to/.htpasswd", "Realm")
View file0.txt
echo test > /var/www/html/test.html
View javaをキックするやつ
FOR /f "usebackq tokens=*" %%t IN (`where javaw`) do if not defined JAVAW set JAVAW=%%t
"%JAVAW%" -jar hoge.jar
View kirakira.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
View swift_playground.swift
import UIKit
var str = "Hello, playground"
var hoge = "aaaa"
var a = "aeefe"
var x = "aafae"
View h2o_ip_acl_sample.rb
ALLOW_IPS = %w{
192.168.1.1
}
class Acl
def call(env)
if ALLOW_IPS.include? env['REMOTE_ADDR']
[399, {}, []]
else
[403, {'Content-Type' => 'text/plain;charset=utf-8'}, ['Forbidden']]
View file0.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Receive Video</title>
</head>
<body>
View file0.txt
CredStore - performQuery - Error copying matching creds. Error=-25300, query={
class = inet;
"m_Limit" = "m_LimitAll";
"r_Attributes" = 1;
sync = syna;
}
View java8-9memo.java
package norainu;
import java.io.FileOutputStream;
import java.io.OutputStreamWriter;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.time.LocalDateTime;
import java.time.Year;
import java.time.temporal.ChronoField;