Skip to content

Instantly share code, notes, and snippets.

Avatar
🔥
This is fine

Alejandro Amaral logico-dev

🔥
This is fine
View GitHub Profile
@logico-dev
logico-dev / bookmarks.zsh
Last active Nov 15, 2020
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
@logico-dev
logico-dev / Utils.vb
Created Oct 7, 2020
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
@logico-dev
logico-dev / websearch.patch
Created Sep 27, 2020
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;
@logico-dev
logico-dev / limpieza_backup.py
Last active Apr 30, 2020
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"
@logico-dev
logico-dev / contactify.py
Last active Apr 7, 2020
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 logico-dev on github.
  • I am logico (https://keybase.io/logico) on keybase.
  • I have a public key ASDPn4TcTf0SbT_8iQm9JulMNchZ0WSFp23X8R8ihpLpigo

To claim this, I am signing this object:

@logico-dev
logico-dev / userChrome.css
Created Aug 2, 2019
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:
@logico-dev
logico-dev / unsplasher.sh
Created Jun 21, 2017
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