Skip to content

Instantly share code, notes, and snippets.

View 0x1ad2's full-sized avatar
πŸ‘Ύ
01111001 01101111

Dennis Bruijn 0x1ad2

πŸ‘Ύ
01111001 01101111
View GitHub Profile
// require the enquirer module
const { MultiSelect } = require("enquirer");
// create a new multi select prompt
const multiSelectPrompt = new MultiSelect({
name: "value",
message: "Select all the binaries that you want to install",
choices: frequentlyUsedBinaries
});
// require utility tools and child_process exec to execute CLI commands
const util = require("util");
const exec = util.promisify(require("child_process").exec);
// define a async function execute commands
async function executeCommands(CommandLineString) {
const { stdout, stderr } = await exec(CommandLineString);
console.log("Standard output:", stdout);
console.log("Standard error:", stderr);
}
export default {
fonts: {
body: 'system-ui, sans-serif',
heading: '"Avenir Next", sans-serif',
monospace: 'Menlo, monospace',
},
colors: {
text: '#000',
background: '#fff',
primary: '#33e',
{
"name": "devjam-dashboard",
"version": "1.0.0",
"description": "A small administrative dashboard for DevJam.",
"main": "index.js",
"author": "Dennis Bruijn",
"license": "MIT",
"dependencies": {
"body-parser": "^1.19.0",
"bootstrap": "^4.4.1",
require("dotenv").config();
const path = require("path");
const Dotenv = require("dotenv-webpack");
module.exports = {
webpack: config => {
config.plugins = config.plugins || [];
config.plugins = [
import styled from "styled-components";
const Placeholder = styled.div`
margin-top: 25vh;
text-align: center;
font-family: Arial, Helvetica, sans-serif;
img {
width: 100px;
}
h1 {
@0x1ad2
0x1ad2 / linkedin-archiver.js
Created February 10, 2025 19:35
πŸ“ LinkedIn archiver
// Function to select all messages and click on them
function selectAllMessages() {
const items = document.querySelectorAll('.msg-selectable-entity__checkbox-circle-container');
items.forEach(item => {
if (item instanceof HTMLElement) {
item.click();
}
});
}