Skip to content

Commit

Permalink
lein deploy and misc networking cheat sheets
Browse files Browse the repository at this point in the history
  • Loading branch information
metasoarous committed Nov 10, 2016
1 parent d01c039 commit a57d775
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
15 changes: 15 additions & 0 deletions cheat/lein-deploy
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

There is a lot of unspoken magick around lein releases.

1. Leave project with `-SNAPSHOT` version (if alpha or beta, do `0.0.1-alpha1-SNAPSHOT` (e.g.).
2. Create an uberjar of the project `lein uberjar`.
3. Deploy the snapshot:
a. Directly as a snapshot: `lein deploy clojars`
b. As a release: `lein deploy clojars datsync 0.0.1-alpha1-SNAPSHOT`
4. Increment version number.

Keep in mind it pays to have clojars credentials set up in `~/.lein/credentials.clj.pgp`, and you'll need pgp
with a working agent to sign releases as well.
I had to upgrade from gpg1 to gpg2.


38 changes: 38 additions & 0 deletions cheat/networking
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

## Finding all listening ports

nmap -sT -O server

server can be either localhost, an ip, etc



## Find all open ip addresses in a range

It should be possible to do with with

nmap -sP "192.168.1.*"

But this seems to frequently miss things.
You can always just use Angry IP scanner.
This has the added advantage of being multithreaded for very much fastness.


# Wireless / wifi

## Show all network devices:

ifconfig

## Scan for wireless networks

iwlist wlanX s

## Connect to wpa secured network

sudo iwconfig wlanX essid NAMEOFNETWORK key PASSWORDOFNETWORK

Note that the key combo is not required if there's no password



0 comments on commit a57d775

Please sign in to comment.