Skip to content

Instantly share code, notes, and snippets.

View joshfinley's full-sized avatar
💭
yeet

Josh Finley joshfinley

💭
yeet
View GitHub Profile
@joshfinley
joshfinley / ubuntu-15.04-customized-setup.sh
Last active November 17, 2023 20:55
Since I frequently break my Linux installs by poking and prodding at different things, I've decided it's time to create a script that can take an out-of-the-box Ubuntu installation and set it up to my liking. Currently, if I run this script on a fresh install of ubuntu, it works, and the memory usage comes out at an average of 105 mb.
#!/bin/bash
# !WARNING! This script does extreme things to Unity. In fact it annihilates it. If you wish to
# run this script, please just give it a once over before you do so. This way, you'll understand
# what it is actually doing and may be prepared for the results.
# A script to setup Ubuntu the way I like it.
# Also its advisable to start this from a seperate tty. Ya know, because this script breaks things :)
# Update Repositories and install new versions of current packages
! special
*.foreground: #ffcc8e
*.background: #2a2424
*.cursorColor: #ffcc8e
! black
*.color0: #2a2424
*.color8: #2a2424
! red
#!/bin/bash
# Script to generate a standard development environment on Ubuntu 15.04
# virtualmachine with all necessary programs installed for development
# of gamerm8
# USAGE
# immediatley after installation of Ubuntu 15.04 and git
# go to download dir, type "sudo chmod +x ./dev-env.sh" then "./dev-env
# .sh
apt-get update
apt-get upgrade -y
apt-get install curl vim imagemagick htop awesome zsh
add-apt-repository ppa:dawidd0811/neofetch
apt-get update && apt-get install neofetch
cp -r /etc/xdg/awesome/ ~/.config/
cp -r /usr/share/awesome/ ~/.config
apt-get update
apt-get upgrade -y
# get all the packages
apt-get install openbox \
conky conky-all \
gtk-theme-switch gtk2-engines \
lxappearance \
curl \
wget \
@joshfinley
joshfinley / cdp-frame.c
Created February 7, 2020 21:40
cdp-frame.c
#include <errno.h>
#include <string.h>
#include <arpa/inet.h>
#include <net/ethernet.h>
#include <net/if.h>
#include <netinet/if_ether.h>
#include <netpacket/packet.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <stdio.h>
This file has been truncated, but you can view the full file.
function Invoke-CertUtil
{
[CmdletBinding(DefaultParameterSetName="PlaceNet")]
Param(
[Parameter(Position = 0)]
[String[]]
$ComputerName,
@joshfinley
joshfinley / Install-ADDC.ps1
Created February 26, 2020 18:47
Install domain controller to windows server instance
Install-windowsfeature AD-domain-services
Import-Module ADDSDeployment
Install-ADDSForest
-CreateDnsDelegation:$false `
-DatabasePath "C:\Windows\NTDS" `
-DomainMode "Win2016" `
-DomainName "localwindowslab.com" `
-DomainNetbiosName "WINDOWSLAB" `
-ForestMode "Win2019" `
@joshfinley
joshfinley / gs_support.c
Created March 17, 2020 14:13
gs_support.c
/***
*gs_support.c - initialize the global buffer overrun security cookie
*
* Copyright (c) Microsoft Corporation. All rights reserved.
*
*Purpose:
* Define __security_init_cookie, which is called at startup to initialize
* the global buffer overrun security cookie used by the /GS compile flag.
*
*******************************************************************************/