チャンネル | 型 | 備考 |
---|---|---|
0-7 | int32 | 点灯制御(値:0=消灯 1=点灯 2=点滅 3=PWMモード) |
8-15 | int32 | 点滅間隔制御(値: ms単位での点滅周期) |
16-23 | int32 | PWMモード duty (値: 0-100%) |
This file contains hidden or 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
TOKEN="access-token" | |
SECRET="access-secret" | |
ZONE="is1b" | |
ID="resource-id" | |
NAME=$1 | |
VALUE=$2 | |
RESULT=`curl --user "${TOKEN}":"${SECRET}" https://secure.sakura.ad.jp/cloud/zone/${ZONE}/api/cloud/1.1/commonserviceitem/${ID} 2>/dev/null | \ | |
python dns_filter.py "${NAME}" "${VALUE}" | \ |
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 hidden or 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
cd /usr/src | |
wget http://content.mellanox.com/ofed/MLNX_OFED-4.0-2.0.2.0/MLNX_OFED_LINUX-4.0-2.0.2.0-ubuntu17.04-x86_64.tgz | |
tar xzf MLNX_OFED_LINUX-4.0-2.0.2.0-ubuntu17.04-x86_64.tgz | |
cd MLNX_OFED_LINUX-4.0-2.0.2.0-ubuntu17.04-x86_64 | |
cd src | |
tar xzf MLNX_OFED_SRC-4.0-2.0.2.0.tgz | |
cd MLNX_OFED_SRC-4.0-2.0.2.0 | |
cd SOURCES | |
tar xzf kernel-mft_4.6.0.orig.tar.gz | |
cd kernel-mft-4.6.0 |
This file contains hidden or 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 main | |
import ( | |
"fmt" | |
"image" | |
"image/png" | |
"io/ioutil" | |
"os" | |
"strings" |
This file contains hidden or 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
cd /usr/src | |
wget http://www.mellanox.com/downloads/ofed/MLNX_EN-3.4-2.0.0.0/mlnx-en-3.4-2.0.0.0-ubuntu16.10-x86_64.tgz | |
tar xzf mlnx-en-3.4-2.0.0.0-ubuntu16.10-x86_64.tgz | |
cd mlnx-en-3.4-2.0.0.0-ubuntu16.10-x86_64/src/ | |
tar xzf MLNX_OFED_SRC-3.4-2.0.0.0.tgz | |
cd MLNX_OFED_SRC-3.4-2.0.0.0/SOURCES/ | |
tar xzf mlnx-en_3.4.orig.tar.gz | |
cd mlnx-en-3.4/ | |
./scripts/mlnx_en_patch.sh | |
make -j8 |
This file contains hidden or 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
#uselib "user32" | |
#cfunc FindWindow "FindWindowA" int, str | |
#func keybd_event "keybd_event" int, int, int, int | |
#func SetForegroundWindow "SetForegroundWindow" int | |
repeat | |
h = FindWindow(0, "PuTTY Fatal Error") | |
if h = 0: break | |
SetForegroundWindow h |
This file contains hidden or 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
// 略 | |
/****************************************************************************/ | |
/*** Macro Definitions ***/ | |
/****************************************************************************/ | |
//#define HTS_DATA_DIO_BIT_MASK (1 << 12) | |
//#define HTS_CLK_DIO_BIT_MASK (1 << 13) | |
#define HTS_DATA_DIO_BIT_MASK E_AHI_DIO8_INT |
This file contains hidden or 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
#include <windows.h> | |
#include <stdio.h> | |
void sendtxt(char *txt); | |
void pushkey(byte code); | |
void alldel(); | |
void main() | |
{ | |
FILE *fp; |
This file contains hidden or 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
// SMTPでメールを送信する: .NET Tips: C#, VB.NET | |
// http://dobon.net/vb/dotnet/internet/smtpmail.html | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net.Mail; | |
using System.Net.Sockets; | |
using System.Text; | |
using System.Threading.Tasks; |