Skip to content

Instantly share code, notes, and snippets.

@IverCoder
IverCoder / office-guide.md
Last active May 6, 2024 06:31
Install and Activate Microsoft Office for Free - A Step-by-Step Guide

Please leave a star at the GitHub Gist mirror if this guide has helped you! You can also ask questions/assistance there.

Install and Activate Microsoft Office 365 for Free - A Step-by-Step Guide

This is a guide on how to install the latest version of Microsoft Office for free. For this method, we will use the Office Deployment Tool. The Microsoft Office Deployment Tool is a command-line program that IT managers use to configure and deliver Office products to PCs in their businesses, but in this guide, we will use it to install Microsoft Office with additional customization options and download it straight from Microsoft's servers.

NOTE: You will not need to repeat this step again to upgrade. Just keep your Office up to date and you will not have any issues.

NOTE: Make sure you have recently reloaded your number with at least 5GB of internet if you use your mobile internet through a hotspot to download. If your telecom

@Sherex
Sherex / README.md
Last active May 6, 2024 06:26
A script for the Wireguard config options PostUp/PostDown entries. It will allow peers to connect to the Wireguard interface and do IP forwarding (port forwarding will be added later)

IfScript

Hi, I made this for my use-case, but feel free to use it :)
This is currently only handling the NAT side of things, not PAT!
The from-to port options is just a placeholder it will use the first port specified.

route_port 80 80 tcp $vpn_ip $server_ip

How to use?

Download and make executable

@amitavroy
amitavroy / .gitlab-ci.yml
Last active May 6, 2024 06:26
Continuous Integration with Gitlab
stages:
- test
# Variables: these have to match
# the .env.example credentials in your Laravel app
# use the default homestead/secret combination, since
# that database gets created in the edbizarro/gitlab-ci-pipeline-php:7.1
# docker image.
variables:
MYSQL_ROOT_PASSWORD: root
@JohannesMP
JohannesMP / EnableDiscordDevExperiments.md
Last active May 6, 2024 06:26 — forked from ExordiumX/betaenabler.js
Enabling Discord Dev Experiments on Discord for Windows (2022-02)

Enable Dev Experiments in Discord for Windows

image

This guide shows how to enable dev mode for the Discord desktop application running on Windows (as of February 2022).

This can be used to view beta experiments to try features currently in development that are included but hidden by default in Discord release builds.


#include "Arduino.h"
#include "esp_camera.h"
#include "ESPAsyncWebServer.h"
typedef struct {
camera_fb_t * fb;
size_t index;
} camera_frame_t;
#define PART_BOUNDARY "123456789000000000000987654321"
@BankSecurity
BankSecurity / Simple_Rev_Shell.cs
Last active May 6, 2024 06:24
C# Simple Reverse Shell Code
using System;
using System.Text;
using System.IO;
using System.Diagnostics;
using System.ComponentModel;
using System.Linq;
using System.Net;
using System.Net.Sockets;
@tobiasmuehl
tobiasmuehl / fb-expand-all.js
Last active May 6, 2024 06:23
Copy this in your developers console to expand all posts and comments on a Facebook page
// 1. Scroll to bottom of the FB page to load all posts
// 2. Copy jQuery into the dev console, so that $ becomes available
// 3. Execute this script, which will expand all posts, comments and comments replies
// 4. Rerun to make sure every post/comment is picked up (after console.log is not logging more events)
// reset array
window.a = [];
// fill with links
$('.UFIPagerLink, .UFIReplySocialSentenceLinkText').add('div.userContent .see_more_link').add('div.userContent .see_more_link').each(function() { window.a.push(this) });
import llama_cpp
import re
import json
# Model configuration
# tested with mistral, llama2, llama3, and phi3
model_path = "/path/to/model"
base_llm = llama_cpp.Llama(model_path, seed=42, n_gpu_layers=-1, n_ctx=4096, verbose=False, temperature=0.0)
@kharrison
kharrison / SwiftIntegerGuide.swift
Created February 17, 2017 16:43
Swift Integer Quick Guide
// -------------------------------------
// Swift Integer Quick Guide
// -------------------------------------
// Created by Keith Harrison http://useyourloaf.com
// Copyright (c) 2017 Keith Harrison. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
@tigerhawkvok
tigerhawkvok / poetry-convert.py
Last active May 6, 2024 06:18
Convert a requirements.txt file to a Poetry project
#!python3
"""
Convert a requirements.txt file to a Poetry project.
Just place in the root of your working directory and run!
"""
sourceFile = "./requirements.txt"
import re
import os