Skip to content

Instantly share code, notes, and snippets.

@Suzhou65
Suzhou65 / socket.md
Created May 7, 2024 15:30
Some python socket testing

Transmitter

import socket
def LocalBroadcasting(Payload,SelectAddress=(),SelectProtocolNumber=()):
    # Trans
    if len(Payload) == 17:
        SeparateCharacter = Payload[2]
        Payload = Payload.replace(SeparateCharacter,"")
        PacketPayload = bytes.fromhex("F" * 12 + Payload *16)
    elif len(Payload) == 12:
@Suzhou65
Suzhou65 / HW News - Linus Tech Tips' Terrible Response.csv
Last active August 17, 2023 10:40
[ YouTube Subtitles ] HW News - Linus Tech Tips' Terrible Response
Speakers Content
GN so we posted some coverage yesterday with some concerns about data accuracy ethics and responsibilities of Linus Media Group
GN not going to recap all that here you should check that video out before proceeding its necessary context
GN Linus hastily posted a statement about three and a half hours after our video went live
GN the video raised concerns again about an incredibly large amount of testing and act accuracy issues
GN alongside what we believe to be unethical actions and just issues with responsibility as a large Outlet in general
GN Linus's statement it is an unhinged Unapologetic rant where he shirks responsibility and blames others
GN he tries to play weird semantic games like saying
GN quote
Linus wedidn't sell the product we auctioned it
@Suzhou65
Suzhou65 / The Problem with Linus Tech Tips Accuracy Ethics Responsibility.csv
Last active August 17, 2023 10:39
[ YouTube Subtitles ] The Problem with Linus Tech Tips Accuracy Ethics Responsibility
Speakers Content
GN a few days ago this clip from an LTT lab tour got a lot of attention online
LTT the difference between us and somebody like Gamers Nexus or Hardware unboxed is we test new components new tests every time
GN and then Hardware unboxed tweeted dissatisfaction with the statement made in that tour
GN we didn't say anything at all anywhere even though it's not actually true they don't collect new data and new tests every single time and it's not always necessary anyway
GN so when Linus went on the win show we hadn't gotten involved Linus responded to hard run box on the WAN show and then said the following
Linus there's a fair number of people that are talking about the the whole trust me bro situation uh there where some creators that .... it seems like you guys are .... look ...(sigh
GN just say it everyone knows you're talking about us
Linus it's pretty clear that not everyone in the Creator space handled that super professionally
Linus I don't obviously agree with some of the tak
@Suzhou65
Suzhou65 / logfile.md
Created August 20, 2021 07:23
Processing Logfile

Using

#Import pandas
import pandas

def read_logfile(input_filename):
    try:
        #Trans to pandas dataframe
        #Header 'E-Series' is contain extra
        header = ["IP","TIME","ACTION","CONTENT","E1","E2","E3","E4","E5","E6","E7","E8","E9","E10","E11","EX12"]
@Suzhou65
Suzhou65 / ap2clone.md
Last active July 28, 2021 16:59
Clone iOS Application Installer by Apple Configurator 2

Open Apple Configurator 2

  • Connect your iOS device
  • Login the Apple ID
  • Verify your iOS device
  • Click Add, selcect App
  • Select the Application you want

Apple Configurator 2 will start download it

  • After download complete, it will ask the next actions.
  • Don't click any options
@Suzhou65
Suzhou65 / voltage.py
Last active January 24, 2024 16:55
Apcupsd, Line voltage recorder
# -*- coding: utf-8 -*-
import csv
import time
import requests
import schedule
from bs4 import BeautifulSoup
def voltage_check():
# access apcupsd
apcupsd = "http://10.0.1.5/apcupsd/upsfstats.cgi?host=127.0.0.1"
@Suzhou65
Suzhou65 / Is_Applesilicon_ready4me.md
Last active December 22, 2022 06:22
Is Apple Silicon ready for Me?

Fully compatible with Apple silicon.

Chat

  • LINE
  • Microsoft Skype
  • Telegram

Design

  • Adobe Illustrator
  • Adobe Lightroom
  • Adobe Photoshop
@Suzhou65
Suzhou65 / leet.md
Created February 19, 2021 09:32
Translate string into 1337

Function

import json
def leet(string):
    #Reading leet dictionary
    try:
        with open("leet.json", "r") as leet_dictionary:
            leet_book = json.load(leet_dictionary)
    #If file not found
 except FileNotFoundError:
@Suzhou65
Suzhou65 / status_monitor.md
Last active June 28, 2022 02:37
Web Based Monitoring status

Status file not found

ScreenShot

All server online

ScreenShot

Server offline

ScreenShot

@Suzhou65
Suzhou65 / bash_profile.md
Last active March 24, 2024 17:26
macOS PATH

Backup

PATH=/usr/bin:/bin:/usr/sbin:/sbin
export PATH

Anaconda

PATH="/Users/mac/opt/anaconda3/bin:$PATH"