Skip to content

Instantly share code, notes, and snippets.

View ericoc's full-sized avatar
💭
living @ 🌎

Eric O'Callaghan ericoc

💭
living @ 🌎
View GitHub Profile
$ php -r '$x = 1400; while ($x < 1414) { $x++; echo base_convert($x, 10, 36) . "\n"; }'
12x
12y
12z
130
131
132
133
134
135
eric@ericoc:~$ echo 'php.net' | bash gaw.sh
http://gaw.sh/3n2
eric@ericoc:~$ bash gaw.sh php.net phprox
http://gaw.sh/phprox
eric@ericoc:~$ echo 'php.net' | bash gaw.sh yaboiii
http://gaw.sh/yaboiii
#!/bin/bash
usage="usage: gaw.sh <url> [alias]
or: echo '<url>' | gaw.sh [alias]"
# try grabbing stdin to see if a url was piped in
input=$(timeout 1 cat)
if [ -n "$input" ]; then
if [ -n "$1" ]; then
Pid: 1, comm: init Not tainted 2.6.32-431.29.2.el6.x86_64 #1
Call Trace:
<IRQ> [<ffffffff81071b37>] ? warn_slowpath_common+0x87/0xc0
[<ffffffff81071b8a>] ? warn_slowpath_null+0x1a/0x20
[<ffffffff81030b6c>] ? native_smp_send_reschedule+0x5c/0x60
[<ffffffff8105dd68>] ? scheduler_tick+0x208/0x260
[<ffffffff810aca70>] ? tick_sched_timer+0x0/0xc0
[<ffffffff8108404e>] ? update_process_times+0x6e/0x90
[<ffffffff810acad6>] ? tick_sched_timer+0x66/0xc0
[<ffffffff810ec6e4>] ? __rcu_process_callbacks+0x54/0x350
#!/bin/bash
usage="usage: gaw.sh <url> [alias]
or: echo '<url>' | gaw.sh [alias]"
# try grabbing stdin to see if a url was piped in
input=$(timeout 1 cat)
if [ -n "$input" ]; then
if [ -n "$1" ]; then
$ curl -sI 'https://www.pinterest.com/inspiredcases/'
HTTP/1.1 200 OK
Accept-Ranges: bytes
Age: 0
Content-Security-Policy: default-src 'self' https://*.pinterest.com https://*.pinimg.com *.pinterest.com *.pinimg.com *.google.com connect.facebook.net *.google-analytics.com https://*.facebook.com *.facebook.com www.googleadservices.com googleads.g.doubleclick.net *.tiles.mapbox.com *.online-metrix.net 'unsafe-inline' 'unsafe-eval'; frame-src *; img-src *; report-uri /_/_/csp_report/
Content-Type: text/html; charset=utf-8
Date: Sat, 20 Dec 2014 19:57:51 GMT
Pinterest-Breed: CORGI
Pinterest-Generated-By: ngapp2-dc3c4ff7
Pinterest-Version: fc546f4
MariaDB [gawsh]> select min(id) as min, max(id) as max, max(id) - min(id) as difference from urls where time > now() - interval 1 month;
+-------+-------+------------+
| min | max | difference |
+-------+-------+------------+
| 52159 | 77033 | 24874 |
+-------+-------+------------+
1 row in set (0.04 sec)
MariaDB [gawsh]> select min(id) as min, max(id) as max, max(id) - min(id) as difference from urls where time > now() - interval 1 day;
+-------+-------+------------+
root@ericoc:/srv/ericoc# cat blerhp
23.111.53.64
225.123.435.123
23.111.53.64
23.111.53.64
225.123.435.123
23.111.53.64
23.111.53.64
225.123.435.123
23.111.53.64
air:~ eric$ ssh a.root-servers.net
^C
air:~ eric$ ssh b.root-servers.net
The authenticity of host 'b.root-servers.net (2001:500:84::b)' can't be established.
RSA key fingerprint is 0f:f5:c4:b7:99:9b:27:75:71:38:e4:5f:56:e6:d5:58.
Are you sure you want to continue connecting (yes/no)? ^C
air:~ eric$ ssh c.root-servers.net
^C
air:~ eric$ ssh d.root-servers.net
The authenticity of host 'd.root-servers.net (2001:500:2d::d)' can't be established.
@ericoc
ericoc / cgitrc
Created July 5, 2015 19:14
/etc/cgitrc
root@ericoc:/etc/apache2/sites-available# cat /etc/cgitrc
#
# cgit config
# see cgitrc(5) for details
css=/cgit-css/cgit.css
logo=/cgit-css/cgit.png
# Highlight source code with python pygments-based highlighter
source-filter=/usr/lib/cgit/filters/syntax-highlighting.py