Grab the main page with all the links:
curl https://slackmojis.com/ > emoji
Open file in vim and run the following commands:
v/src=/d
%s/^.*http:/http:/g"
%s/?.*$//g
| #!/usr/bin/python | |
| import socket | |
| import sys | |
| if (len(sys.argv) != 2 or not sys.argv[1].isdigit()): | |
| print 'Usage: listen <port>', | |
| exit() | |
| p = int(sys.argv[1]) | |
| l = [] |
| # knife cheat | |
| ## Search Examples | |
| knife search "name:ip*" | |
| knife search "platform:ubuntu*" | |
| knife search "platform:*" -a macaddress | |
| knife search "platform:ubuntu*" -a uptime | |
| knife search "platform:ubuntu*" -a virtualization.system | |
| knife search "platform:ubuntu*" -a network.default_gateway |
| Puts on glasses: | |
| (•_•) | |
| ( •_•)>⌐■-■ | |
| (⌐■_■) | |
| Takes off glasses ("mother of god..."): | |
| (⌐■_■) | |
| ( •_•)>⌐■-■ |
| import requests | |
| #http://docs.python-requests.org/en/latest/user/quickstart/#post-a-multipart-encoded-file | |
| url = "http://localhost:5000/" | |
| fin = open('simple_table.pdf', 'rb') | |
| files = {'file': fin} | |
| try: | |
| r = requests.post(url, files=files) | |
| print r.text |
Grab the main page with all the links:
curl https://slackmojis.com/ > emoji
Open file in vim and run the following commands:
v/src=/d
%s/^.*http:/http:/g"
%s/?.*$//g
This is a CentOS-themed /etc/issue w/ hooks to update IP address and OS release upon ifup/ifdown. My motivation was that I was tired of logging into an otherwise headless box just to find the IP of the system so I can SSH to it.
|
Note
|
The issue.in file actually contains control characters to do the color
in the text. The easiest way to preserve that is to clone this gist and run
the install.sh script w/ sudo, which will copy the file and set the SELinux
|
| #!/bin/bash | |
| ### BEGIN INIT INFO | |
| # Provides: kibana | |
| # Required-Start: $remote_fs $syslog | |
| # Required-Stop: $remote_fs $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Make sense of a mountain of logs. | |
| ### END INIT INFO | |
| # Postfix stuff | |
| QUEUEID (?:[A-F0-9]{11}|NOQUEUE) | |
| EMAILADDRESSPART [a-zA-Z0-9_.+-=:]+ | |
| EMAILADDRESS %{EMAILADDRESSPART:local}@%{EMAILADDRESSPART:remote} | |
| RELAY (?:%{HOSTNAME:relayhost}(?:\[%{IP:relayip}\](?::[0-9]+(.[0-9]+)?)?)?) | |
| #RELAY (?:%{HOSTNAME:relayhost}(?:\[%{IP:relayip}\](?:%{POSREAL:relayport}))) | |
| POSREAL [0-9]+(.[0-9]+)? | |
| #DELAYS %{POSREAL:a}/%{POSREAL:b}/%{POSREAL:c}/%{POSREAL:d} | |
| DELAYS (%{POSREAL}[/]*)+ | |
| DSN %{NONNEGINT}.%{NONNEGINT}.%{NONNEGINT} |