Skip to content

Instantly share code, notes, and snippets.

View Husamui's full-sized avatar
🏗️
Building

Husam Alrubaye Husamui

🏗️
Building
View GitHub Profile
import * as Sentry from "@sentry/node";
import imagemin from "imagemin";
import mozjpeg from "imagemin-mozjpeg";
import sharp from "sharp";
import isJpg from "is-jpg";
import * as aws from "aws-sdk";
import { Upload } from "../../types/graphqlUtils";
import { generateFilename } from "./generateFilename";
export const s3 = new aws.S3({
const signIn = async (username) => {
let currentPasswordIndex = 0;
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto('https://www.reddit.com/login');
// Runs once for each username/password combo
const tryPassword = async () => {
@learncodeacademy
learncodeacademy / gist:5850f394342a5bfdbfa4
Last active October 1, 2025 03:05
SSH Basics - Getting started with Linux Server Administration

###SSH into a remote machine###

ssh user@mydomain.com
#or by ip address
ssh user@192.168.1.1

exit: exit ###Install Something###

#If it's a new server, update apt-get first thing