bgproute () {
if [ -z "$1" ]
then
echo "Usage: bgproute IP-address"
return 1
fi
dig +short TXT `echo $1 | awk -F. '{print $4 "." $3 "." $2 "." $1 ".aspath.routeviews.org" }'` | awk -F\" '{print "AS path: " $2 "\nRoute: " $4 "/" $6}'
}
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
Reach me at https://twitter.com/nusenu_ (or via email) | |
if you have more details. | |
+---------------------+----------+-----------------+---------------------+--------------------------------+ | |
| last_seen | FP | IP | nickname | contact | comments | |
+---------------------+----------+-----------------+---------------------+--------------------------------+ | |
| 2017-05-14 22:00:00 | 9E339307 | 37.187.18.109 | 1001001de2 | Admin 0671 D82 F F0 E1 9 3AA | | |
| 2017-05-18 23:00:00 | 0C2E5558 | 51.255.211.2 | AmnesicProsecutor | NULL | | |
| 2017-05-15 15:00:00 | 0639612F | 92.222.20.130 | Baki | [email protected] | seized (confirmed by operator) | |
| 2017-05-12 17:00:00 | F0A13CA9 | 163.172.185.161 | caf4f922534cea81d13 | NULL | |
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
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix |
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
FROM ruby:2.3-onbuild | |
VOLUME /opt/postal/config | |
ENV LOG_TO_STDOUT 1 | |
ENV AM_CONFIG_ROOT /opt/postal/config | |
RUN gem install procodile | |
RUN apt-get update -qq && apt-get install -yqq nodejs |
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
package enum_example | |
import ( | |
"bytes" | |
"encoding/json" | |
) | |
// TaskState represents the state of task, moving through Created, Running then Finished or Errorred | |
type TaskState int |
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
#!/boot/bzImage | |
# Linux kernel userspace initialization code, translated to bash | |
# (Minus floppy disk handling, because seriously, it's 2017.) | |
# Not 100% accurate, but gives you a good idea of how kernel init works | |
# GPLv2, Copyright 2017 Hector Martin <[email protected]> | |
# Based on Linux 4.10-rc2. | |
# Note: pretend chroot is a builtin and affects the current process | |
# Note: kernel actually uses major/minor device numbers instead of device name |
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
https://download.cyanogenmod.org/get/tf201-latest.zip | |
https://download.cyanogenmod.org/get/tf700t-latest.zip | |
https://download.cyanogenmod.org/get/tf300t-latest.zip | |
https://download.cyanogenmod.org/get/tf701t-latest.zip | |
https://download.cyanogenmod.org/get/Z00A-latest.zip | |
https://download.cyanogenmod.org/get/Z008-latest.zip | |
https://download.cyanogenmod.org/get/Z00L-latest.zip | |
https://download.cyanogenmod.org/get/Z00T-latest.zip | |
https://download.cyanogenmod.org/get/P024-latest.zip | |
https://download.cyanogenmod.org/get/encore-latest.zip |
Server Price Breakdown: DigitalOcean, Amazon AWS LightSail, Vultr, Linode, OVH, Hetzner, Scaleway/Online.net:
Permalink: git.io/vps
Provider | Type | RAM | Cores | Storage | Transfer | Network | Price |
---|
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.