Skip to content

Instantly share code, notes, and snippets.

View v6's full-sized avatar
💭
// , ALWAYS serious at http://basanese.com

Nathan Basanese v6

💭
// , ALWAYS serious at http://basanese.com
View GitHub Profile
@v6
v6 / dontgochasing.sh
Last active August 29, 2018 23:24
// , Cool Waterfalls for hacker-ey-lookin goodniss
for a in $( seq 1 20 ); do for i in $( ls ); do tree; done; done
sudo tcpdump -qlp -i en0 | grep --color=auto -e '.*>'
brew install wireshark; sudo tshark --color
cat /dev/urandom
## Set a profile with courier new for the font, and 00ff27 for the foreground color before starting this BS
@bogaotory
bogaotory / install_bionic_on_x1c6.md
Last active February 2, 2024 17:01
Install Ubuntu 18.04 on Thinkpad X1 Carbon 6th Generation

Install Ubuntu 18.04 on Thinkpad X1 Carbon 6th Gen/2018

X1C6 Type: 20KG*

Bionic works out of the box on the new 2018 X1 Carbon. The X1C6 is a beautiful laptop, and Bionic is the best Ubuntu yet. Users of all levels of experties/experiences are recommended to try this combination. The purpose of this documentation is to improve the user's experience.

BIOS/UEFI Changes

Following changes are required by the DSDT patch:

  1. Turn off Secure Boot
@v6
v6 / vault_on_an_ubuntu_vagrant.md
Last active August 17, 2018 22:34
// , Short description of an installation of Vault 0.10.1 on an Ubuntu 18.04 Vagrant box

After I installed Vagrant from http://vagrantup.com/downloads.html, I used the following set of commands to make a Vagrant environment for testing Vault:

mkdir -p ~/proj/vaulttest/ ; cd ~/proj/vaulttest/ ; vagrant init ubuntu/bionic64 ; vagrant up && vagrant ssh

After this, I checked to make sure I was on vagrant by looking at my command prompt for vagrant, and installed vault in my Vagrant machine:

wget https://releases.hashicorp.com/vault/0.10.1/vault_0.10.1_linux_amd64.zip && ls && sudo apt-get install -y unzip && unzip vault_0.10.1_linux_amd64.zip && sudo mv vault /usr/local/bin/vault && vault -h

@slackpad
slackpad / bootstrap.md
Last active September 27, 2020 17:57
Bootstrapping Consul Servers with Version 8 ACLs Enabled (v0.8.1)
@kekru
kekru / add CA cert on CentOS Debian Ubuntu.md
Last active October 23, 2023 08:21
Add CA cert to local trust store on CentOS, Debian or Ubuntu
  • Open a webpage that uses the CA with Firefox
  • Click the lock-icon in the addressbar -> show information -> show certificate
  • the certificate viewer will open
  • click details and choose the certificate of the certificate-chain, you want to import to CentOS
  • click "Export..." and save it as .crt file
  • Copy the .crt file to /etc/pki/ca-trust/source/anchors on your CentOS machine
  • run update-ca-trust extract
  • test it with wget https://thewebsite.org
@v6
v6 / bcoin.service
Created March 26, 2017 18:38
// , sudo service bcoin start
[Unit]
Description=BCoin server
After=network.target auditd.service
[Service]
User=root
ExecStart=/home/bcoin/bcoin/bin/bcoin --network "testnet" --nodes "seed.tbtc.petertodd.org,testnet-seed.bluematt.me,testnet-seed.bitcoin.schildbach.de" --host "\'::\'" --public-host 104.197.196.156
Type=simple
RestartSec=60
Restart=on-failure
@roadrunner2
roadrunner2 / 0 Linux-On-MBP-Late-2016.md
Last active February 29, 2024 16:29
Linux on MacBook Pro Late 2016 and Mid 2017 (with Touchbar)

Introduction

This is about documenting getting Linux running on the late 2016 and mid 2017 MPB's; the focus is mostly on the MacBookPro13,3 and MacBookPro14,3 (15inch models), but I try to make it relevant and provide information for MacBookPro13,1, MacBookPro13,2, MacBookPro14,1, and MacBookPro14,2 (13inch models) too. I'm currently using Fedora 27, but most the things should be valid for other recent distros even if the details differ. The kernel version is 4.14.x (after latest update).

The state of linux on the MBP (with particular focus on MacBookPro13,2) is also being tracked on https://github.com/Dunedan/mbp-2016-linux . And for Ubuntu users there are a couple tutorials (here and here) focused on that distro and the MacBook.

Note: For those who have followed these instructions ealier, and in particular for those who have had problems with the custom DSDT, modifying the DSDT is not necessary anymore - se

@jpatel3
jpatel3 / newrelic-plugin-agent.cfg
Created December 14, 2016 22:15
New Relic plugin agent sample configuration file
%YAML 1.2
---
Application:
license_key: REPLACE_WITH_REAL_KEY
wake_interval: 60
#newrelic_api_timeout: 10
#proxy: http://localhost:8080
#apache_httpd:
# name: hostname
@DonRichards
DonRichards / vagrantFile.md
Last active December 29, 2022 13:33
Conditional Vagrant environments

Conditional Vagrant environments

2 options to start vagrant

command line with pass-through variable or alias

Run while passing variable to vagrantfile

$ ENV='local' vagrant up 

Add an alias

@voxxit
voxxit / RUNBOOK.md
Created April 29, 2016 14:26
Example of a solid run book/operations manual

Run Book / Operations Manual

  1. Table of Contents
  2. System Overview
    • Service Overview
    • Contributing Applications, Daemons, and Windows Services
    • Hours of Operation
    • Execution Design
    • Infrastructure and Network Design
    • Resilience, Fault Tolerance and High-Availability