Skip to content

Instantly share code, notes, and snippets.

View daxxog's full-sized avatar

David Volm daxxog

View GitHub Profile
@int128
int128 / query.graphql
Created September 30, 2020 07:31
Get files in a repository using GitHub GraphQL
query {
repository(owner: "int128", name: "kubelogin") {
defaultBranchRef {
target {
... on Commit {
file(path: "/.github/workflows") {
type
object {
... on Tree {
entries {
@kislayverma
kislayverma / steve-yegge-google-platform-rant.md
Created December 26, 2019 07:11
A copy (for posterity) of Steve Yegge's internal memo in Google about what platforms are and how Amazon learnt to build them

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't really have SREs and they make engineers pretty much do everything,

@daxxog
daxxog / hamachi-ubuntu.sh
Last active June 26, 2023 12:53
install hamachi on ubuntu 18.04
#!/bin/bash
#curl -L tinyurl.com/gothamachi | sh
cd ~/Downloads
wget https://www.vpn.net/installers/logmein-hamachi_2.1.0.198-1_amd64.deb
sudo apt -y install ./logmein-hamachi_2.1.0.198-1_amd64.deb
sudo hamachi check-update
sudo hamachi login
echo now run ->>
echo sudo hamachi attach [email]
@daxxog
daxxog / getchrome.sh
Last active August 16, 2019 16:11
Get Google Chrome for linux
#!/bin/bash
#curl -L tinyurl.com/gotchrome | sh
cd ~/Downloads
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt -y install ~/Downloads/google-chrome-stable_current_amd64.deb
@daxxog
daxxog / getsublime.sh
Last active August 16, 2019 16:12
quickly install sublime text on target linux machine
#!/bin/sh
#oneliner(s)
#curl -L https://tinyurl.com/gotsublime | sh
#curl -L https://tinyurl.com/getsublime-sh | sh
#apt
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
sudo apt-get install -y apt-transport-https
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt-get update
@daxxog
daxxog / sshvncaio.sh
Last active August 16, 2019 16:18
All in one script to config ssh and vnc for a local env.
#!/bin/bash
#sudo apt install -y curl
#curl -L tinyurl.com/ssh-0-dxg | sh
#curl -L tinyurl.com/dxg-0-ssh | sh
sudo apt update
sudo apt install -y openssh-server tightvncserver autocutsel openbox-lxde-session net-tools
#sshin config
curl -L bit.ly/29v2OyX | sh
@daxxog
daxxog / clambuntu.sh
Last active June 24, 2019 18:17
install clam on Ubuntu 18.10
#!/bin/bash
#curl -L https://gist.githubusercontent.com/daxxog/a2f5db9cbe5fd02770764ba183dc6504/raw/clambuntu.sh | sh
sudo /etc/init.d/clamd stop
cd ~
mkdir dev
cd dev
CLAMVERSION=1.4.17
rm -rf "clam-$CLAMVERSION/"
curl -L "https://github.com/nochowderforyou/clams/releases/download/v$CLAMVERSION/clam-$CLAMVERSION-linux64.tar.gz" | tar xvz
@rponte
rponte / get-latest-tag-on-git.sh
Last active March 11, 2024 07:50
Getting latest tag on git repository
# The command finds the most recent tag that is reachable from a commit.
# If the tag points to the commit, then only the tag is shown.
# Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object
# and the abbreviated object name of the most recent commit.
git describe
# With --abbrev set to 0, the command can be used to find the closest tagname without any suffix:
git describe --abbrev=0
# other examples
@Brainiarc7
Brainiarc7 / fstab-generate-arch.md
Last active March 18, 2024 13:51
Generate fstab in Arch Linux

First, install arch-install-scripts:

sudo pacman -S --needed arch-install-scripts

Secondly, mount your partitions in all the internal hard drives.

Thirdly, generate and validate your config by piping it out to stdout:

@daxxog
daxxog / all-tools--shortcuts-install.sh
Last active June 20, 2019 19:31
install all my tools and shortcuts
#!/bin/sh
#sudo apt-get install -y curl
#curl -L tinyurl.com/dxgshortcuts | sh
sudo apt-get install -y git
curl https://gist.githubusercontent.com/daxxog/615fae60e1974828e865/raw/rmr-dg-clone-install.sh | sh
curl https://gist.githubusercontent.com/daxxog/202792236c0a21339ab4/raw/install-git-shortcuts.sh | sh
curl https://gist.githubusercontent.com/daxxog/cfb990f5cbe6805c0cf7/raw/uid-gid-install.sh | sh
curl https://gist.githubusercontent.com/daxxog/8d9895d01f4f1ffea1a1/raw/pushbranch-install.sh | sh