Skip to content

Instantly share code, notes, and snippets.

Avatar
🎇
LifeHacking

葉倚嘉 wwin3286tw

🎇
LifeHacking
  • Wiwynn
  • Taiwan
View GitHub Profile
@wwin3286tw
wwin3286tw / bt_speaker-raspberry_pi-zero_w.md
Created Apr 14, 2021 — forked from actuino/bt_speaker-raspberry_pi-zero_w.md
Setting up a Bluetooth Speaker from the command line on a raspberry Pi Zero W
View bt_speaker-raspberry_pi-zero_w.md

The setup of a bluetooth speaker on a Pi Zero W is pretty touchy.

Please get in touch via Twitter @actuino or http://www.actuino.fr/ if you've got comments or improvements to this quick draft.

First checks

  • Use a solid power source
  • check the speaker works on another hardware (android phone f.i.)
  • make sure you've updated your Raspbian, install and run rpi-update just in case.
@wwin3286tw
wwin3286tw / pwnagotchi notes
Created Mar 16, 2021 — forked from GermaniumSystem/pwnagotchi notes
How to set up a pwnagotchi in 25* simple steps.
View pwnagotchi notes
Preface:
I have no idea if any of this is the "right" way of doing it. This is just how I got my unit working.
Good luck.
WARNING: Do not use a V1 Waveshare display module with a stock pwnagotchi! The pwnagotchi expects a V2 module, and may irreparably damage a V1 module!
A V1 display module *can* work, but you must modify `waveshare.py` and `display.py` beforehand. For the time being, this is left as an exercise for the reader.
If you have already burnt a V1 display, try disconnecting it from the Pi and leaving it overnight. This may rejuvenate the display somewhat, but it will likely still display signs of damage.
Installation:
1. `dd` Raspbian Lite to an SD card.
@wwin3286tw
wwin3286tw / install-laravel-on-ubuntu.md
Created Sep 27, 2020 — forked from nextlevelshit/install-laravel-on-ubuntu.md
A installation guide to get Lumen 5.5 running on Ubuntu 17.04 including all dependencies and known issues
View install-laravel-on-ubuntu.md

How to install Laravel Lumen 5.5 on Ubuntu 17.04

In that installation guide i will carry you through all dependencies of Lumen 5.5 on a system with Ubuntu 17.04. I will also provide known issues, that come along the installation of Lumen.

1. Requirements for installing Lumen 5.5

Type in the commands beneath the required package and check if you have yet installed them. If not, click the link for installation guide.

PHP >= 7.0

@wwin3286tw
wwin3286tw / ufw.md
Created Jun 16, 2019 — forked from kimus/ufw.md
NAT and FORWARD with Ubuntu’s ufw firewall
View ufw.md

UFW

I use Ubuntu’s Uncomplicated firewall because it is available on Ubuntu and it's very simple.

Install UFW

if ufw is not installed by default be sure to install it first.

@wwin3286tw
wwin3286tw / hc05_bluetooth_AT_command_test.ino
Last active Dec 4, 2018
HC05 藍芽模組,Ardunio測試用
View hc05_bluetooth_AT_command_test.ino
#define BT_KEY_PIN 8
#define HARDWARE_SERIAL_SPEED 38400
void setup()
{
pinMode(BT_KEY_PIN, OUTPUT); //設定KEY_PIN為輸出模式
digitalWrite(BT_KEY_PIN, HIGH); //這將把藍芽模組的第34腳位拉高,使其進入AT模式
Serial.begin(HARDWARE_SERIAL_SPEED);
Serial.println("Bluebooth>"); //看到此提示,即可在串列終端機輸入想輸入的AT指令
@wwin3286tw
wwin3286tw / screen_USB-UART.sh
Last active Sep 13, 2018
Linux USB RS232 Terminal
View screen_USB-UART.sh
#!/bin/bash
#WARNING: Risk at your own, use screen command could cause terminal not controllable, may require reboot system to solve.
#Or open another SSH terminal to kill it.
#screen is not common pre-install package, use 'sudo apt-get install screen' to get it.
sudo screen /dev/ttyACM0
# To break the screen, Just fire AK-47 (ctrl+A then press 'K' only, release ctrl key)
@wwin3286tw
wwin3286tw / A_BT-ftp-server.py
Last active Jul 14, 2020
Python Bluetooth Classic Serial Port Communication
View A_BT-ftp-server.py
#!/usr/bin/python2
# -*- coding: UTF-8 -*-
'''
###Code Summary###
作者: Jack
電子信箱: wwin3286tw
手機:xxxxxxxxxx
日期: 2018-09-26
時間: 09:16:20 GMT+8
描述: BlueTooth classic Serial port ccFTP(Control & Communication& File Transfer Protocol) Server
@wwin3286tw
wwin3286tw / ANDROID_NDK_debug_guide.txt
Last active Jul 24, 2018
Android Studio NDK finished with non-zero exit value 2
View ANDROID_NDK_debug_guide.txt
DATE="2018-07-24"
APPLCATION="ANDROID STUDIO"
APPLCATION_VERSION={
Android Studio 3.1.3
Build #AI-173.4819257, built on June 5, 2018
JRE: 1.8.0_152-release-1024-b02 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 7 6.1
}
@wwin3286tw
wwin3286tw / remote_bash.sh
Created Jul 17, 2018 — forked from n0ts/remote_bash.sh
execute bash script from remote site
View remote_bash.sh
# 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
View 新安裝Ubuntu系統可選安裝.md

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