mirror of
https://github.com/balkian/balkian.github.com.git
synced 2025-08-24 04:32:20 +00:00
Changed hugo theme
This commit is contained in:
8
content/_index.md
Normal file
8
content/_index.md
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
menu:
|
||||
main:
|
||||
name: Home
|
||||
weight: 1
|
||||
params:
|
||||
icon: home
|
||||
---
|
9
content/categories/linux/_index.md
Normal file
9
content/categories/linux/_index.md
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
title: Linux
|
||||
description: Posts related to installing, maintaining and running GNU/Linux
|
||||
|
||||
# Badge style
|
||||
style:
|
||||
background: "#2a9d8f"
|
||||
color: "#fff"
|
||||
---
|
10
content/categories/programming/_index.md
Normal file
10
content/categories/programming/_index.md
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
title: Programming
|
||||
description: Posts related to programming languages
|
||||
image:
|
||||
|
||||
# Badge style
|
||||
style:
|
||||
background: "#ffd700"
|
||||
color: "#000"
|
||||
---
|
11
content/page/archives/index.md
Normal file
11
content/page/archives/index.md
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
title: "Archives"
|
||||
date: 2022-03-06
|
||||
layout: "archives"
|
||||
slug: "archives"
|
||||
menu:
|
||||
main:
|
||||
weight: 2
|
||||
params:
|
||||
icon: archives
|
||||
---
|
9
content/page/cheatsheet/_index.md
Normal file
9
content/page/cheatsheet/_index.md
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
title: Cheatsheets
|
||||
name: "cheats"
|
||||
menu:
|
||||
main:
|
||||
weight: 4
|
||||
params:
|
||||
icon: infinity
|
||||
---
|
@@ -10,7 +10,7 @@ tags:
|
||||
---
|
||||
|
||||
|
||||
# Show plain text version
|
||||
## Show plain text version
|
||||
|
||||
<!--more-->
|
||||
|
@@ -1,14 +1,15 @@
|
||||
---
|
||||
title: Linux
|
||||
author: "Unknown Author"
|
||||
author: "Fernando Sánchez"
|
||||
description: Tips and tricks for GNU/Linux and Unix
|
||||
categories:
|
||||
- linux
|
||||
tags:
|
||||
- linux
|
||||
- arch
|
||||
|
||||
---
|
||||
|
||||
# Black screen and LightDM doesn't unlock
|
||||
## Black screen and LightDM doesn't unlock
|
||||
|
||||
Add this to your /etc/lightdm/lightdm.conf file:
|
||||
|
||||
@@ -18,7 +19,7 @@ logind-check-graphical=true
|
||||
```
|
||||
|
||||
|
||||
# Edit previous commands
|
||||
##Edit previous commands
|
||||
|
||||
`fc` is a shell builtin to list and edit previous commands in an editor.
|
||||
In addition to editing a single line (which you can also do with `C-x C-e`), it also allows you to edit and run several lines at the same time.
|
||||
@@ -70,7 +71,7 @@ If you save and exit, all commands are executed as a script, and it will be adde
|
||||
|
||||
Source: https://shapeshed.com/unix-fc/
|
||||
|
||||
# Prevent logoff from killing tmux sessions
|
||||
## Prevent logoff from killing tmux sessions
|
||||
|
||||
Lately I've noticed that logging out of i3, intentionally or when i3 fails, would also kill any tmux or emacs sessions.
|
||||
This is extremely annoying.
|
||||
@@ -91,7 +92,7 @@ systemd-run --scope --user tmux
|
||||
Source: https://unix.stackexchange.com/questions/490267/prevent-logoff-from-killing-tmux-session
|
||||
|
||||
|
||||
# Upload a temporary file
|
||||
## Upload a temporary file
|
||||
|
||||
Sometimes you just need to copy/paste a file from a server, and copying from the terminal can be a hassle.
|
||||
These two services are command-line "pastebins" just one curl away:
|
@@ -1,14 +1,16 @@
|
||||
---
|
||||
title: Python
|
||||
description: Tips and useful libraries for python developers
|
||||
categories:
|
||||
- programming
|
||||
tags:
|
||||
- python
|
||||
- programming
|
||||
---
|
||||
|
||||
# Interesting libraries
|
||||
## Interesting libraries
|
||||
|
||||
## [TQDM](https://github.com/tqdm/tqdm)
|
||||
### [TQDM](https://github.com/tqdm/tqdm)
|
||||
|
||||
|
||||
From tqdm's github repository:
|
@@ -5,7 +5,7 @@ tags:
|
||||
- rpi
|
||||
---
|
||||
|
||||
# HDMI flickering
|
||||
## HDMI flickering
|
||||
|
||||
Avoid HDMI flickering/intermittent blanking on RPI with a 1400x1050 VGA monitor.
|
||||
|
19
content/page/links/index.md
Normal file
19
content/page/links/index.md
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
title: Links
|
||||
links:
|
||||
- title: GitHub
|
||||
description: My GitHub profile
|
||||
website: https://github.com/balkian
|
||||
image: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
|
||||
- title: gitea
|
||||
description: My gitea profile
|
||||
website: https://git.sinpapel.es/balkian
|
||||
image: https://git.sinpapel.es/assets/img/logo.svg
|
||||
menu:
|
||||
main:
|
||||
weight: 4
|
||||
params:
|
||||
icon: link
|
||||
|
||||
comments: false
|
||||
---
|
@@ -1,19 +1,26 @@
|
||||
---
|
||||
title: Index of projects
|
||||
|
||||
title: Projects
|
||||
menu:
|
||||
main:
|
||||
weight: 1
|
||||
params:
|
||||
icon: clock
|
||||
---
|
||||
|
||||
Ongoing Projects
|
||||
================
|
||||
|
||||
* [Senpy](http://senpy.readthedocs.io): a framework for semantic sentiment and emotion analysis services.
|
||||
* [Soil](http://soilsim.readthedocs.io): an agent-based simulator for social networks based on nx-sim and networkx.
|
||||
* [Onyx](http://gsi.dit.upm.es/ontologies/onyx): an ontology for emotion analysis that includes concepts from W3C's provenance.
|
||||
|
||||
* [Soil](https://soilsim.readthedocs.io): an agent-based simulator for social networks based on nx-sim and networkx.
|
||||
* [Soilent](https://github.com/balkian/soilent): an efficient scheduler for soil using rust and pyo3.
|
||||
* [Senpy](https://senpy.readthedocs.io): a framework for semantic sentiment and emotion analysis services.
|
||||
|
||||
Past Projects
|
||||
=============
|
||||
|
||||
* [Onyx](http://gsi.dit.upm.es/ontologies/onyx): an ontology for emotion analysis that includes concepts from W3C's provenance.
|
||||
* [ESP8266 Clock NTP](https://github.com/balkian/ESP8266_Clock_NTP): a simple clock display using arduino, the ESP8266 and NTP (network time protocol).
|
||||
* [Shine ESP](https://github.com/balkian/shinesp): control an ws2812b LED strip over the network with an ESP8266.
|
||||
* [Bitter](https://github.com/balkian/bitter): a wrapper and CLI over the (now defunct) Twitter API to researchers to download Twitter data much faster using multiple accounts.
|
||||
* [Marl](http://gsi.dit.upm.es/ontologies/marl): I updated this ontology, originally created by Adam Westerski, to make it compatible with the W3C's provenance ontology.
|
||||
* [Hermes](http://github.com/balkian/hermes): one of my first projects, developed together with David Pérez as the special custom assignment in one of our courses. Hermes is an affective bot designed to mimic the behavour of humans. It included a plug-in system for its sensors and actuators. The information from its sensors changed its emotional state, which was shown via its actuators. Among others, it could fetch inforation from Twitter or its host system and change the expressions of an external Face made with servo motors or speak via its Text-To-Speech software. For instance, it could detect it was running out of battery, showing a sad face and sending an alerting tweet. You can see it in action in these two youtube videos: [Part 1](http://www.youtube.com/watch?v=KnEYahPD9z4) and [Part 2](http://www.youtube.com/watch?v=lQZldCTPEJc).
|
||||
* [Maia](http://github.com/gsi-upm/maia): the Modular Architecture for Intelligent Agents is an evented agent architecture that aims to update the classical frameworks for intelligent agents with the concepts emerged from the Live Web.
|
13
content/page/search/index.md
Normal file
13
content/page/search/index.md
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
title: "Search"
|
||||
slug: "search"
|
||||
layout: "search"
|
||||
outputs:
|
||||
- html
|
||||
- json
|
||||
menu:
|
||||
main:
|
||||
weight: 3
|
||||
params:
|
||||
icon: search
|
||||
---
|
@@ -1,6 +1,8 @@
|
||||
---
|
||||
title: Linux on the Microsoft Surface Go
|
||||
date: 2019-06-01 00:00:01
|
||||
categories:
|
||||
- Linux
|
||||
tags:
|
||||
- linux
|
||||
- surface go
|
||||
|
@@ -1,7 +0,0 @@
|
||||
---
|
||||
title: just a test
|
||||
type: page
|
||||
---
|
||||
|
||||
|
||||
It does nothing
|
@@ -1,59 +0,0 @@
|
||||
---
|
||||
title: "Search Results"
|
||||
layout: "search"
|
||||
sitemap:
|
||||
priority : 0.1
|
||||
---
|
||||
|
||||
|
||||
This file exists solely to respond to /search URL with the related `search` layout template.
|
||||
|
||||
No content shown here is rendered, all content is based in the template layouts/page/search.html
|
||||
|
||||
Setting a very low sitemap priority will tell search engines this is not important content.
|
||||
|
||||
This implementation uses Fusejs, jquery and mark.js
|
||||
|
||||
|
||||
## Initial setup
|
||||
|
||||
Search depends on additional output content type of JSON in config.toml
|
||||
\```
|
||||
[outputs]
|
||||
home = ["HTML", "JSON"]
|
||||
\```
|
||||
|
||||
## Searching additional fileds
|
||||
|
||||
To search additional fields defined in front matter, you must add it in 2 places.
|
||||
|
||||
### Edit layouts/_default/index.JSON
|
||||
This exposes the values in /index.json
|
||||
i.e. add `category`
|
||||
\```
|
||||
...
|
||||
"contents":{{ .Content | plainify | jsonify }}
|
||||
{{ if .Params.tags }},
|
||||
"tags":{{ .Params.tags | jsonify }}{{end}},
|
||||
"categories" : {{ .Params.categories | jsonify }},
|
||||
...
|
||||
\```
|
||||
|
||||
### Edit fuse.js options to Search
|
||||
`static/js/search.js`
|
||||
\```
|
||||
keys: [
|
||||
"title",
|
||||
"contents",
|
||||
"tags",
|
||||
"categories"
|
||||
]
|
||||
\```
|
||||
|
||||
<div id="search-results"></div>
|
||||
<script id="search-result-template" type="text/x-js-template">
|
||||
<div id="summary-${key}">
|
||||
<h3><a href="${link}">${title}</a></h3>
|
||||
<p>${snippet}</p>
|
||||
</div>
|
||||
</script>
|
Reference in New Issue
Block a user