diff --git a/.sass-cache/02489c73d862e060640389629d6692bb14c5a48b/_base.scssc b/.sass-cache/02489c73d862e060640389629d6692bb14c5a48b/_base.scssc new file mode 100644 index 0000000..2bf29c6 Binary files /dev/null and b/.sass-cache/02489c73d862e060640389629d6692bb14c5a48b/_base.scssc differ diff --git a/.sass-cache/02489c73d862e060640389629d6692bb14c5a48b/_layout.scssc b/.sass-cache/02489c73d862e060640389629d6692bb14c5a48b/_layout.scssc new file mode 100644 index 0000000..2abf82f Binary files /dev/null and b/.sass-cache/02489c73d862e060640389629d6692bb14c5a48b/_layout.scssc differ diff --git a/.sass-cache/02489c73d862e060640389629d6692bb14c5a48b/_syntax-highlighting.scssc b/.sass-cache/02489c73d862e060640389629d6692bb14c5a48b/_syntax-highlighting.scssc new file mode 100644 index 0000000..f15dcba Binary files /dev/null and b/.sass-cache/02489c73d862e060640389629d6692bb14c5a48b/_syntax-highlighting.scssc differ diff --git a/_config.yml b/_config.yml index 6aefa0c..457c6c9 100644 --- a/_config.yml +++ b/_config.yml @@ -6,10 +6,10 @@ # 'jekyll serve'. If you change this file, please restart the server process. # Site settings -title: Ramblings of an archer archer -#email: maggioniclaudio1999[at]gmail.com +title: maggioni.xyz +email: claudio@maggioni.xyz description: > # this means to ignore newlines until "baseurl:" - Things which an Arch Linux user that also owns an recurve bow can write. + Eat polenta and do not counter-aim! baseurl: "" # the subpath of your site, e.g. /blog url: "http://praticamentetilde.github.io" # the base hostname & protocol for your site github_username: praticamentetilde diff --git a/_includes/footer.html b/_includes/footer.html index 34444dd..d7f63d3 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -3,5 +3,14 @@ -
Claudio Maggioni 2016
+
+ + Claudio Maggioni +
+ Content under + + CC BY-NC-SA 4.0 +
diff --git a/_includes/head.html b/_includes/head.html index abd6940..d8579bd 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -6,7 +6,6 @@ {% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %} - diff --git a/_includes/header.html b/_includes/header.html index 33fb1e3..997cb9c 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -7,11 +7,15 @@ {% for my_page in site.pages %} {% if my_page.title %} {% endif %} {% endfor %} {% include links.html %} + diff --git a/_includes/links.html b/_includes/links.html index 4390ecb..c8809c4 100644 --- a/_includes/links.html +++ b/_includes/links.html @@ -1,6 +1,3 @@ - diff --git a/_includes/self-hosted.html b/_includes/self-hosted.html new file mode 100644 index 0000000..9082900 --- /dev/null +++ b/_includes/self-hosted.html @@ -0,0 +1,13 @@ + + + + + diff --git a/_layouts/main.html b/_layouts/main.html index 61eeb5d..e7b85ed 100644 --- a/_layouts/main.html +++ b/_layouts/main.html @@ -3,9 +3,9 @@ {% include head.html %}
-
-

{{ site.title }}

-

{{ site.description }}

+
+

{{ site.title }}

+

{{ site.description }}

{% include header.html %}
diff --git a/_layouts/post.html b/_layouts/post.html index 979e61d..e56572d 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -5,7 +5,7 @@ layout: main

{{ page.title }}

-

{% if page.author %} • {% endif %}

+

{% if page.author %} • {% endif %}

diff --git a/_posts/2016-08-15-my-archery-setup.md b/_posts/2016-08-15-my-archery-setup.md deleted file mode 100644 index 5e5c6f2..0000000 --- a/_posts/2016-08-15-my-archery-setup.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -layout: post -title: "My archery setup!" -date: 2016-08-15 12:00:00 +0200 -categories: archery ---- -Hey there! This is my first post about archery, so I thought that I could have done a tour of my setup. As I wrote in the about page, I'm a Olmpic recurve archer based in Italy. I do this for almost five years! If you don't understand everything I say, you can check out the youtube channel [Nusensei](https://www.youtube.com/user/NUSensei/). It's a very good source, especially for beginners. - -![Bow1](https://dl.dropboxusercontent.com/s/efmap2qqvz6yapn/IMG_20160809_164942.jpg?dl=0) - -Ok, the setup. I own a *Fiberbow 5.99* LH (yes, I'm left handed) as my `riser`, the *central* part of the bow. It's made by carbon fiber so it's very lightweight. And is not painted too: It looks kinda cool. Many experienced archers could complain saying that carbon fiber bends and this is a bad thing. Instead, I think this gives you a nice feedback when you release. Also I tried to raise a friend's *Hoyt Prodigy XT*, and there's no way I'm going to lift such a weight on a regular base. Both the risers mentioned are high-range ones: I got mine 50% off because it wasn't the latest model and it had some minor ahestetic flaws. Also, this isn't my first one. In fact, I used to shoot with an Orange SF Premium: great bow for beginners! - -As limbs, I use a pair of *EXE College* rated at 34 pounds. Since I'm quite tall (limbs and riser toghether make a 70" tall bow), my draw length is around 29.5" and my draw weight is around 38 pounds. - -The sight is a *Shibuya Dual Click*. You can check out [this](https://www.youtube.com/watch?v=_ZvAnyxazpY) review by Nusensei (by the way, I knew his channel from this very video). - -As stabilizers, I use a set of *Fiberbow S.3* ones with yellow dampeners (for those who know the difference between the colours). - -As plunger button, I use a *EXE* one. It's a middle range one, but it seems very well built and it works fine! Also, I'm not going to spend 90€ for a `Cartel` one. - -My current arrows are a set of *Easton X7 Eclipse* spined at 2213. These are winter alluminium arrows, but since they are cheaper than carbon ones, I bought these as a total replacement of my *VAP V6* 600. Those, due to form flaws, were 2 inches too short. Oh, and I always used *Spin Wings* and *Elivanes*, a stiffer plastic italian replacement. - -Here's an image of the complete bow at the archery range: - -![Bow2](https://dl.dropboxusercontent.com/s/ril7kk9zd0l4vrf/IMG_20160809_175554.jpg?dl=0) diff --git a/_posts/2016-08-31-bam-on-github.md b/_posts/2016-08-31-bam-on-github.md deleted file mode 100644 index f0ea7a8..0000000 --- a/_posts/2016-08-31-bam-on-github.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -layout: post -title: "Just a quick post. BAM!, my first web app (still in development) is on Github!" -date: 2016-08-31 12:00:00 +0200 -categories: programming ---- -As you can read from the title, I'm publishing the uncompleted code of my first webapp. I'm working on this since 3 weeks, and I'm proud of what I've done so far. - -If you want to check out the repository, click [here](https://github.com/praticamentetilde/BAM). - -Maybe I can use Materialize css also for this jekyll site, or maybe this is another thing I say but I'm not going to do. Who knows. diff --git a/_posts/2016-09-13-css-update.md b/_posts/2016-09-13-css-update.md deleted file mode 100644 index 384e8d7..0000000 --- a/_posts/2016-09-13-css-update.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -layout: post -title: "Css updated!" -date: 2016-09-13 21:30:00 +0200 -categories: update ---- -As you can see, now the css is decent! Now I'm using [Skeleton](http://getskeleton.com) and a couple of custom sass lines that you can check out on Github. Currently, I'm a bit busy with BAM! so I'm not sure I'll find the time for this. Anyway, enjoy the new look! diff --git a/_sass/_base.scss b/_sass/_base.scss index a2aaebb..0e10b70 100644 --- a/_sass/_base.scss +++ b/_sass/_base.scss @@ -1,6 +1,4 @@ -/** - * Reset some basic elements - */ +/* Reset some basic elements */ body, h1, h2, h3, h4, h5, h6, p, blockquote, pre, hr, dl, dd, ol, ul, figure { @@ -8,88 +6,38 @@ dl, dd, ol, ul, figure { padding: 0; } - - -/** - * Basic styling - */ +/* Basic styling */ body { - font: $base-font-weight #{$base-font-size}/#{$base-line-height} $base-font-family; + font-weight: $base-font-weight; + font-size: $base-font-size; + line-height: $base-line-height; + font-family: $base-font-family; color: $text-color; background-color: $background-color; - -webkit-text-size-adjust: 100%; - -webkit-font-feature-settings: "kern" 1; - -moz-font-feature-settings: "kern" 1; - -o-font-feature-settings: "kern" 1; - font-feature-settings: "kern" 1; - font-kerning: normal; } - - -/** - * Set `margin-bottom` to maintain vertical rhythm - */ -h1, h2, h3, h4, h5, h6, -p, blockquote, pre, -ul, ol, dl, figure, -%vertical-rhythm { - margin-bottom: $spacing-unit / 2; -} - - - -/** - * Images - */ +/* Images */ img { max-width: 100%; vertical-align: middle; } - - -/** - * Figures - */ -figure > img { - display: block; -} - -figcaption { - font-size: $small-font-size; -} - - - -/** - * Lists - */ +/* Lists */ ul, ol { margin-left: $spacing-unit; } -li { - > ul, - > ol { - margin-bottom: 0; - } +/* Disable margin for lists */ +li > ul, li > ol { + margin-bottom: 0; } - - -/** - * Headings - */ +/* Headings */ h1, h2, h3, h4, h5, h6 { font-weight: $base-font-weight; } - - -/** - * Links - */ +/* Links */ a { color: $brand-color; text-decoration: none; @@ -104,8 +52,6 @@ a { } } - - /** * Blockquotes */ @@ -122,21 +68,20 @@ blockquote { } } - - /** * Code formatting */ -pre, -code { +pre, code { font-size: 15px; - /*border: 1px solid $grey-color-light;*/ - border-radius: 3px; background: rgb(66,66,66); } -code { - padding: 1px 5px; +code table { + margin: -8px -12px; +} + +pre table.rouge-table td { + padding: 0; } pre { @@ -186,19 +131,72 @@ pre { -/** - * Icons - */ -.icon { +/* Footer icons */ +.icon > svg { + display: inline-block; + width: 16px; + height: 16px; + vertical-align: middle; - > svg { - display: inline-block; - width: 16px; - height: 16px; - vertical-align: middle; - - path { - fill: $grey-color; - } + path { + fill: $grey-color; } } + +/** + * Basic layout rules + */ + +/* Padding for the main content in the page */ +.container { + padding: 0 4em; +} + +/* Header sizes */ +h1 { font-size: 3rem; margin-bottom: 1rem; } +h2 { font-size: 2.75rem; } +h3 { font-size: 2.4rem; } +h4 { font-size: 1.8rem; } +h5 { font-size: 1rem; } +h6 { font-size: 0.8rem; } + +/** + * General style for the content inside main + */ + +article .post-header { + margin-bottom: 3rem; +} + +main article { + margin-bottom: 2em; +} + +p { + text-align: justify; +} + +p, figure { + margin-top: 1.2rem; +} + +p:first-child { + margin-top: 0; +} + +/** + * Syntax highlighting + */ + +/* Disable borders between line numbers and code when + * line numbers are shown */ +code .rouge-table, code .rouge-table td { + border: 0; + border-radius: 0; +} + +code .rouge-table { + border-spacing: 0; + border-collapse: collapse; +} + diff --git a/_sass/_layout.scss b/_sass/_layout.scss index c10cd50..eb39070 100644 --- a/_sass/_layout.scss +++ b/_sass/_layout.scss @@ -1,6 +1,6 @@ $header-border: 1px solid #eee; -body{ +body { background-color: #333; font-family: 'Hammersmith One', sans-serif; color: white; @@ -13,75 +13,83 @@ main { flex: 1 0 auto; } -.navbar-list .navbar-item{ +.navbar-list .navbar-item { text-transform: uppercase; font-weight: 400; display: inline-block; margin: 1em; } -ul.navbar-list{ +ul.navbar-list { border-top: $header-border; border-bottom: $header-border; margin-bottom: 2rem; } .header { - padding-top: 6rem; + padding: 4rem 0 .5rem 0; text-align: center; } +.head { + margin-bottom: 2.66rem; +} -@media (min-width: 700px){ +@media (min-width: 700px) { .header { - padding-top: 14rem; + padding-top: 6rem; + } + .head { + margin-bottom: 4rem; } - } -.head{ - padding: 0 1rem 6rem 1rem; -} - -@media (max-width: 700px){ +@media (max-width: 700px) { .navbar-list .navbar-item { width: calc(100% - 2em); } } -.navbar-item a{ +.navbar-item a { color: $brand-color; } -ul.post-list, ul.navbar-list{ +ul.post-list, ul.navbar-list { list-style-type: none; margin-left: 0; margin-right: 0; } -.header, footer{ +ul.post-list li { + padding-top: 2rem; +} + +ul.post-list li:first-child { + padding-top: 0; +} + +.header, footer { background-color: rgba(0,0,0,0.25); } -footer{ +footer { padding-top: 1rem; } -footer .author{ +footer .author { text-align: center; text-transform: uppercase; - } -.container{ +.container { padding-top: 1rem; padding-bottom: 1rem; } -.icons{ +.icons { text-align: center; } -a.icon{ +a.icon { display: inline-table; background-color: rgba(255,255,255,0.5); border-radius: 1.75em; @@ -92,13 +100,19 @@ a.icon{ margin: .5em; color: white; cursor: pointer; - - &:hover { - text-decoration: none; - } } -a.icon i.fa{ +/* Disable underlining in icon links inside the footer */ +a.icon:link, a.icon:hover, a.icon:visited, a.icon:active { + text-decoration: none; +} + +/* Light up footer icon links when hovering */ +a.icon:hover { + background-color: #bbbbbb; +} + +a.icon i.fa { font-size: 2em; display: table-cell; vertical-align: middle; diff --git a/_sass/_syntax-highlighting.scss b/_sass/_syntax-highlighting.scss index d4d8012..f9f0580 100644 --- a/_sass/_syntax-highlighting.scss +++ b/_sass/_syntax-highlighting.scss @@ -3,21 +3,21 @@ */ .highlight { background: #fff; - @extend %vertical-rhythm; .highlighter-rouge & { background: #eef; } - td.code > pre{ - background: #323232; + td.code > pre { + background: rgb(66, 66, 66); } - pre.lineno{ + pre.lineno { background: #212121; + text-align: right; } - .c { color: #998; font-style: italic } // Comment + .c { color: #aaa; font-style: italic } // Comment .err { color: #a61717; background-color: #e3d2d2 } // Error .k { font-weight: bold } // Keyword .o { font-weight: bold } // Operator @@ -45,31 +45,31 @@ .m { color: #099 } // Literal.Number .s { color: #d14 } // Literal.String .na { color: #008080 } // Name.Attribute - .nb { color: #0086B3 } // Name.Builtin + .nb { color: #00a6d3 } // Name.Builtin .nc { color: #458; font-weight: bold } // Name.Class .no { color: #008080 } // Name.Constant .ni { color: #800080 } // Name.Entity .ne { color: #900; font-weight: bold } // Name.Exception .nf { color: #900; font-weight: bold } // Name.Function .nn { color: #555 } // Name.Namespace - .nt { color: #000080 } // Name.Tag - .nv { color: #008080 } // Name.Variable + .nt { color: #0000d0 } // Name.Tag + .nv { color: #00d0d0 } // Name.Variable .ow { font-weight: bold } // Operator.Word .w { color: #bbb } // Text.Whitespace .mf { color: #099 } // Literal.Number.Float .mh { color: #099 } // Literal.Number.Hex .mi { color: #099 } // Literal.Number.Integer .mo { color: #099 } // Literal.Number.Oct - .sb { color: #d14 } // Literal.String.Backtick - .sc { color: #d14 } // Literal.String.Char - .sd { color: #d14 } // Literal.String.Doc - .s2 { color: #d14 } // Literal.String.Double - .se { color: #d14 } // Literal.String.Escape - .sh { color: #d14 } // Literal.String.Heredoc - .si { color: #d14 } // Literal.String.Interpol - .sx { color: #d14 } // Literal.String.Other + .sb { color: #f54 } // Literal.String.Backtick + .sc { color: #f54 } // Literal.String.Char + .sd { color: #f54 } // Literal.String.Doc + .s2 { color: #f54 } // Literal.String.Double + .se { color: #f54 } // Literal.String.Escape + .sh { color: #f54 } // Literal.String.Heredoc + .si { color: #f54 } // Literal.String.Interpol + .sx { color: #f54 } // Literal.String.Other .sr { color: #009926 } // Literal.String.Regex - .s1 { color: #d14 } // Literal.String.Single + .s1 { color: #f54 } // Literal.String.Single .ss { color: #990073 } // Literal.String.Symbol .bp { color: #999 } // Name.Builtin.Pseudo .vc { color: #008080 } // Name.Variable.Class diff --git a/_site/404.html b/_site/404.html index db2de01..7f64731 100644 --- a/_site/404.html +++ b/_site/404.html @@ -5,15 +5,14 @@ - Ramblings of an archer archer - - - - + + @@ -37,10 +36,10 @@
-
-

Ramblings of an archer archer

-

Things which an Arch Linux user that also owns an recurve bow can write. -

+
+

maggioni.xyz

+

Eat polenta and do not counter-aim! +

-

404 - page not found

+

404 - page not found

If you didn’t come on purpose I apologise, but the page you are searching doesn’t exist. But, if you came on purpose, enjoy a flat Rick Astley gif dancing.

@@ -100,7 +113,16 @@ But, if you came on purpose, enjoy a flat Rick Astley gif dancing.

-
Claudio Maggioni 2016
+
+ + Claudio Maggioni +
+ Content under + + CC BY-NC-SA 4.0 +
- - - - - - - - - - - - - - - - - - - - -
-
-

Ramblings of an archer archer

-

Things which an Arch Linux user that also owns an recurve bow can write. -

-
- - -
-
-
- -
-

My archery setup!

- -
- -
-

Hey there! This is my first post about archery, so I thought that I could have done a tour of my setup. As I wrote in the about page, I’m a Olmpic recurve archer based in Italy. I do this for almost five years! If you don’t understand everything I say, you can check out the youtube channel Nusensei. It’s a very good source, especially for beginners.

- -

Bow1

- -

Ok, the setup. I own a Fiberbow 5.99 LH (yes, I’m left handed) as my riser, the central part of the bow. It’s made by carbon fiber so it’s very lightweight. And is not painted too: It looks kinda cool. Many experienced archers could complain saying that carbon fiber bends and this is a bad thing. Instead, I think this gives you a nice feedback when you release. Also I tried to raise a friend’s Hoyt Prodigy XT, and there’s no way I’m going to lift such a weight on a regular base. Both the risers mentioned are high-range ones: I got mine 50% off because it wasn’t the latest model and it had some minor ahestetic flaws. Also, this isn’t my first one. In fact, I used to shoot with an Orange SF Premium: great bow for beginners!

- -

As limbs, I use a pair of EXE College rated at 34 pounds. Since I’m quite tall (limbs and riser toghether make a 70” tall bow), my draw length is around 29.5” and my draw weight is around 38 pounds.

- -

The sight is a Shibuya Dual Click. You can check out this review by Nusensei (by the way, I knew his channel from this very video).

- -

As stabilizers, I use a set of Fiberbow S.3 ones with yellow dampeners (for those who know the difference between the colours).

- -

As plunger button, I use a EXE one. It’s a middle range one, but it seems very well built and it works fine! Also, I’m not going to spend 90€ for a Cartel one.

- -

My current arrows are a set of Easton X7 Eclipse spined at 2213. These are winter alluminium arrows, but since they are cheaper than carbon ones, I bought these as a total replacement of my VAP V6 600. Those, due to form flaws, were 2 inches too short. Oh, and I always used Spin Wings and Elivanes, a stiffer plastic italian replacement.

- -

Here’s an image of the complete bow at the archery range:

- -

Bow2

- -
- -
-
- - - - -
- - - - - diff --git a/_site/about/index.html b/_site/blog/index.html similarity index 57% rename from _site/about/index.html rename to _site/blog/index.html index 2093244..0a92ee0 100644 --- a/_site/about/index.html +++ b/_site/blog/index.html @@ -5,15 +5,14 @@ - About - - - - + + @@ -37,10 +36,10 @@
-
-

Ramblings of an archer archer

-

Things which an Arch Linux user that also owns an recurve bow can write. -

+
+

maggioni.xyz

+

Eat polenta and do not counter-aim! +

@@ -79,15 +92,45 @@
-

About

+

Blog

-

My name is Claudio Maggioni and I am both an Arch Linux user and an recurve archer. I define myself an “archer archer”. This site will collect my own occasional thoughts about the two worlds, hoping someone will found them useful.

- -

If you are curious about the code i produce my personal Github account is here. This particular site is made with jekyll and hosted by Github pages, as you can see.

- -

PRO tip: try performing a Konami code in the home page (for phones slide up, slide up, slide down, slide down, slide left, slide right, slide left, slide right, tap, tap; made with this)…

+
@@ -99,7 +142,16 @@ -
Claudio Maggioni 2016
+
+ + Claudio Maggioni +
+ Content under + + CC BY-NC-SA 4.0 +
@@ -37,10 +36,10 @@
-
-

Ramblings of an archer archer

-

Things which an Arch Linux user that also owns an recurve bow can write. -

+
+

maggioni.xyz

+

Eat polenta and do not counter-aim! +

@@ -77,51 +90,7 @@
- + HOME
@@ -130,7 +99,16 @@ -
Claudio Maggioni 2016
+
+ + Claudio Maggioni +
+ Content under + + CC BY-NC-SA 4.0 +
@@ -36,10 +35,10 @@
-
-

Ramblings of an archer archer

-

Things which an Arch Linux user that also owns an recurve bow can write. -

+
+

maggioni.xyz

+

Eat polenta and do not counter-aim! +

@@ -79,7 +92,7 @@

Get a Bluetooth keyboard work with Arch Linux

- +
@@ -87,7 +100,7 @@

As usual, i’ve searched help in the ArchWiki, founding this article. With that, i’ve succesfully reconnected my Bluetooth keyboard using the bluetoothctl utility. The next step was configuring the service for auto connection during boot. I’ve created the btkbd.conf and the btkbd.service files, enabling the last one with systemd. Let’s give a look to the service file:

-
1
+
1
 2
 3
 4
@@ -105,7 +118,8 @@
 16
 17
 18
-19
[Unit]
+19
+
[Unit]
 Description=systemd Unit to automatically start a Bluetooth keyboard
 Documentation=https://wiki.archlinux.org/index.php/Bluetooth_Keyboard
 Requires=dbus-org.bluez.service
@@ -123,12 +137,11 @@
 ExecStart=-/usr/bin/hcitool cc ${BTKBDMAC}
 
 [Install]
-WantedBy=multi-user.target
-
+WantedBy=multi-user.target

Line 13 enables the Bluetooth dongle, and line 16 connects it to the keyboard we gave the mac address in /etc/btkbd.conf. This should work flawlessly, right? Of course it doesn’t. The service starts before the dbus-org.bluez.service is loaded and fails. However, if the service is started manually after login the Bluetooth keyboard works. After hours of trying figuring out what was wrong I’ve almost asked for a return on Amazon! The last attempt I made was with sddm disabled and involved built from scratch service:

-
1
+
1
 2
 3
 4
@@ -137,7 +150,8 @@
 7
 8
 9
-10
[Unit]
+10
+
[Unit]
 Description=systemd Unit to automatically start a Bluetooth keyboard
 
 [Service]
@@ -146,8 +160,7 @@
 ExecStart=/bin/hcitool cc 00:11:22:33:44:55
 
 [Install]
-WantedBy=bluetooth.target
-
+WantedBy=bluetooth.target

This incredibly worked. I think the problem was that multi-user.target that needs to be reached earlier than bluetooth.target. I got rid of all the tidiness of the ArchWiki solution just to be sure that was not the problem, but I think you can use all of that just correcting WantedBy=. Currently I haven’t an ArchWiki account nor a forum one, but as soon as I’ll register I’ll correct the article.

@@ -187,7 +200,16 @@ Last thing: I discovered that my Bluetooth dongle is CSR 8510 A10 based so expec
-
Claudio Maggioni 2016
+
+ + Claudio Maggioni +
+ Content under + + CC BY-NC-SA 4.0 +
@@ -36,10 +35,10 @@
-
-

Ramblings of an archer archer

-

Things which an Arch Linux user that also owns an recurve bow can write. -

+
+

maggioni.xyz

+

Eat polenta and do not counter-aim! +

@@ -79,7 +92,7 @@

Installing Gentoo on a Lenovo ThinkPad X60s

- +
@@ -147,7 +160,16 @@
-
Claudio Maggioni 2016
+
+ + Claudio Maggioni +
+ Content under + + CC BY-NC-SA 4.0 +
@@ -36,10 +35,10 @@
-
-

Ramblings of an archer archer

-

Things which an Arch Linux user that also owns an recurve bow can write. -

+
+

maggioni.xyz

+

Eat polenta and do not counter-aim! +

@@ -79,7 +92,7 @@

How to rickroll people that try to run "rm -rf" on your system

- +
@@ -93,8 +106,8 @@

The method that I’ll show will lock any rm command runned in both recursive and force mode, so rm -rf, rm -f -r and rm -r --force are all blocked, even if they are launched by sudo. I’m going to alias the rm command in /etc/profile /etc/bash.bashrc and in /etc/zsh/zshrc (I’m a zsh user) so that the rickroll will be possible from all users, even root and the ones with a brand new bashrc or zshrc. Here is the code I appended to those files:

-
alias rm=/bin/rmAlias
-alias sudo='sudo ' # this enables aliases in sudo, see http://askubuntu.com/questions/22037/aliases-not-available-when-using-sudo
+
alias rm=/bin/rmAlias
+alias sudo='sudo ' # this enables aliases in sudo, see http://askubuntu.com/questions/22037/aliases-not-available-when-using-sudo

Since alias is not able to control the flags of the aliases (see here), we’re going to redirect each call of rm to /bin/rmAlias, that would run the command if it’s safe. I didn’t use a function because it’s a bit tricky to make that work with sudo. So, let’s see the code I put in rmAlias:

@@ -111,17 +124,17 @@ rickroll(){ exit 0 } -while getopts ":rf-" opt; do +while getopts ":rf-" opt; do # Prevent '--force' to be detected as -r and -f - if [ "$opt" = "-" ]; then + if [ "$opt" = "-" ]; then OPTIND=$OPTIND+1 continue fi - if [ "$opt" = "r" ] || [ "$opt" = "f" ]; then - if [ "$tmp" = "" ]; then + if [ "$opt" = "r" ] || [ "$opt" = "f" ]; then + if [ "$tmp" = "" ]; then tmp=$opt continue - elif [ "$tmp" != "$opt" ]; then + elif [ "$tmp" != "$opt" ]; then rickroll fi fi @@ -129,7 +142,7 @@ done for var in "$@" do - if [[ "$var" = "--force" && "$tmp" = "r" ]]; then + if [[ "$var" = "--force" && "$tmp" = "r" ]]; then rickroll fi done @@ -181,7 +194,16 @@ done
-
Claudio Maggioni 2016
+
+ + Claudio Maggioni +
+ Content under + + CC BY-NC-SA 4.0 +
- - - - - - - - - - - - - - - - - - - - -
-
-

Ramblings of an archer archer

-

Things which an Arch Linux user that also owns an recurve bow can write. -

-
- - -
-
-
- -
-

Just a quick post. BAM!, my first web app (still in development) is on Github!

- -
- -
-

As you can read from the title, I’m publishing the uncompleted code of my first webapp. I’m working on this since 3 weeks, and I’m proud of what I’ve done so far.

- -

If you want to check out the repository, click here.

- -

Maybe I can use Materialize css also for this jekyll site, or maybe this is another thing I say but I’m not going to do. Who knows.

- -
- -
-
- - - - -
-
-
- - -
-
Claudio Maggioni 2016
-
- - - - diff --git a/_site/update/2016/09/13/css-update.html b/_site/update/2016/09/13/css-update.html deleted file mode 100644 index 4acdd33..0000000 --- a/_site/update/2016/09/13/css-update.html +++ /dev/null @@ -1,129 +0,0 @@ - - - - - - - - Css updated! - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-

Ramblings of an archer archer

-

Things which an Arch Linux user that also owns an recurve bow can write. -

-
- - -
-
-
- -
-

Css updated!

- -
- -
-

As you can see, now the css is decent! Now I’m using Skeleton and a couple of custom sass lines that you can check out on Github. Currently, I’m a bit busy with BAM! so I’m not sure I’ll find the time for this. Anyway, enjoy the new look!

- -
- -
-
- - - - -
-
-
- - -
-
Claudio Maggioni 2016
-
- - - - diff --git a/blog.html b/blog.html new file mode 100644 index 0000000..3d252b1 --- /dev/null +++ b/blog.html @@ -0,0 +1,21 @@ +--- +layout: page +title: Blog +permalink: /blog/ +--- + +
+
    + {% for post in site.posts %} +
  • + +

    + + {{ post.title }} +

    +
  • + {% endfor %} +
+
diff --git a/contact.md b/contact.md deleted file mode 100644 index f1acd63..0000000 --- a/contact.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -layout: page -title: About -permalink: /about/ ---- - -My name is Claudio Maggioni and I am both an Arch Linux user and an [recurve archer](http://www.fitarco-italia.org/arcieri/situazione.php?Codice=91647). I define myself an "archer archer". This site will collect my own occasional thoughts about the two worlds, hoping someone will found them useful. - -If you are curious about the code i produce my personal Github account is [here](https://github.com/praticamentetilde/). This particular site is made with jekyll and hosted by Github pages, as you can see. - -PRO tip: try performing a Konami code in the home page (for phones slide up, slide up, slide down, slide down, slide left, slide right, slide left, slide right, tap, tap; made with [this](https://github.com/snaptortoise/konami-js))... diff --git a/css/main.scss b/css/main.scss index 55a237e..fb2efa5 100644 --- a/css/main.scss +++ b/css/main.scss @@ -1,13 +1,10 @@ --- -# Only the main Sass file needs front matter (the dashes are enough) --- @charset "utf-8"; - - // Our variables $base-font-family: "Hammersmith One","Helvetica Neue", Helvetica, Arial, sans-serif; -$base-font-size: 16px; +$base-font-size: 18px; $base-font-weight: 200; $small-font-size: $base-font-size * 0.875; $base-line-height: 1.5; @@ -43,8 +40,6 @@ $slideshow-height: 70vh; } } - - // Import partials from `sass_dir` (defaults to `_sass`) @import "base", diff --git a/index.html b/index.html index f24a24e..31ad7ad 100644 --- a/index.html +++ b/index.html @@ -3,14 +3,5 @@ layout: main ---
-
    - {% for post in site.posts %} -
  • - -
    - {{ post.title }} -
    -
  • - {% endfor %} -
+ HOME