Skip to content

Instantly share code, notes, and snippets.

View StancuFlorin's full-sized avatar

Stancu Florin StancuFlorin

View GitHub Profile
#!/bin/bash
cd /usr/local/src/pwnagotchi
sudo git pull
sudo mkdir /usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/hw/libs/waveshare/v3/
sudo cp /usr/local/src/pwnagotchi/pwnagotchi/ui/display.py /usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/
sudo cp /usr/local/src/pwnagotchi/pwnagotchi/ui/hw/__init__.py /usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/hw/
sudo cp /usr/local/src/pwnagotchi/pwnagotchi/ui/hw/libs/waveshare/v3/epd2in13_V3.py /usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/hw/libs/waveshare/v3/
@StancuFlorin
StancuFlorin / plex-anti-sleep.ps1
Created November 23, 2023 18:46 — forked from KakersUK/plex-anti-sleep.ps1
PowerShell 7 script to stop the PC from going to sleep if there are any active streams
# Plex on Windows Anti-Sleep
#
# References
# Gist: https://gist.github.com/KakersUK/d090e1836ffb881d29c9f529b380f795
# Install PowerShell 7: https://learn.microsoft.com/en-gb/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.3#winget
# X-Plex-Token: https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/
# Host variables
$PlexHost = '127.0.0.1'
$PlexPort = 32400
<?php
$token = $_GET['t'];
if ($token !== "C7Ck9o4Fpi1Yh7YTCtk0") {
print_r("You need to specify the correct token.");
exit();
}
$data = json_decode(file_get_contents('php://input'), true);
$url = $data['url'];
$method = $data['method'];
if (empty($url) || empty($url)) {
@StancuFlorin
StancuFlorin / Tema3 USO
Created January 6, 2012 05:52
Linux Shell Scripting
florin@florin-AMILO-Li-2727:~/Desktop/uso-tema3-checker$ ./check
added_lines aichallenge 01..................................[2/2]
added_lines aichallenge 02..................................[2/2]
added_lines ghc 01..........................................[2/2]
added_lines ghc 02..........................................[2/2]
added_lines jekyll 01.......................................[2/2]
added_lines jekyll 02.......................................[2/2]
added_lines octopress 01....................................[2/2]
added_lines octopress 02....................................[2/2]
deleted_lines aichallenge 01................................[2/2]