Skip to content

Instantly share code, notes, and snippets.

@tuksik
tuksik / fix_git_ps1.sh
Last active May 4, 2024 13:56
Fix -bash: __git_ps1: command not found
#http://stackoverflow.com/questions/12870928/mac-bash-git-ps1-command-not-found
curl -o ~/.git-prompt.sh https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh
echo 'source ~/.git-prompt.sh' >> ~/.bashrc
@tuksik
tuksik / dig_cs.sh
Last active January 25, 2024 16:16
dig cheat sheet
#Dig HowTo [https://www.madboa.com/geek/dig/]
# get the address(es) for yahoo.com
dig yahoo.com A +noall +answer
# get a list of yahoo's mail servers
dig yahoo.com MX +noall +answer
# get a list of DNS servers authoritative for yahoo.com
dig yahoo.com NS +noall +answer
@tuksik
tuksik / oracle_compare_schemas.sql
Created September 16, 2014 10:56
This script will compare two Oracle schemas and generate a report
REM http://www.dbspecialists.com/files/scripts/compare_schemas.sql
REM
REM compare_schemas.sql
REM ===================
REM
REM This script is provided by Database Specialists, Inc.
REM (http://www.dbspecialists.com) for individual use and not for sale.
REM Database Specialists, Inc. does not warrant the script in any way
REM and will not be responsible for any loss arising out of its use.
REM
@tuksik
tuksik / windowsnetworking.bat
Created January 28, 2016 06:26 — forked from alexandrinos/windowsnetworking.bat
Windows - Firewall / PortForwarding / Network
# ------------------ NETSH ---------------
#
#for help: $ netsh /?
#NETSTAT
#
#usefull
netstat -bn
@tuksik
tuksik / mail_cmd.md
Created June 1, 2015 16:48
Linux mail command examples – send mails from command line
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tuksik
tuksik / docker-on-android.md
Created April 8, 2020 22:33 — forked from arno01/docker-on-android.md
Docker on Android

WORK IN PROGRESS

Docker on Android

Setup:

Samsung Galaxy Tab S5e SM-T720
Android Pie on Linux 4.9.112 (not rooted)
Termux
ssh_authorized_keys:
- github:tuksik
hostname: k3osm
k3os:
dns_nameservers:
- 8.8.8.8
- 1.1.1.1
ntp_servers:
- 0.us.pool.ntp.org
- 1.us.pool.ntp.org
@tuksik
tuksik / add-vagrant.sh
Last active January 5, 2020 18:44
Add Vagrant user in k3os
sudo adduser --disabled-password --gecos \"\" vagrant
echo vagrant:vagrant | sudo chpasswd
sudo mkdir -p /home/vagrant/.ssh
sudo chmod 0700 /home/vagrant/.ssh
sudo wget --no-check-certificate https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub -O /home/vagrant/.ssh/authorized_keys
sudo chmod 0600 /home/vagrant/.ssh/authorized_keys
sudo chown -R vagrant /home/vagrant/.ssh
sudo echo 'vagrant ALL=(ALL:ALL) ALL' >> /etc/sudoers
sudo mkdir -p /home/rancher/.ssh
sudo chmod 0700 /home/rancher/.ssh
@tuksik
tuksik / K3os-packer-vagrant-virtualbox.md
Created January 2, 2020 14:56 — forked from mak3r/K3os-packer-vagrant-virtualbox.md
Build and run k3os using packer, vagrant and virtualbox

Packer and Vagrant resources to build k3os in VirtualBox

Requirements

  • packer
  • vagrant
  • virtualbox

Build and Run

  1. packer build k3os.json
  2. vagrant up