Skip to content

Instantly share code, notes, and snippets.

View lukasMega's full-sized avatar
🦡

Lukáš Melega lukasMega

🦡
  • Slovakia
View GitHub Profile
@drinkmaker
drinkmaker / devtools-detect.js
Created July 6, 2021 08:50
Developer Tools Detection
/**
* Disable Developer Tool, HotKeys: Ctrl+Shift+I, ⌘+⌥+I, F12
* Disable to View Source Code of Page by Developer Tools.
**/
function disableDeveloperTool() {
hotkeys( 'command+option+j,command+option+i,command+shift+c,command+option+c,command+option+k,command+option+z,command+option+e,f12,ctrl+shift+i,ctrl+shift+j,ctrl+shift+c,ctrl+shift+k,ctrl+shift+e,shift+f7,shift+f5,shift+f9,shift+f12', function( event, handler ) {
event.preventDefault();
} );
@drakodev
drakodev / Free_Disposable_ESP_Abuse_SPAM
Last active May 11, 2025 18:33
most comprehensive collection (183538) of free and disposable email provider domains, curated from multiple sources, including contributions from Okutbay and frankwarwick. This list has been further extended to include domains flagged as abusive, malware-associated, or considered risky by spam traps.
This file has been truncated, but you can view the full file.
# Email List Containing free and disposable email service providers.
# Some domains have been included as they have been trapped by SPAM, Anti-Malware Systems
# NOTE: Some domains may have stopped working
0-00.usa.cc
0-180.com
0-30-24.com
0-420.com
0-900.com
@korakot
korakot / ssd.sh
Created March 8, 2021 13:53
Check mac disk health (ssd)
# https://www.macworld.com/article/3609512/how-to-m1-intel-mac-ssd-health-terminal-smartmontools.html
smartctl -a disk0
@FreddieOliveira
FreddieOliveira / docker.md
Last active August 23, 2025 01:04
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@FrangaL
FrangaL / cpu_temp_rrdtool.sh
Last active September 19, 2024 20:03
Raspberry PI - CPU temperature rrdtool
#!/bin/bash -e
command rrdtool || sudo apt-get install rrdtool
command pngquant || sudo apt-get install pngquant
rrdtools_dir=/var/www/html/laravel/public/images/temp-sensor
rrdtools_db=cpu_temp_data.rrd
create(){
rrdtool create $rrdtools_dir/$rrdtools_db \
--start now \
@jjsanderson
jjsanderson / network-manager-raspbian-2020-02-05.md
Last active April 20, 2023 17:25
Installing Network Manager on Raspbian 2020-02-05

Installing Network Manager on Raspbian 2020-02-05

NOTE:
This guide was written more than two years ago, which in Pi years means it's now graduated college, or something. Inevitably, it's at least a little out of date, and it may even be entirely misleading. There are several helpful suggestions in the comments (thanks everyone), and most recently a report that what's here plain doesn't work on current (early 2022) Raspbian. Which isn't even called 'Raspbian' any more.
As of Jan 2022 I'm partially back in my office-which-has-access-to-eduroam, and I do have a need to build up a fresh Pi desktop. If and when I get that working I'll update this guide. In the meantime: good luck, and please leave a comment to report success or failure.
(June 2022) Nope, I still haven't actually tried any of this myself. However, I have had to troubleshoot eduroam wifi on my Linux ThinkPad. As of Ubuntu 22.04 it would no longer connect. [This Stack Exchange answer](https://askubuntu.com/questions/27976

@Paraphraser
Paraphraser / MQTT_Node-Red_Influx.md
Last active June 2, 2025 20:31
Efficient recipe for getting MQTT data into an InfluxDB database using Node-Red

Recipe: from MQTT to InfluxDB via Node-RED

  • 2024-05-16 adds case study explaining how to extract values from topic strings, and how to specify the measurement name in the message payload provided to the "influxdb out" node.
  • 2023-12-02 revise graphics to correspond with "influxdb out" node, and explain the pros and cons of InfluxDB 1.8 vs InfluxDB 2.

Introduction

Getting data produced by IoT sensors into a database is practically a mandatory step before effective visualisation (eg dashboards).

This recipe shows you how to get an MQTT payload into an InfluxDB database using three Node-RED nodes. It makes the following assumptions:

@lenosi
lenosi / README.md
Last active May 20, 2023 07:58
MIUI bloatware

Get list of system apps on the device:

adb shell "echo 'apps:' && pm list packages -f | grep /system/app/ | sed 's/.*=/  - /'"

Remove application command

pm uninstall -k --user 0 app
@chk1
chk1 / B1W portscan.txt
Last active June 18, 2024 09:15
Blueskysea B1W portscan
$ nmap -p0- -v -A -T4 192.168.201.1
Starting Nmap 6.40 ( http://nmap.org ) at 2019-06-10 20:49 CEST
NSE: Loaded 110 scripts for scanning.
NSE: Script Pre-scanning.
Initiating Ping Scan at 20:49
Scanning 192.168.201.1 [2 ports]
Completed Ping Scan at 20:49, 0.01s elapsed (1 total hosts)
mass_dns: warning: Unable to determine any DNS servers. Reverse DNS is disabled. Try using --system-dns or specify valid servers with --dns-servers
Initiating Connect Scan at 20:49
@anhhtz
anhhtz / Ubiquiti UniFi SSH Commands.md
Last active March 15, 2023 16:46
Ubiquiti UniFi SSH Commands

Ubiquiti UniFi SSH Commands:

Login

root / ubnt or ubnt / ubnt

Reboot

Reboot

Reset AP to Factory Default

syswrapper.sh restore-default