Skip to content

Instantly share code, notes, and snippets.

View Technetium1's full-sized avatar
💭
If an immediate response is required, contact via Discord

Technetium1 Technetium1

💭
If an immediate response is required, contact via Discord
View GitHub Profile
server {
listen 443 ssl http2;
server_name jonlu.ca www.jonlu.ca;
root /var/www/html;
index index.html index.htm;
location ~ /.git/ {
deny all;
@jonluca
jonluca / nginx.conf
Last active April 6, 2018 06:48
Nginx Conf
worker_processes auto;
pid /run/nginx.pid;
worker_rlimit_nofile 30000;
events {
worker_connections 65535;
multi_accept on;
use epoll;
}
@steckel
steckel / delete-all-messages.js
Last active January 18, 2019 07:31 — forked from IMcPwn/delete-all-messages.js
Delete all messages in a Discord channel
// Turn on Developer Mode under User Settings > Appearance > Developer Mode (at the bottom)
// Then open the channel you wish to delete all of the messages (could be a DM) and click the three dots on the far right.
// Copy/paste the below script into the JavaScript console.
// invoke the function `clearMessages("username", "messageId")`
// where username is optional username to filter off of and where messageID is an optional ID that you wish to retain, but delete everything before
function clearMessages(username, before) {
const authToken = document.body.appendChild(document.createElement`iframe`).contentWindow.localStorage.token.replace(/"/g, "");
const channel = window.location.href.split('/').pop();
const baseURL = `https://discordapp.com/api/channels/${channel}/messages`;
@moorer2k
moorer2k / FanController.php
Created May 11, 2018 22:37
Laravel console command for automated control over TP-Link HS100. Automatically turn on my plugged in fan if temps get over 55 C.
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Symfony\Component\Process\Process;
class FanController extends Command
{
@shadone
shadone / speedtest_tester.sh
Created February 6, 2016 23:03
Send speedtest.net results to influxdb
#!/bin/bash
INFLUXDB_HOST="localhost"
INFLUXDB_PORT="8086"
DATABASE="home"
[ -f /etc/default/speedtest_tester ] && . /etc/default/speedtest_tester
while [[ $# > 0 ]]; do
key="$1"
@detroitenglish
detroitenglish / zxcvbn-haveibeenpwned-pw-check.js
Last active January 10, 2020 00:04
Fastify Handler: Password Scoring with zxcvbn + haveibeenpwned Range Query API
import zxcvbn from 'zxcvbn'
import axios from 'axios'
import crypto from 'crypto'
// Input is first validated via native Fastify JSON-schema declaration
export async function passwordStrengthChecker(req, reply) {
const { password } = req.body
let message, pwned, ok
let { score } = zxcvbn(password)
try {
@moorer2k
moorer2k / mobileLoLChat.php
Last active February 25, 2020 19:29
A quick php class I put together to interface with the new mobile LoL chat (data captured from my iPad). Allows you to login to your LoL account and pull the basic info on a summoner ID. It's super fast and supports multiple ID queries.
<?php
/**
* Class leagueChat
*/
class leagueChat {
protected $username;
protected $password;
@moorer2k
moorer2k / GetCPUTemps.php
Last active April 7, 2020 23:21
Use Symfony to execute lm_sensors and return a json response.
<?php
namespace App;
use Symfony\Component\Process\Process;
use Symfony\Component\Process\Exception\ProcessFailedException;
class GetCPUTemps
{
public function getTemps(){
# -*- coding: utf-8 -*-
#
# Copyright 2019, JohnnyCarcinogen ( https://github.com/JohnRipper/ ), All rights reserved.
#
# Created by dev at 2/8/20
# This file is part of QuantumJump.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or

McAfee privileged SiteList.xml leads to Active Directory domain privilege escalation


16/02/2016 UPDATE

Thanks to @funoverip for his password decryption tool.

Thus to increase my reverse skills I'm back.