This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Working exapmle on Console; | |
``` | |
>> Waiting for AT command | |
+CPIN: READY | |
+QUSIM: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import json | |
import re | |
import requests | |
import logging | |
logging.basicConfig(level=logging.DEBUG) | |
API = "https://api.soracom.io/v1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import urllib3 | |
api = 'https://api.soracom.io/v1' | |
auth_key_id = "keyId-xxxxxxx" | |
auth_key = "secret-xxxxxxxx" | |
target_imsi = '111111111111111' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (& Get-WMIObject win32_potsmodem){ C:\Windows\System32\rasphone.exe -d USBDEVICE } |
NewerOlder