Skip to content

Instantly share code, notes, and snippets.

View Sharkbyteprojects's full-sized avatar
🐋
Focusing

Sharkbyteprojects Sharkbyteprojects

🐋
Focusing
View GitHub Profile
@Sharkbyteprojects
Sharkbyteprojects / dockerSSH.py
Last active October 18, 2022 20:31
Python (DockerSDK) SSH Docker Testinstallation
#!/usr/bin/env python
# ©️Sharkbyteprojects
# required packet: docker
def cleanUpDocker(i, cont):
if i == 0 and cont == 0:
return
print("\nWait a Second ...\nI clean up my own junk!")
if cont != 0:
try:
cont.stop()
@Sharkbyteprojects
Sharkbyteprojects / LICENSE
Created July 9, 2022 11:41
delete CMake Gui history windows
MIT License
Copyright (c) 2022 Sharkbyteprojects
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@Sharkbyteprojects
Sharkbyteprojects / CMakeLists.txt
Last active March 30, 2022 15:30
EXAMPLE FOR https://github.com/Sharkbyteprojects/consoleLoadingbar DESCRIBED IN USAGE SECTION OF README
cmake_minimum_required (VERSION 3.8)
project ("myCool-Loadingbar-Project")
add_subdirectory("consoleLoadingbar")
add_executable (myCoolExample "exampleLoadingbar.cpp")
target_link_libraries(myCoolExample sharks::consoleLoadingBar)
@Sharkbyteprojects
Sharkbyteprojects / splay-starwarsfirst.cpp
Created December 8, 2021 19:59
Music Player for Calleope
#define _GNU_SOURCE
/*
* Star Wars first Music section for Calliope
* <c> Sharkbyteprojects
*/
typedef unsigned int uint;
#include "MicroBit.h"
#include "NEPODefs.h"
@Sharkbyteprojects
Sharkbyteprojects / star_wars.ino
Last active November 30, 2021 12:39 — forked from eznj/star_wars.ino
Arduino Star Wars Song
const int c = 261;
const int d = 294;
const int e = 329;
const int f = 349;
const int g = 391;
const int gS = 415;
const int a = 440;
const int aS = 455;
const int b = 466;
const int cH = 523;
@Sharkbyteprojects
Sharkbyteprojects / Readme.md
Last active August 17, 2021 15:49
Simple Random Lic Key gen (FORMAT: xxxx-xxxx-xxxx-xxxx)

Usage

you need to add kran.js to your script (copy content or use <script src="https://gist.githubusercontent.com/Sharkbyteprojects/59b739dd14fcdc2ba82d836eff226393/raw/27e9acf454d418db735d84ff2fc5319f1d42a47d/kran.js"></script>) before use, then

console.log(permut(rns())); will generate your key and output to console

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Sharkbyteprojects
Sharkbyteprojects / emgc.py
Last active September 24, 2020 19:38
Raspberry Pi Reboot if to hot
#!/usr/bin/env python3
# <c> Sharkbyteprojects
# https://gist.github.com/Sharkbyteprojects/a78eb090320c34e69e175001c6683731
# HOW TO INSTALL ON PI:
# Look at the Comment https://gist.github.com/Sharkbyteprojects/a78eb090320c34e69e175001c6683731#gistcomment-3466290
import os
import time
while True:
xxxx=float(os.popen("vcgencmd measure_temp").readline().replace("'C\n", "").replace("temp=",""))
print(xxxx)
REM You need to have https://github.com/Sharkbyteprojects/Little-Echo-Application/releases/latest in the folder with this Script
@echo off
echo.exe helloworld