Skip to content

Instantly share code, notes, and snippets.

View nicholasadamou's full-sized avatar
🤓
Working hard to make the world better with software.

Nicholas Adamou nicholasadamou

🤓
Working hard to make the world better with software.
View GitHub Profile
@nicholasadamou
nicholasadamou / .bash_profile
Created November 15, 2015 14:51 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@nicholasadamou
nicholasadamou / boxstarter.txt
Last active July 23, 2018 14:09
Configure a Windows Machine for Development using Boxstarter.
## Chocolatey
Import-Module Boxstarter.Chocolatey
## Configure Windows
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Update-ExecutionPolicy Unrestricted
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
@nicholasadamou
nicholasadamou / README.md
Last active September 8, 2017 23:30
Installs Eclipse on Ubuntu 17.04 or higher.

Installing the Latest Eclipse in Ubuntu

Here's a short shell script to quickly install the latest Eclipse in Ubuntu, since the one in the repositories is about two years old. As a bonus, it also replaces the ugly Eclipse icon with a nicer one by Shaun Smith. Based on these instructions.

  • Run the script, like this: bash <(wget -qO- https://gist.github.com/nicholasadamou/91f6f9fea968d8b8c6b47161c8ace415/raw/85632ae2e14a18472343e07bf1a41047954a3d19/install_eclipse.sh)

  • The script will install OpenJDK, download Eclipse, patch the icon so it looks less ugly, and put all of the right files in the right places.

@nicholasadamou
nicholasadamou / README.md
Last active September 6, 2017 01:06
Updates a debian-linux-based computer that uses APT.

Linux Updater Script

Here's a short shell script to quickly update a debian-linux-based computer that uses APT.

  • Run the script, like this: bash &lt;(curl -s https://gist.githubusercontent.com/nicholasadamou/5fbde132620829a9c68c94cb04c013c8/raw/b1ab3ffe6f1b1dd425ff89920d88a5d169e2506e/update.sh)
@nicholasadamou
nicholasadamou / README.md
Last active September 8, 2017 19:32
Updates a Mac OS-based computer.

Mac OS Updater Script

Here's a short shell script to quickly update a Mac OS-based computer.

  • Run the script, like this: bash &lt;(curl -s https://gist.github.com/nicholasadamou/ffaf49f0e763f979ebeb86df2a8b215e/raw/d1ca21eeb6b06ae57e3aaeeb76dbbc40123c4378/update.sh)
@nicholasadamou
nicholasadamou / README.md
Last active May 7, 2018 10:25
Installs Sublime Text 3 on Ubuntu.

Installing the Latest Sublime Text in Ubuntu

Here's a short shell script to quickly install the latest Sublime Text in Ubuntu.

  • Run the script, like this: curl https://gist.github.com/nicholasadamou/406798c81d6895fae6f18e22f8f45615/raw/bf9149a2436cd53260a2b943fce6e04b1ac2dd21/install_sublime_text.sh | sh
@nicholasadamou
nicholasadamou / README.md
Last active September 24, 2017 13:12
Update Kali-Pi drivers

Update Drivers for Kali-Pi

Here's a short shell script to quickly update Kali-Pi drivers.

  • Run the script, like this: curl https://gist.github.com/nicholasadamou/561385b9121c35d7434f597e4072957c/raw/515cf36604133959eac10ec9534aa981d7101645/update.sh | bash

or

  • Add as an alias, like this: alias rpu="curl https://gist.github.com/nicholasadamou/561385b9121c35d7434f597e4072957c/raw/515cf36604133959eac10ec9534aa981d7101645/update.sh | bash"
@nicholasadamou
nicholasadamou / README.md
Last active April 15, 2018 12:05
Updates hak5 software for bashbunny, wifi-pineapple, etc.

Update hak5 software for Kali-Pi

Here's a short shell script to quickly update hak5 software for bashbunny, wifi-pineapple, etc.

  • Run the script, like this: curl https://gist.github.com/nicholasadamou/cf10162d83856c2f344a825eb44ee10f/raw/f92b890c353a286d34b6fa1fdacf422accd9a6cd/update.sh | bash

or

  • Add as an alias, like this: alias h5u="curl https://gist.github.com/nicholasadamou/cf10162d83856c2f344a825eb44ee10f/raw/f92b890c353a286d34b6fa1fdacf422accd9a6cd/update.sh | bash"
@nicholasadamou
nicholasadamou / install.sh
Last active July 23, 2021 04:14
Enabling Simultaneous AP and Managed Mode WiFi on Raspberry Pi (Raspbian Stretch)
#!/bin/bash
#see: https://albeec13.github.io/2017/09/26/raspberry-pi-zero-w-simultaneous-ap-and-managed-mode-wifi/
x="/etc/udev/rules.d/70-persistent-net.rules"
cat < "$x" <<- EOL
SUBSYSTEM=="ieee80211", ACTION=="add|change", ATTR{macaddress}=="b8:27:eb:ff:ff:ff", KERNEL=="phy0", \
RUN+="/sbin/iw phy phy0 interface add ap0 type __ap", \
RUN+="/bin/ip link set ap0 address b8:27:eb:ff:ff:ff"
EOL
@nicholasadamou
nicholasadamou / update.sh
Created October 6, 2017 01:16
Update a linux-based system using APT.
#!/bin/bash
sudo apt-get update \
&& sudo apt-get upgrade -y \
&& sudo apt-get dist-upgrade -y \
&& sudo apt autoremove -y