Skip to content

Instantly share code, notes, and snippets.

View yuta-imai's full-sized avatar

Yuta Imai yuta-imai

View GitHub Profile
@yuta-imai
yuta-imai / WioLTE-J_EC21-J_AT_debug.ino
Created January 29, 2021 08:07 — forked from ma2shita/WioLTE-J_EC21-J_AT_debug.ino
AT debug console for EC21-J on WioLTE
/*
Working exapmle on Console;
```
>> Waiting for AT command
+CPIN: READY
+QUSIM: 1
import argparse
import json
import re
import requests
import logging
logging.basicConfig(level=logging.DEBUG)
API = "https://api.soracom.io/v1"
import json
import urllib3
api = 'https://api.soracom.io/v1'
auth_key_id = "keyId-xxxxxxx"
auth_key = "secret-xxxxxxxx"
target_imsi = '111111111111111'
@yuta-imai
yuta-imai / config-git-proxy.txt
Created April 29, 2019 13:49 — forked from bynil/config-git-proxy.txt
Use git over socks5 proxy
Port: 1080
1. Create a file /YOUR PATH/gitproxy.sh with content:
#!/bin/sh
nc -X 5 -x 127.0.0.1:1080 "$@"
2. Edit your ~/.gitconfig
# For git://
import boto3
import requests
import time
from datetime import datetime
from dateutil.tz import tzlocal
from picamera import PiCamera
region_name = 'YOUR_AWS_REGION'
s3_bucket_name = 'YOUR_S3_BUCKET'
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
package imaifactory.spark
import com.google.gson.{Gson, JsonElement, JsonObject}
import org.apache.spark.SparkConf
import org.apache.spark.serializer.KryoSerializer
import org.apache.spark.sql.SparkSession
object YarnProblemRepro extends App {
package imaifactory.examples
import org.apache.spark.streaming._
import org.apache.spark.streaming.kinesis._
import com.amazonaws.services.kinesis.clientlibrary.lib.worker.InitialPositionInStream
import org.apache.spark.SparkConf
import org.apache.spark.sql.SparkSession
import org.apache.spark.storage.StorageLevel
object JsonStreamConsumerExample extends App {
@yuta-imai
yuta-imai / hive-default.xml
Created December 5, 2016 22:48
Copy from HDP2.5.3
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?><!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
if (& Get-WMIObject win32_potsmodem){ C:\Windows\System32\rasphone.exe -d USBDEVICE }