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 / update.sh
Last active February 5, 2018 23:47
Update windows 10 system.
scoop update && scoop update * && cup all -y && npm-windows-upgrade.cmd
@nicholasadamou
nicholasadamou / utils.sh
Created January 23, 2018 19:34
OS utility functions.
#!/bin/bash
get_os() {
local os=""
local kernelName=""
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
kernelName="$(uname -s)"
@nicholasadamou
nicholasadamou / hyper.js
Last active January 20, 2019 12:19
My hyper configurations.
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but more frequent updates
updateChannel: 'stable',
@nicholasadamou
nicholasadamou / bash_profile
Created January 13, 2018 21:56
With a couple of tweaks the WSL (Windows Subsystem for Linux, also known as Bash for Windows) can be used with Docker for Windows.
#!/bin/bash
# Docker configurations
# see: https://nickjanetakis.com/blog/setting-up-docker-for-windows-and-wsl-to-work-flawlessly
export DOCKER_HOST=tcp://0.0.0.0:2375 # Configure WSL to Connect to Docker for Windows
sudo mount --bind /mnt/c /c # Automatically set up the bind mount

Keybase proof

I hereby claim:

  • I am nicholasadamou on github.
  • I am nicholasadamou (https://keybase.io/nicholasadamou) on keybase.
  • I have a public key ASDQrOfcbdE2QVq8EB9m3cneXGsZ7ZWT0i6pVojzDmNh_go

To claim this, I am signing this object:

@nicholasadamou
nicholasadamou / install.sh
Last active November 3, 2017 18:50
Install Numix Theme on ubuntu
#!/bin/bash
trap "exit 1" TERM
export TOP_PID=$$
verify_os() {
kernel="$(uname -s)"
if [ "$kernel" != "Linux" ]; then
echo "System must be running Linux."
@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
@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 / 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 / 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"