Skip to content

Instantly share code, notes, and snippets.

View wwin3286tw's full-sized avatar
🎇
LifeHacking

Jack wwin3286tw

🎇
LifeHacking
  • Wiwynn
  • Taiwan
  • 16:59 (UTC +08:00)
View GitHub Profile
@wwin3286tw
wwin3286tw / install-laravel-on-ubuntu.md
Created September 27, 2020 05:47 — 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

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 / pwnagotchi notes
Created March 16, 2021 06:38 — forked from GermaniumSystem/pwnagotchi notes
How to set up a pwnagotchi in 25* simple steps.
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 / bt_speaker-raspberry_pi-zero_w.md
Created April 14, 2021 02:45 — 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

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 / A1_all_sqlalchemy.py
Created January 27, 2022 09:10 — forked from zzzeek/A1_all_sqlalchemy.py
comparing SQLAlchemy 1.4 async to "databases"
import asyncio
import contextlib
import cProfile
import io
import pstats
import random
from sqlalchemy import cast
from sqlalchemy import Column
from sqlalchemy import Integer
@wwin3286tw
wwin3286tw / auth
Last active August 29, 2023 03:22
namecheap certbot --manual-auth-hook script
#!/usr/bin/python3
import requests
import socket
import dns.resolver
from bs4 import BeautifulSoup as bs
import os
import time
SANDBOX = False
# In general: api_username is consistent with nc_username