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 / 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."

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 / 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
@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 / utils.sh
Created January 23, 2018 19:34
OS utility functions.
#!/bin/bash
get_os() {
local os=""
local kernelName=""
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
kernelName="$(uname -s)"
@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 / install.sh
Last active October 30, 2018 12:51
Install Virtual Box Guest Additions for Kali Linux
#!/bin/bash
# To install use the following snippet:
# curl -s <url-to-raw-gist> | bash
TARGET="/tmp/"
wget -q -O - archive.kali.org/archive-key.asc | apt-key add
apt update && apt upgrade -y && apt dist-upgrade -y && apt autoremove -y
if [ -f /media/cdrom/VBoxLinuxAdditions.run ]; then
@nicholasadamou
nicholasadamou / fix_internet.ps1
Created April 16, 2018 22:39
Fix Windows 10 Network Issue: "Connected but No Internet Access"
netsh int ip reset
@nicholasadamou
nicholasadamou / setup.sh
Created April 19, 2018 01:03
Reconfigure OpenSSH keys & to start on boot.
#!/bin/bash
# Uncomment a string within a given file
# $FILE is the targeted file
# $KEY is the string that is currently commented '#' (String must contain '#' or else 'sed' will return '1')
uncomment_str() {
FILE="$1"
KEY="$2"
sed -i "$FILE" -e "/$KEY/s/#//g"
@nicholasadamou
nicholasadamou / setup_kali-pi.md
Created April 22, 2018 13:51
How to setup & configure re4son-Kali-Pi on Raspberry Pi 2/3

Setup Re4son-Kali-Pi on Raspberry Pi 2/3

  1. Download and image sticky-fingers-re4son-image to the Pi.
  2. Copy the following scripts: update apt_update apt_get_update aptitude_update to /usr/local/bin
  3. Copy the following scripts: start_tightvncserver.sh start_x11vncserver.sh to /root/data/
  4. copy the following the contents of : Backgrounds/ to ~/Backgrounds
  5. Set up WiFi connection to 'iPhone' using HDMI Screen
  6. remove tigervnc using: apt-get remove tigervnc-common tigervnc-standalone-server
  7. Setup re4son kernel: