From 3293cd49e5555ac887ed9e9a677f1c498b7a0db9 Mon Sep 17 00:00:00 2001
From: Claudio Maggioni
- {% highlight bash %} # make ARCH=i386 menuconfig # make ARCH=i386 # make - ARCH=i386 install {% endhighlight %} +{% highlight bash %} +make ARCH=i386 menuconfig +make ARCH=i386 +make ARCH=i386 install +{% endhighlight %}
diff --git a/_posts/2016-07-28-how-to-rickroll-people-launching-rm-rf-on-your-system.html b/_posts/2016-07-28-how-to-rickroll-people-launching-rm-rf-on-your-system.html index 0a39597..265f6fb 100644 --- a/_posts/2016-07-28-how-to-rickroll-people-launching-rm-rf-on-your-system.html +++ b/_posts/2016-07-28-how-to-rickroll-people-launching-rm-rf-on-your-system.html @@ -44,10 +44,10 @@ categories: linux
- {% highlight bash %} alias rm=/bin/rmAlias alias sudo='sudo ' # this enables - aliases in sudo, see - http://askubuntu.com/questions/22037/aliases-not-available-when-using-sudo {% - endhighlight %} +{% highlight bash %} +alias rm=/bin/rmAlias +alias sudo='sudo ' # this enables aliases in sudo, see http://askubuntu.com/q/22037/ +{% endhighlight %}
@@ -62,18 +62,45 @@ categories: linux
- {% highlight bash %} #! /bin/bash # Rickroll whoever tries to desert this - system, even root. # To achieve this, set the appropriate aliases even in - /etc/profile and similars. # Video played when rickrolling - ROLLVIDEO=/opt/anti-rm/serious-video.mkv # it's just Never Gonna Give You Up - on my system, but be free to customize this! rickroll(){ echo "Never gonna - desert this system..." xdg-open $ROLLVIDEO 2>&1 & exit 0 } while getopts - ":rf-" opt; do # Prevent '--force' to be detected as -r and -f if [ "$opt" = - "-" ]; then OPTIND=$OPTIND+1 continue fi if [ "$opt" = "r" ] || [ "$opt" = "f" - ]; then if [ "$tmp" = "" ]; then tmp=$opt continue elif [ "$tmp" != "$opt" ]; - then rickroll fi fi done for var in "$@" do if [[ "$var" = "--force" && "$tmp" - = "r" ]]; then rickroll fi done # If it's safe, just run rm /bin/rm "$@" exit - $? {% endhighlight %} +{% highlight bash %} +#!/bin/bash # Rickroll whoever tries to desert this system, even root. +# To achieve this, set the appropriate aliases even in /etc/profile and similars. + +# Video played when rickrolling: it's just Never Gonna Give You Up on my system, +# but be free to customize this! +ROLLVIDEO=/opt/anti-rm/serious-video.mkv + +rickroll() { + echo "Never gonna desert this system..." + xdg-open $ROLLVIDEO 2>&1 & exit 0 +} + +while getopts ":rf-" opt; do + # Prevent '--force' to be detected as -r and -f + if [ "$opt" = "-" ]; then + OPTIND=$OPTIND+1 + continue + fi + if [ "$opt" = "r" ] || [ "$opt" = "f" ]; then + if [ "$tmp" = "" ]; then + tmp=$opt + continue + elif [ "$tmp" != "$opt" ]; then + rickroll + fi + fi +done + +for var in "$@" do + if [[ "$var" = "--force" && "$tmp" = "r" ]]; then + rickroll + fi +done + +# If it's safe, just run rm +/bin/rm "$@" +exit $? +{% endhighlight %}
@@ -87,7 +114,7 @@ categories: linux
Let's give execution permissions to the script we have just created:
-{% highlight bash %} # chmod +x /bin/rmAlias {% endhighlight %}
+{% highlight bash %}chmod +x /bin/rmAlias{% endhighlight %}
Restart your shell, and enjoy. If you want to test safely, I suggest trying to
diff --git a/_sass/_base.scss b/_sass/_base.scss
index ace5e86..9ed00f8 100644
--- a/_sass/_base.scss
+++ b/_sass/_base.scss
@@ -29,7 +29,6 @@ html {
font-family: $base-font-family;
color: $text-color;
background-color: $background-color;
- -webkit-text-stroke: 0.25px #888;
}
/* Images */
@@ -63,9 +62,8 @@ h6 {
/* Links */
a {
color: $brand-color;
- background: $nav-bg;
+ background: $background-color;
text-decoration: none;
- -webkit-text-stroke: 0.25px #1B1256;
font-weight: bold;
&:visited {
@@ -80,8 +78,8 @@ a {
* Blockquotes
*/
blockquote {
- color: $nav-bg;
- background: $nav-col;
+ color: white;
+ background: $top-col;
border-left: 4px solid $brand-color;
letter-spacing: -1px;
font-style: italic;
@@ -118,11 +116,11 @@ pre {
pre,
code {
font-size: 0.95rem;
- background: $nav-col;
+ background: $background-color;
}
a code {
- background: $nav-bg;
+ background: $background-color;
}
/* Disable borders between line numbers and code when
diff --git a/_sass/_layout.scss b/_sass/_layout.scss
index 0986656..bbf22b3 100644
--- a/_sass/_layout.scss
+++ b/_sass/_layout.scss
@@ -1,7 +1,7 @@
/* vim: set ts=2 sw=2 et tw=80: */
body {
background-color: $background-color;
- font-family: "Bombardier", sans-serif;
+ font-family: "Radio Canada", sans-serif;
display: flex;
min-height: 100vh;
flex-direction: column;
@@ -22,9 +22,8 @@ ul.navbar-list {
}
.header {
- border-bottom: $border;
- background: $nav-bg;
- color: $nav-col;
+ background: $top-col;
+ color: $top-col;
.head.navbar {
display: flex;
@@ -42,6 +41,7 @@ ul.navbar-list {
padding: 0;
a {
+ background: $top-col;
color: white;
}
}
@@ -54,6 +54,8 @@ ul.navbar-list {
text-transform: uppercase;
display: inline-block;
padding: 0.25rem 0.5rem;
+ background: $top-col;
+ color: white;
}
a:first-child {
@@ -69,33 +71,48 @@ ul.navbar-list {
.homequote {
display: flex;
- background: $nav-bg;
- color: $nav-col;
+ color: $text-color;
align-items: stretch;
margin-bottom: 1rem;
figure {
margin: 0;
flex: 0;
- display: flex;
- align-items: center;
- min-width: 300px;
- background: black;
+ background-image: url(/images/claudio.jpg);
+ background-size: cover;
+ background-position: center;
}
- @include media-query($on-palm) {
- figure {
- display: none;
- }
+ figure .blur {
+ width: 100%;
+ height: 100%;
+ backdrop-filter: blur(10px) contrast(0.7) brightness(1.3);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ min-width: 300px;
}
.quote {
- border-left: 3px dotted $brand-color;
flex: 1;
padding: 1rem 1.5rem;
}
}
+@include media-query($on-laptop) {
+ .homequote {
+ flex-direction: column;
+
+ figure img {
+ filter: none;
+ object-fit: cover;
+ height: 300px;
+ width: 300px;
+ object-position: center top;
+ }
+ }
+}
+
.portfolio {
position: relative;
padding-top: 2rem;
@@ -147,8 +164,8 @@ ul.navbar-list {
text-align: right;
.date {
- background: $nav-bg;
- color: $nav-col;
+ background: $top-col;
+ color: white;
}
.category,
@@ -156,8 +173,8 @@ ul.navbar-list {
.repo,
.languages {
background: white;
- border-left: 3px solid $nav-bg;
- border-bottom: 3px solid $nav-bg;
+ border-left: 3px solid white;
+ border-bottom: 3px solid white;
}
.authors {
@@ -171,19 +188,22 @@ ul.navbar-list {
}
.description {
- border: 3px solid $nav-bg;
+ border: $border;
flex-grow: 1;
.images {
- background: $nav-bg;
+ background: $brand-color;
padding: 0.5rem;
margin: -0.5rem -0.5rem 0.5rem -0.5rem;
text-align: center;
+ a {
+ background: none;
+ }
+
img {
width: 175px;
margin: 0.25rem;
- border: 3px solid $nav-col;
}
}
}
@@ -213,9 +233,7 @@ ul.post-list li:first-child {
footer {
justify-content: space-between;
- border-top: $border;
- background: $nav-bg;
- color: $nav-col;
+ background: $brand-color;
.container {
display: flex;
@@ -224,6 +242,13 @@ footer {
flex: 1;
font-size: 1rem;
text-align: right;
+ background: $brand-color;
+ color: white;
+
+ a {
+ background: $brand-color;
+ color: white;
+ }
}
@include media-query($on-palm) {
@@ -242,8 +267,8 @@ footer {
.icon {
display: inline-table;
- background: $nav-col;
- color: $nav-bg;
+ color: $brand-color;
+ background: white;
width: 2.5em;
height: 2.5em;
text-align: center;
diff --git a/css/bombardier.css b/css/bombardier.css
index 095f839..f5691df 100644
--- a/css/bombardier.css
+++ b/css/bombardier.css
@@ -1,8 +1,8 @@
/* vim: set ts=2 sw=2 et tw=80: */
@font-face {
- font-family: "Bombardier";
- font-style: normal;
+ font-family: "Radio Canada";
+ font-style: regular;
font-weight: 400;
- src: url(/webfonts/bombardier.ttf) format("truetype");
+ src: url(/webfonts/RadioCanada-VariableFont_wdth,wght.ttf) format("truetype");
}
diff --git a/css/main.scss b/css/main.scss
index b4b413f..cfab94e 100644
--- a/css/main.scss
+++ b/css/main.scss
@@ -12,11 +12,11 @@ $base-line-height: 1.5;
$spacing-unit: 30px;
-$nav-bg: #222;
-$nav-col: #eee;
-$text-color: $nav-bg;
-$background-color: $nav-col;
-$brand-color: #D3B5F0;
+$text-color: #222;
+$background-color: #fafafa;
+
+$top-col: #018e71;
+$brand-color: #4f47cc;
$border: 3px solid $brand-color;
// Width of the content area
diff --git a/images/claudio.jpg b/images/claudio.jpg
index f6451b75b16f8cd06d7447e9e0b733b838918773..7d904ccd0854f068dec90a8803bb0197872802fa 100644
GIT binary patch
literal 1603674
zcmeFVbzEEDwmlkL3KVxJUfdIkySoGlQUVE*5H!JBXlZeGr^Ve}+v4tS6^gV-4Ja)w
z?F;?(oO3_#-TQm*|92PJtg+{sbL_dsT6-sR|6cq38bGP1rK<(N!NCFOVE+KW-{3}S
z2D-Zd0J^$@0Ac_DKnl2tgZl?XV$UeCm ?W82lgZ_#l3{BFYw
z#MB-pNE)&isg#4XC4b -@B-NY+ly`L)irDqAlXB!Lqf)`INwPwhtuflUZRO$EY|`<)=_B3x0hTgA9-$yR#-
zg5-Ps)@j*?x{uk$h`5FDh*%|$mcyo!r?_%mhWV-ZT!&-
Kptcq%#Z)I>Rvo^GtsyW_iZ|bmf=x4AsH(rki*Vs5pI#-pg2k!}#B(!W`+`e2L
zzz^A2-+mhOs2yu~0x#QIkv807Kr$FXnAed0%{(V8n*MJ-m?6v4TBAEJp_B2g(n6L3
zxmT!OTep|D2{VNwy*uah2`4$^T!$WxpSE(qQV8xoQCRe}SZJ`-o>{A4BKBlcR1Jr2
zNJjE)*5DR^R`#!CFUh~Zxx$Odbl*S7gPyf3*?h@by_>G;o)D&$m4-aYc$#>R+e*Mj
z4Mw-C&Hnv#tWRjtLRzzP+-mhwf2sHVf(FSK-{oDBWxP<4!
9BgUQCYanz=d0cbY;IT4>mH|ym_kB1&p-Dv_j3Fd3e`%8vNjn$)&
z8JA+~6Y6J2ijPxiMC4YG-9IS8mzapZa7Ulmb08{fFbN;EgnZx{y8iL1jgYoYhR&A<
zEGYVu%O#d5fpDG0zlB
z+Br$fHK`V@%Y2Qb`NhLo$`76LLiak{=`M^ZE>`U2C}d~e^CeFrIvFXgH_E0TLqYtB
z(~y5&bl=Qs!S~kS-z(U$TkAp3k*UwW_M-jpxs^xgP=~;szhXYhJ@dDtqQ64mF-Zq7
zj|{EEESS?T;J7@(5QOJoWV45q+Qc$GV#BKTHCEp?H=#=5kj5K=Qq+X=Np%e6C&(g;
z45M;CAhjobaGTjx87Q>?X?1z832a4fppX|bN>=id8(^B58cLyX*)gGD0e3PLVq_^A
zTu;MfGTe_t_9ehCzU7+Tv-N-Tr}x8GwhmL}txJxzn_QXJT*VRddB