Skip to content

Instantly share code, notes, and snippets.

View jesusvazquez's full-sized avatar
👣
Leaving footprints all over

Jesus Vazquez jesusvazquez

👣
Leaving footprints all over
View GitHub Profile

SSH Cheatsheet

Commands

Generate strong ed25519 key

ssh-keygen -t ed25519 -b 4096

References for the above command

@jesusvazquez
jesusvazquez / multiple-push-urls.md
Created July 31, 2018 12:43 — forked from bjmiller121/multiple-push-urls.md
Add multiple push URLs to a single git remote

Sometimes you need to keep two upstreams in sync with eachother. For example, you might need to both push to your testing environment and your GitHub repo at the same time. In order to do this simultaneously in one git command, here's a little trick to add multiple push URLs to a single remote.

Once you have a remote set up for one of your upstreams, run these commands with:

git remote set-url --add --push [remote] [original repo URL]
git remote set-url --add --push [remote] [second repo URL]

Once set up, git remote -v should show two (push) URLs and one (fetch) URL. Something like this:

Fri Jun 29 14:35:32 UTC 2018

Gcloud Cheatsheet

Configurations

Create them using             gcloud init
Which config is set           gcloud info
List configurations           gcloud config configurations list
Change between them           gcloud config configuration activate <config>
Set project in current config gcloud config set project <project>
@jesusvazquez
jesusvazquez / keybase.md
Created October 16, 2017 20:04
Keybase

Keybase proof

I hereby claim:

  • I am jesusvazquez on github.
  • I am jesusvazquez (https://keybase.io/jesusvazquez) on keybase.
  • I have a public key ASA9Y_Fqy7kUcb6wiXIeVdL_RAo7p-lgsTM3cGrYwNtKXAo

To claim this, I am signing this object:

8.2.3. HTTP log format
----------------------
The HTTP format is the most complete and the best suited for HTTP proxies. It
is enabled by when "option httplog" is specified in the frontend. It provides
the same level of information as the TCP format with additional features which
are specific to the HTTP protocol. Just like the TCP format, the log is usually
emitted at the end of the session, unless "option logasap" is specified, which
generally only makes sense for download sites. A session which matches the
"monitor" rules will never logged. It is also possible not to log sessions for
@jesusvazquez
jesusvazquez / ctags.setup
Created September 11, 2017 20:16 — forked from nazgob/ctags.setup
ctags setup on mac
# you have ctags but it does not work...
$ ctags -R --exclude=.git --exclude=log *
ctags: illegal option -- R
usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
#you need to get new ctags, i recommend homebrew but anything will work
$ brew install ctags
#alias ctags if you used homebrew
$ alias ctags="`brew --prefix`/bin/ctags"
@jesusvazquez
jesusvazquez / redis.nomad
Created August 22, 2017 14:46
Example redis.nomad template with ephemeral disk and data persistance
job "redis" {
region = "global"
datacenters = ["test"]
type = "service"
constraint {
attribute = "${node.class}"
value = "default"
}
@jesusvazquez
jesusvazquez / bash_cmds.md
Last active September 14, 2018 08:53
Bash Useful Commands

Linux Stuff

for i in ls ; do stat $i ; done

iotop - Read Write speeds iftop - Network current speeds

Disks

Test write speed

@jesusvazquez
jesusvazquez / nomad_cheatsheet.md
Created July 31, 2017 14:09
Nomad Cheatsheet

nomad inspect enterprise nomad logs nomad logs -f -job enterprise enterprise nomad status enterprise