Skip to content

Instantly share code, notes, and snippets.

View wwin3286tw's full-sized avatar
🎇
LifeHacking

Jack wwin3286tw

🎇
LifeHacking
  • Wiwynn
  • Taiwan
  • 18:39 (UTC +08:00)
View GitHub Profile
@wwin3286tw
wwin3286tw / remote_bash.sh
Created July 17, 2018 12:54 — forked from n0ts/remote_bash.sh
execute bash script from remote site
# http://stackoverflow.com/questions/5735666/execute-bash-script-from-url
bash <(curl -s http://mywebsite.com/myscript.txt)
# http://stackoverflow.com/questions/4642915/passing-parameters-to-bash-when-executing-a-script-fetched-by-curl
curl http://foo.com/script.sh | bash -s arg1 arg2

1. 本機初始環境建置(可選)

  • 作業系統
    • 本篇是對於 Ubuntu 16.04.3 全新安裝的主機所編寫的
  • 常用工具安裝
#apt-fast 安裝,多連線緒下載套件
sudo add-apt-repository ppa:apt-fast/stable
sudo apt-get update
sudo apt-get -y install apt-fast
  • 軟硬體、能力需求
  • 至少有張1GB DDR5顯示卡,是NVIDIA的更好
@wwin3286tw
wwin3286tw / pure_gpio_74hc595.ino
Last active August 23, 2017 04:10
74HC595N 範例,只使用GPIO,74HC595N example, gpio only
//Author 撰寫者: https://www.facebook.com/ejtwn
//使用者須自負風險,若造成損壞恕不負責
//At your own risk.
//已經測試過(Tested board): Arduino Uno、ESP8266(NodeMCU)、ESP32、STM32F103
//Work on 5V or 3.3V
//根據Datasheet 供應電壓可支援到7V,According datasheet, supply power 7V max.
//OE connect to ground,OE請接低電位,負極
//MR PIN HIGH, MR需要接在高電位
//TI 74hc595n datasheet: http://www.ti.com/lit/ds/symlink/sn74hc595.pdf
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Timer1.Enabled = True
Timer2.Enabled = True
Button1.Enabled = False
End Sub
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
Randomize()