-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.xml
132 lines (107 loc) · 10.6 KB
/
index.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Hypo Lin</title>
<link>https://hlin.github.io/</link>
<description>Recent content on Hypo Lin</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<lastBuildDate>Sat, 26 Nov 2016 22:52:55 +0800</lastBuildDate>
<atom:link href="https://hlin.github.io/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Github pages custom domain with https support</title>
<link>https://hlin.github.io/2016-11-26-github-pages-custom-domain-with-https-support/</link>
<pubDate>Sat, 26 Nov 2016 22:52:55 +0800</pubDate>
<guid>https://hlin.github.io/2016-11-26-github-pages-custom-domain-with-https-support/</guid>
<description>TL;DR Must have a VPS and a domain name Make sure your domain name pointing to your VPS&rsquo; IP Apply ssl cert from Let’s Encrypt Config nginx Apply ssl cert from Let’s Encrypt We will use certbot to apply ssl cert from Let&rsquo;s Encrypt. For CentOS/RHEL7, certbot is available in EPEL.
$ sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm $ sudo yum install certbot Apply cert for my domain hypo.</description>
</item>
<item>
<title>Show group members in Django admin site</title>
<link>https://hlin.github.io/2016-11-16-show-group-members-in-django-admin-site/</link>
<pubDate>Wed, 16 Nov 2016 11:29:19 +0800</pubDate>
<guid>https://hlin.github.io/2016-11-16-show-group-members-in-django-admin-site/</guid>
<description>Django&rsquo;s admin site is very helpful but it&rsquo;s not convenient enough in some cases. For example, when you want to add several users to a group, you have to edit each user one by one and you can not see group members in group detail page. Create a file named admin.py with following contents can solve these problems(tested with Django 1.10).
# -*- coding: utf-8 -*- from django.contrib import admin from django.</description>
</item>
<item>
<title>Recover windows boot menu in grub2 after installing RHEL7</title>
<link>https://hlin.github.io/2016-11-14-recover-windows-boot-after-installing-rhel7/</link>
<pubDate>Mon, 14 Nov 2016 22:17:13 +0800</pubDate>
<guid>https://hlin.github.io/2016-11-14-recover-windows-boot-after-installing-rhel7/</guid>
<description>After installing RHEL7.3, Windows 10 disappeared from the grup boot menu. It&rsquo;s easy to recover it by following steps.
Enable EPEL repo $ sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm Install ntfs-3g $ sudo yum install ntfs-3g Regenerate grub.cfg $ sudo cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.old $ sudo grub2-mkconfig -o /boot/grub2/grub.cfg </description>
</item>
<item>
<title>Install raspbian in raspberry pi 2 using NOOBS</title>
<link>https://hlin.github.io/2016-08-20-install-raspbian-in-raspberry-pi-2/</link>
<pubDate>Sat, 20 Aug 2016 21:16:10 +0800</pubDate>
<guid>https://hlin.github.io/2016-08-20-install-raspbian-in-raspberry-pi-2/</guid>
<description>Download NOOBS(New Out Of Box Software)
Format SD card which is no less than 4GB as FAT32
Unzip the downloaded NOOBS(e.g NOOBS_v1_9_2.zip) to the root dir of the SD card
Power up PI
Select the system to install.</description>
</item>
<item>
<title>Custom PS1 for perlbrew</title>
<link>https://hlin.github.io/2013-11-25-custom-ps1-for-perlbrew/</link>
<pubDate>Mon, 25 Nov 2013 13:38:13 +0800</pubDate>
<guid>https://hlin.github.io/2013-11-25-custom-ps1-for-perlbrew/</guid>
<description>Add following code to ~/.bashrc, then run source ~/.bashrc
__perlbrew_ps1() { if hash perlbrew; then local v=&quot;$( perlbrew list | perl -lane'print $F[1] if /^\*/' )&quot; if [[ -n &quot;$v&quot; ]]; then printf &quot;${1:- (%s)}&quot; $v fi fi } PS1='[\u@\h$(__perlbrew_ps1) \W$]\$ ' Your PS1 will looks like:
[hlin@desktop-hlin (perl-5.10.1) ~]$ </description>
</item>
<item>
<title>pmtools - a suite of small programs to help manage modules</title>
<link>https://hlin.github.io/2013-09-04-pmtools/</link>
<pubDate>Wed, 04 Sep 2013 17:05:12 +0800</pubDate>
<guid>https://hlin.github.io/2013-09-04-pmtools/</guid>
<description>Install pmtools $ cpanm Devel::Loaded # or $ cpan i Devel::Loaded Commands # print out pod paths for the standard perl manpages $ basepods # print out pod paths for the standard perl faqs $ faqpods # print out paths for the standard modules $ modpods # grep out function definitions from perlfunc $ pfgrep # show what files a perl program loads at compile time $ plxload # show all installed versions and descs $ pmall # show a module's man page $ pman # page through a module file $ pmcat # check that Perl is set up correctly for Perl modules $ pmcheck # print out version and whatis description of perl modules $ pmdesc # print out module directories $ pmdirs # show a Perl class's methods $ pmeth # show a module's exports $ pmexp # cat out a function from a module $ pmfunc # find modules whose names match this pattern $ pminst # show what files a given module loads at compile time $ pmload # long list the module path $ pmls # show full path to a perl module $ pmpath # print out a module's version $ pmvers # grep in pod sections only $ podgrep # print the path to the pod $ podpath # print out all pod paths $ pods # show outline of pods $ podtoc # print out the paths to the modules that this site added $ sitepods # print out the paths to the modules that came with Perl $ stdpods Reference: http://search.</description>
</item>
<item>
<title>Parse datetime string via Time::Piece</title>
<link>https://hlin.github.io/2013-08-22-perl-parse-datetime-string/</link>
<pubDate>Thu, 22 Aug 2013 15:00:12 +0800</pubDate>
<guid>https://hlin.github.io/2013-08-22-perl-parse-datetime-string/</guid>
<description>Time::Piece becomes core module since perl v5.9.5
This module replaces the standard localtime and gmtime functions with implementations that return objects. It does so in a backwards compatible manner, so that using localtime/gmtime in the way documented in perlfunc will still return what you expect.
Convert STRING to Time::Piece object using the specified FORMAT:
Time::Piece-&gt;strptime(STRING, FORMAT); Example:
use warnings; use strict; use 5.010; use Time::Piece; my $string = '3/20/2013/3:48:26'; my $t = Time::Piece-&gt;strptime($string, &quot;%m/%d/%Y/%H:%M:%S&quot;); # seconds since the epoch say $t-&gt;epoch; # seconds say $t-&gt;sec; # minutes say $t-&gt;min; </description>
</item>
<item>
<title>HTML::Mason syntax</title>
<link>https://hlin.github.io/2013-07-18-html-mason-syntax/</link>
<pubDate>Thu, 18 Jul 2013 14:55:09 +0800</pubDate>
<guid>https://hlin.github.io/2013-07-18-html-mason-syntax/</guid>
<description>&lt;%init&gt; &lt;/%init&gt; This section contains initialization code that executes as soon as the component is called. Technically an &lt;%init&gt; block is equivalent to a &lt;%perl&gt; block at the beginning of the component.
Example:
&lt;%init&gt; # Fetch article from database my $dbh = DBI::connect ...; my $sth = $dbh-&gt;prepare(&quot;select * from articles where id = ?&quot;); $sth-&gt;execute($article_id); my ($headline, $date, $author, $body) = $sth-&gt;fetchrow_array; # Massage the fields $headline = uc($headline); my ($year, $month, $day) = split('-', $date); $date = &quot;$month/$day&quot;; &lt;/%init&gt; &lt;%cleanup&gt; &lt;/%cleanup&gt; This section contains cleanup code that executes just before the component exits.</description>
</item>
<item>
<title>Using p4merge with git on fedora 16</title>
<link>https://hlin.github.io/2012-09-14-using-p4merge-with-git-on-fedora-16/</link>
<pubDate>Fri, 14 Sep 2012 15:00:12 +0800</pubDate>
<guid>https://hlin.github.io/2012-09-14-using-p4merge-with-git-on-fedora-16/</guid>
<description> p4merge is Perforce Visual Merge and Diff Tools. download p4v.tgz for linux.
install p4merge tar zxf p4v.tgz sudo mv p4v-2012.1.500245/lib/p4v/ /lib/ sudo mv p4v-2012.1.500245/bin/p4merge* /bin/ config git add following lines into ~/.gitconfig
[diff] tool = p4merge [difftool &quot;p4merge&quot;] cmd = p4merge \\\&quot;$LOCAL\\\&quot; \\\&quot;$REMOTE\\\&quot; [merge] tool = p4merge [mergetool &quot;p4merge&quot;] cmd = p4merge \\\&quot;$BASE\\\&quot; \\\&quot;$LOCAL\\\&quot; \\\&quot;$REMOTE\\\&quot; \\\&quot;$MERGED\\\&quot; </description>
</item>
<item>
<title>Enable thinkpad trackpoint scrolling on RHEL6/7</title>
<link>https://hlin.github.io/2012-09-10-enable-thinkpad-trackpoint-scrolling/</link>
<pubDate>Mon, 10 Sep 2012 13:41:10 +0800</pubDate>
<guid>https://hlin.github.io/2012-09-10-enable-thinkpad-trackpoint-scrolling/</guid>
<description>Use xinput command to find the trackpoint device name $ xinput Create file /etc/X11/xorg.conf.d/10-thinkpad-trackpad-scroll.conf with following content. Note: The string after MatchProduct should be the trackpoint device name found in previous step.
Section &quot;InputClass&quot; Identifier &quot;Trackpoint Wheel Emulation&quot; MatchProduct &quot;TPPS/2 IBM TrackPoint&quot; MatchDevicePath &quot;/dev/input/event*&quot; Option &quot;EmulateWheel&quot; &quot;true&quot; Option &quot;EmulateWheelButton&quot; &quot;2&quot; Option &quot;Emulate3Buttons&quot; &quot;false&quot; Option &quot;XAxisMapping&quot; &quot;6 7&quot; Option &quot;YAxisMapping&quot; &quot;4 5&quot; EndSection Restart your computer Reference: - http://www.</description>
</item>
<item>
<title>Setup blog via github pages & Jekyll</title>
<link>https://hlin.github.io/2012-09-05-setup-blog-via-github-pages-and-jekyll/</link>
<pubDate>Wed, 05 Sep 2012 14:22:03 +0800</pubDate>
<guid>https://hlin.github.io/2012-09-05-setup-blog-via-github-pages-and-jekyll/</guid>
<description> setup github pages, ref http://pages.github.com/ config jekyll, ref https://github.com/mojombo/jekyll </description>
</item>
</channel>
</rss>