Skip to content

Instantly share code, notes, and snippets.

View dcgithub's full-sized avatar
💭
for those about to rock!..

dcgithub

💭
for those about to rock!..
  • None
  • Brisbane
View GitHub Profile
@Juwon1405
Juwon1405 / [Guide] blue-team-notes.md
Created July 31, 2023 18:23
[Guide] blue-team-notes.md

Source: forked(original repo) from Purp1eW0lf/Blue-Team-Notes(2023.05.18)

BlueTeam Playbook

A collection of one-liners, small scripts, and some useful tips for blue team work. I've included screenshots where possible so you know what you're getting.

Table of Contents

@remy
remy / crud-removal.css
Last active August 21, 2023 14:46
A user style sheet to remove crud from twitter
/* ==UserStyle==
@name twitter.com - 24/07/2023, 22:01:46
@namespace github.com/openstyles/stylus
@version 1.0.1
@description Remove all the crud from twitter
@author Remy Sharp
==/UserStyle== */
@-moz-document domain("twitter.com") {
h1 a[aria-label="Twitter"] svg, /* stupid new logo */
@DylanPiercey
DylanPiercey / case.js
Created July 20, 2023 17:25
Switch casing
(() => {
let activeMode = "default";
const modes = {
default: (_) => _,
camel: (_, c) => c.toUpperCase(),
snake: (_, c) => `_${c}`,
kebab: (_, c) => `-${c}`,
smoosh: (_, c) => c.toLowerCase(),
};
const root = document.createElement("div");
@busybox11
busybox11 / twi-spinning-rat.user.js
Created July 17, 2023 00:30
Replaces Twitter's Quotes button with a random spinning rat video
// ==UserScript==
// @name spinning rats for twitter
// @namespace twitter scripts
// @match *://*.twitter.com/*
// @grant none
// @version 1.0
// @author @chaoticvibing - GH @busybox11
// @description 7/17/2023, 2:15:52 AM
// ==/UserScript==
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Screen recorder</title>
</head>
<body>
<button id="recording-toggle">Start recording</button>
<script defer>
@anirudh-munipalli
anirudh-munipalli / animated-faq.html
Created May 25, 2023 09:11
Code for creating an animated FAQ section in HTML and JavaScript
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FAQ Section</title>
<link rel="stylesheet" href="./index.html.css"/>
@mrpapercut
mrpapercut / bitstringToBigInt.js
Created March 30, 2023 08:22
Javascript bitstring to BigInt
const bitstringToBigInt = bstr => {
let counter = 0n;
let byteindex = 0n;
for (let i = bstr.length - 1; i >= 0; i--) {
if (bstr[i] === '1') {
counter += 2n**byteindex;
}
byteindex++;
@githubfoam
githubfoam / windows defender firewall cheat sheet
Last active July 23, 2024 05:42
windows defender firewall cheat sheet
==========================================================================================================
Firewall.cpl Windows Firewall
WF.msc Windows Firewall with Advanced Security
==========================================================================================================
#Bard
This command will return a table with the profile name, the status of the Windows Defender Firewall for the profile, and the name of the profile
Get-NetFirewallProfile | Select-Object -Property ProfileName, Enabled, Name
If you want to check the status of the Windows Defender Firewall for a specific profile