forked from ryanb/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lein deploy and misc networking cheat sheets
- Loading branch information
1 parent
d01c039
commit a57d775
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
||
|