Skip to content

Instantly share code, notes, and snippets.

Avatar
🦀
Eating lighting...

Alejandro Amaral janoamaral

🦀
Eating lighting...
View GitHub Profile
View jellyfinstiffy.css
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');
body, h1, h2, h3, h4,p,button,.cardBox {
font-family: 'Poppins', sans-serif !important;
}
.remoteControlContent {
//max-width: 60em !important;
margin-left: auto;
margin-right: auto;
}
@janoamaral
janoamaral / bookmarks.zsh
Last active November 15, 2020 15:22
Save and show bookmarks on Zsh
View bookmarks.zsh
# bookmark.zsh
# Save and show bookmarks on Zsh
# ==================================================================================
# Dependencies: smenu (https://github.com/p-gen/smenu.git)
# Full article (in spanish) https://logico.ar/blog/2020/11/14/crear-bookmarks-en-zsh
# Usage
# Add this line to .zshrc
# source /path_to/bookmarks.zsh
@janoamaral
janoamaral / Utils.vb
Created October 7, 2020 00:14
Clase con funciones auxiliares
View Utils.vb
Imports System.IO
Imports System.Security.Cryptography
Public Class Utils
Public Shared Function LeftPad(ByVal str As String, ByVal tamanio As Integer, ByVal caracter As String) As String
Dim output As String = str
@janoamaral
janoamaral / websearch.patch
Created September 27, 2020 15:09
Add web search capabilities to `swhd`. Usage: Select text in any program and press `WIN+ALT+S`. A new Chrome tab comes up with Duckduck search result.
View websearch.patch
diff --git a/config.def.h b/config.def.h
index 1dbc8ca..b01d887 100644
--- a/config.def.h
+++ b/config.def.h
@@ -15,6 +15,7 @@ const int VK_C = 0x43;
// CUSTOM FUNCTION ID
const unsigned int FUNCTION_RELOAD = 1;
const unsigned int FUNCTION_RELOAD = 2;
+const unsigned int FUNCTION_SEARCH = 3;
@janoamaral
janoamaral / limpieza_backup.py
Last active April 30, 2020 13:39
Limpieza de backups viejos de Windows
View limpieza_backup.py
#!/usr/bin/env python3
"""
Module Docstring
"""
__author__ = "Alejandro Amaral"
__author__ = "Emmanuel Arcumano"
__version__ = "0.0.1"
__license__ = "MIT"
@janoamaral
janoamaral / contactify.py
Last active April 7, 2020 16:03
Convert exported Excel CSV to Google Contacts CSV
View contactify.py
#!/usr/bin/env python3
"""
Module Docstring
"""
__author__ = "Alejandro Amaral"
__version__ = "0.0.1"
__license__ = "MIT"
import os, sys
View keybase.md

Keybase proof

I hereby claim:

  • I am janoamaral on github.
  • I am logico (https://keybase.io/logico) on keybase.
  • I have a public key ASCdgLkdBLmgEZghjJVQ0ZTofHCj4NNstvJfIxHQdPhQ1wo

To claim this, I am signing this object:

@janoamaral
janoamaral / userChrome.css
Created August 2, 2019 11:47
SafariFox: a Safari style for Firefox.
View userChrome.css
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*This style will make your browser similar to Safari. Currently tested on MacOS Sierra and Linux on Nightly*/
/*tabs on bottom*/
#TabsToolbar {
-moz-box-ordinal-group: 2 !important;
}
View gist:3f5e272221c537c3e0269d9b9f1fa135
### Keybase proof
I hereby claim:
* I am logico-dev on github.
* I am logico (https://keybase.io/logico) on keybase.
* I have a public key whose fingerprint is 2194 9CFA 8ED3 36B9 6E39 F992 12F8 FA36 88B6 FE48
To claim this, I am signing this object:
@janoamaral
janoamaral / unsplasher.sh
Created June 21, 2017 12:29
Change the wallpaper every hour using Unsplash.com API.
View unsplasher.sh
#!/bin/bash
# TODO:
# Add switch to change the wait period
# Add switch to change the image geometry
while [ : ]
do
wget --quiet -O ~/dotfiles/bg.jpg `curl -s "https://api.unsplash.com/photos/random/?client_id=YOUR_UNSPLASH_CLIENTE_ID" | grep -E "full\":\"https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)" -o | grep -E "https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)" -o`
# Resize the image to optimize
convert ~/bg.jpg -resize 1280 ~/bg.jpg