Skip to content

Instantly share code, notes, and snippets.

View darkgeek's full-sized avatar
🎯
Focusing

Justin Yang darkgeek

🎯
Focusing
View GitHub Profile
@darkgeek
darkgeek / Mojolicious error log
Created September 10, 2014 17:43
Mojolicious build error on Archlinux arm Raspberry pi
cpanm (App::cpanminus) 1.7009 on perl 5.020000 built for armv6l-linux-thread-multi
Work directory is /home/justin/.cpanm/work/1410367488.8523
You have make /usr/bin/make
You have LWP 6.08
You have /usr/bin/tar: tar (GNU tar) 1.28
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
这是自由软件:您可以自由地更改并重新发布它。
在法律所允许的范围内不含任何担保。
@darkgeek
darkgeek / brute_force_attack_rpi
Created October 28, 2014 17:26
Brute Force Attack On My ArchLinux ARM on Raspberry Pi
-- Logs begin at 四 1970-01-01 08:00:04 CST, end at 三 2014-10-29 01:19:57 CST. --
1月 01 08:00:49 alarmpi systemd[1]: Starting OpenSSH Daemon...
1月 01 08:00:49 alarmpi systemd[1]: Started OpenSSH Daemon.
1月 01 08:00:50 alarmpi sshd[210]: Server listening on 0.0.0.0 port 22.
1月 01 08:05:00 alarmpi systemd[1]: Stopping OpenSSH Daemon...
1月 01 08:05:00 alarmpi systemd[1]: Stopped OpenSSH Daemon.
-- Reboot --
1月 01 08:00:07 alarmpi systemd[1]: Started OpenSSH Daemon.
1月 01 08:00:08 alarmpi sshd[114]: Server listening on 0.0.0.0 port 22.
1月 01 08:34:59 alarmpi systemd[1]: Stopping OpenSSH Daemon...
@darkgeek
darkgeek / CMakeCache.txt
Created April 3, 2015 01:41
The CMakeCache.txt file after building chinese/fcitx failure
# This is the CMakeCache file.
# For build in directory: /usr/ports/chinese/fcitx/work/fcitx-4.2.8.6
# It was generated by CMake: /usr/local/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
@darkgeek
darkgeek / .cshrc
Created April 22, 2015 04:52
My .cshrc file
# $FreeBSD: release/9.1.0/share/skel/dot.cshrc 242850 2012-11-10 06:05:04Z eadler $
#
# .cshrc - csh resource script, read at beginning of execution by each shell
#
# see also csh(1), environ(7).
# more examples available at /usr/share/examples/csh/
#
alias h history 25
alias j jobs -l
@darkgeek
darkgeek / gist:b34b0a2dd526e034e573
Created August 14, 2015 05:24
linux-c6-png-1.2.49_2 build log
====>> Building graphics/linux-c6-png
build started at Thu Aug 13 15:31:34 CST 2015
port directory: /usr/ports/graphics/linux-c6-png
building for: FreeBSD 10amd64-local-workstation-job-01 10.1-RELEASE-p10 FreeBSD 10.1-RELEASE-p10 amd64
maintained by: emulation@FreeBSD.org
Makefile ident: $FreeBSD: head/graphics/linux-c6-png/Makefile 393817 2015-08-09 19:14:13Z netchild $
Poudriere version: 3.1.7
Host OSVERSION: 1001000
Jail OSVERSION: 1001000
@darkgeek
darkgeek / how-to-view-source-of-chrome-extension.md
Last active August 28, 2015 15:25 — forked from paulirish/how-to-view-source-of-chrome-extension.md
How to view-source of a Chrome extension

Option 1: Command-line download extension as zip and extract

extension_id=jifpbeccnghkjeaalbbjmodiffmgedin   # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=unknown&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc" 
unzip -d "$extension_id-source" "$extension_id.zip"

Thx to crxviewer for the magic download URL.

@darkgeek
darkgeek / tsws
Last active September 6, 2015 17:44 — forked from dfletcher/tsws
Totally simple web server using Bash and netcat (nc)
#!/bin/bash
# --------------------------------
# Totally Simple Web Server (TSWS)
# --------------------------------
#
# (c) 2015 Dave Fletcher
# All Rights Reserved
#
# This is free and unencumbered software released into the public domain.
@darkgeek
darkgeek / dhcpd.conf
Last active October 12, 2015 05:17
dhcpd.conf
subnet 10.1.16.0 netmask 255.255.255.0 {
range 10.1.16.12 10.1.16.20;
option subnet-mask 255.255.255.0;
option routers 10.1.16.21;
option domain-name-servers 114.114.114.114, 114.114.115.115;
}
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
NetBSD 7.99.21 (RPI.201509271300Z) #0: Sun Sep 27 14:45:30 UTC 2015
builds@b48.netbsd.org:/home/builds/ab/HEAD/evbarm-earmv6hf/201509271300Z-obj/home/source/ab/HEAD/src/sys/arch/evbarm/compile/RPI
total memory = 448 MB
avail memory = 434 MB
@darkgeek
darkgeek / hostapd.conf
Created October 12, 2015 05:24
hostapd.conf
interface=urtwn0
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=darkgeek-wifi
macaddr_acl=0
auth_algs=1
wpa=2
wpa_passphrase=testkeytestkey1
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP