Skip to content

Instantly share code, notes, and snippets.

View ss23's full-sized avatar

☃ Stephen Shkardoon ☃ ss23

View GitHub Profile
root@OpenWrt:~# ping6 ipv6.google.com
PING ipv6.google.com (2404:6800:4006:802::1013): 56 data bytes
ping6: sendto: Network is unreachable
root@OpenWrt:~# ifconfig
br-lan Link encap:Ethernet HWaddr 00:24:A5:AF:35:17
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::224:a5ff:feaf:3517/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:23488 errors:0 dropped:0 overruns:0 frame:0
TX packets:16448 errors:0 dropped:0 overruns:0 carrier:0
root@OpenWrt:~# cat /etc/config/network
config 'interface' 'loopback'
option 'ifname' 'lo'
option 'proto' 'static'
option 'ipaddr' '127.0.0.1'
option 'netmask' '255.0.0.0'
config 'interface' 'lan'
option 'ifname' 'eth0'
2011-12-20 12:51:19 [System] (play) -> 0 of 26656000 streamed; not collecting stats
2011-12-20 12:51:19 [System] (play) -> Stream ended at 0 bytes out of 26656000
2011-12-20 12:51:19 [ampache] (Query) -> UPDATE `session` SET `value`='userdata|a:2:{s:11:\"preferences\";a:39:{s:8:\"download\";s:1:\"1\";s:17:\"popular_threshold\";s:2:\"10\";s:11:\"sample_rate\";s:3:\"256\";s:10:\"site_title\";s:37:\"Ampache :: Pour l\'Amour de la Musique\";s:10:\"lock_songs\";N;s:15:\"force_http_play\";s:1:\"1\";s:9:\"http_port\";s:2:\"80\";s:20:\"localplay_controller\";s:3:\"mpd\";s:9:\"play_type\";s:11:\"xspf_player\";s:4:\"lang\";s:5:\"en_US\";s:13:\"playlist_type\";s:3:\"m3u\";s:10:\"theme_name\";s:7:\"classic\";s:23:\"ellipse_threshold_album\";s:2:\"27\";s:24:\"ellipse_threshold_artist\";s:2:\"27\";s:23:\"ellipse_threshold_title\";s:2:\"27\";s:12:\"offset_limit\";s:2:\"50\";s:15:\"localplay_level\";s:3:\"100\";s:21:\"allow_stream_playback\";s:1:\"1\";s:25:\"allow_democratic_playback\";s:1:\"1\";s:24:\"allow_localplay_playba
@ss23
ss23 / admin - EditForm
Created March 16, 2012 02:01
omfg err0r
ERROR [User Error]: Couldn't run query:
INSERT INTO "EditableFormField_versions" ("Required", "CustomRules", "CustomSettings", "Default", "CustomErrorMessage", "LastEdited", "ClassName", "Created", "Name", "Title", "Sort", "CanDelete", "CustomParameter", "ParentID", "Version", "RecordID", "AuthorID") VALUES ('1', 'a:0:{}', 'a:5:{s:10:\"RightTitle\";s:0:\"\";s:9:\"MinLength\";s:0:\"\";s:9:\"MaxLength\";s:2:\"32\";s:4:\"Rows\";s:1:\"1\";s:10:\"ShowOnLoad\";s:4:\"Show\";}', null, null, '2012-03-16 22:06:08', 'EditableTextField', '2009-08-07 09:41:44', 'EditableTextField7', 'Name: (*)', '1', '1', null, '18', 1, 7, 2)
Unknown column 'CanDelete' in 'field list'
IN POST /admin/EditForm
Line 525 in /home/www/danielappleton/steel-frame.co.nz/public/sapphire/core/model/MySQLDatabase.php
Source
======
516: }
<html><head>
<title>Installing SilverStripe...</title>
<link rel="stylesheet" type="text/css" href="themes/blackcandy/css/layout.css">
<link rel="stylesheet" type="text/css" href="themes/blackcandy/css/typography.css">
<link rel="stylesheet" type="text/css" href="themes/blackcandy/css/form.css">
<link rel="stylesheet" type="text/css" href="sapphire/dev/install/install.css">
<script src="sapphire/thirdparty/jquery/jquery.js"></script>
</head>
<body>
<div id="BgContainer">
1 2 ms 2 ms 2 ms 192.168.0.1
2 38 ms 80 ms 25 ms hax.me.plz.i.dare.u.telstraclear.net [121.75.0.1]
3 28 ms 26 ms 26 ms ie2-g-0-0-0.telstraclear.net [203.98.50.2]
4 55 ms 26 ms 26 ms ge-0-2-0-1.xcore1.acld.telstraclear.net [203.98.
50.251]
5 27 ms 28 ms 27 ms 203.167.233.10
6 152 ms 151 ms 152 ms i-0-6-4-0.tlot-core01.bx.reach.com [202.84.142.1
10]
7 152 ms 151 ms 156 ms i-4-1.eqla01.bi.reach.com [202.40.149.130]
8 152 ms 151 ms 151 ms cogent-peer.eqla01.pr.reach.com [134.159.63.198]
#include "/home/200/ex2/lib.h"
void counter(int value, int direction) {
if (direction != 1) {
direction = -1;
}
int i;
for (i = 0; (i == 0) || (i == value); i = i + direction) {
writessd(i);
String line = null;
while ((line = in.readLine()) != null) {
System.out.println(in.readLine());
}
ss23@Crisp ~/comp203/assignment1 $ javac *.java
UnicodeTest.java:3: warning: unmappable character for encoding ASCII
String test = new String("???", "UTF8");
^
UnicodeTest.java:3: warning: unmappable character for encoding ASCII
String test = new String("???", "UTF8");
^
UnicodeTest.java:3: warning: unmappable character for encoding ASCII
String test = new String("???", "UTF8");
^
ss23@Crisp ~/comp203/assignment1 $ java UnicodeTest "わ" | xxd
0000000: 3f3f 3f0a ???.
ss23@Crisp ~/comp203/assignment1 $ echo "わ" | xxd
0000000: e382 8f0a ....