Skip to content

Instantly share code, notes, and snippets.

View sakakendo's full-sized avatar
🌴
On vacation

sakakendo

🌴
On vacation
View GitHub Profile
const puppeteer = require("puppeteer");
const request = require("request");
const fs = require("fs");
const jsdom=require('jsdom');
const {RTMClient}=require('@slack/client');
const rtm=new RTMClient(process.env.SLACK_TOKEN);
rtm.start();
var slack_id;
@sakakendo
sakakendo / broadcom-wl-dkms.sh
Created March 14, 2018 14:00 — forked from stevenmirabito/broadcom-wl-dkms.sh
Installs the broadcom-wl kernel module with DKMS
#!/bin/bash
# Installs the broadcom-wl kernel module with DKMS
# Tested under Fedora 23, will likely work with other versions/distros
# Author: Steven Mirabito <smirabito@csh.rit.edu>
# Create a work directory
mkdir -p /tmp/broadcom
cd /tmp/broadcom
# Download the module from Broadcom (http://www.broadcom.com/support/?gid=1)
" 基本コンセプト
"
" * mac/win/linux環境依存しない
" * 自分以外の人が触っても混乱しないようにする(rootで複数人が使う場合などに配慮)
" * プラグインは極力使わない(プロダクションサーバーに入れたくない)
" * プラグイン強化するくらいならその分vimの標準操作を速くできるように指を鍛えるw
" * tips混じってるけど気にしない
"
"-------基本設定--------
"タイトルをバッファ名に変更しない
@sakakendo
sakakendo / gpio.java
Created June 18, 2017 07:46 — forked from rosterloh/gpio.java
Android class for GPIO control
public class GPIO {
public String port;
public int pin;
//get direction of gpio
public String getInOut()
{
String command = String.format("cat /sys/class/gpio/%s/direction",this.port);
try {
@sakakendo
sakakendo / git_toturial
Last active May 27, 2017 11:47 — forked from guweigang/git_toturial
git命令大全
git init # ローカルのgitリポジトリを初期化(新倉庫を作成します)
git config --global user.name "xxx" # 配置用户名
git config --global user.email "xxx@xxx.com" # 配置邮件
git config --global color.ui true # git status等命令自动着色
git config --global color.status auto
git config --global color.diff auto
git config --global color.branch auto
git config --global color.interactive auto
git config --global --unset http.proxy # remove proxy configuration on git
git clone git+ssh://git@192.168.53.168/VT.git # clone远程仓库
@sakakendo
sakakendo / 0_reuse_code.js
Created May 21, 2017 10:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console