Skip to content

Instantly share code, notes, and snippets.

View dlagg's full-sized avatar

Jorge de la Guia dlagg

  • Everis
  • Alicante
View GitHub Profile
@dlagg
dlagg / yay-codecrypt.log
Created February 1, 2021 10:20
Installing codecrypt with yay: "Package 'libcrypto++', required by 'virtual:world', not found"
yay -S codecrypt
:: Existen 2 paquetes que proveen codecrypt:
:: Repositorio AUR
1) codecrypt 2) codecrypt-git
Introduzca un número (por defecto=1):
:: Buscando conflictos...
:: Buscando conflictos internos...
[Aur:1] codecrypt-1.8-1
@dlagg
dlagg / igLiveCleaner.zsh
Created August 16, 2020 22:52
Simple zsh script that cleans your pyinstalive download folder.
#!/bin/zsh
pyinstalive -o
rm -rf *_live_downloads #Clean tmp dirs
dirs=(*/) #list directories and store in array
#loop through dirs moving it's log & json files inside them.
for d in $dirs; do
cleanD="${d%?}"
@dlagg
dlagg / index.html
Created July 23, 2020 09:53
React Class Component Example
<div id="root"></div>
@dlagg
dlagg / .bashrc
Created July 5, 2020 10:20
Backup .bashrc last use (ArcoLinux default conf)
# ~/.bashrc
#Ibus settings if you need them
#type ibus-setup in terminal to change settings and start the daemon
#delete the hashtags of the next lines and restart
#export GTK_IM_MODULE=ibus
#export XMODIFIERS=@im=dbus
#export QT_IM_MODULE=ibus
# If not running interactively, don't do anything
@dlagg
dlagg / .vimrc
Created July 5, 2020 09:13
My last use of vim (vimrc)
"nnoremap <silent> <F2> :set nu! number? | set rnu! <CR>
set nu rnu
set hlsearch
set cursorline
"let g:airline_theme='base16_colors'
let g:colorizer_auto_filetype='css,html'
let g:languagetool_lang='es'
let g:languagetool_jar='$HOME/.config/languagetool/languagetool-standalone/target/LanguageTool-3.7-SNAPSHOT/LanguageTool-3.7-SNAPSHOT/languagetool-commandline.jar'
syntax on
@dlagg
dlagg / 81-thinkpad-dock.rules
Created May 24, 2020 11:09 — forked from seanf/81-thinkpad-dock.rules
Example ThinkPad docking script for multi-monitor
# Save this file (after modifying ID_VENDOR and ID_MODEL if necessary) as /etc/udev/rules.d/81-thinkpad-dock.rules
# These values seem to work for "ThinkPad Mini Dock Plus Series 3"
SUBSYSTEM=="usb", ACTION=="add|remove", ENV{ID_VENDOR}=="17ef", ENV{ID_MODEL}=="100a", RUN+="/etc/sbin/thinkpad-dock.sh"
@dlagg
dlagg / errorAccesUsers.log
Created May 11, 2020 07:37
I'cant reach Users/Index Table users unexistent
Category: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware
EventId: 1
RequestId: 8000038c-0003-fb00-b63f-84710c7967bb
RequestPath: /Users
SpanId: |94464f67-4d786352f968d8b0.
@dlagg
dlagg / migration db update Fail(Table User already)
Created May 2, 2020 16:32
The Model is correct, "dotnet ef migrations add" WORKS , no .db files but when I apply the migration I get this error. The Table User already exist.
dotnet ef database update -v --context ClaveSolDbContext
Using project '/home/dlag/DAW/PROYECTO-FINAL-DAW/ClaveSol/ClaveSol.csproj'.
Using startup project '/home/dlag/DAW/PROYECTO-FINAL-DAW/ClaveSol/ClaveSol.csproj'.
Writing '/home/dlag/DAW/PROYECTO-FINAL-DAW/ClaveSol/obj/ClaveSol.csproj.EntityFrameworkCore.targets'...
dotnet msbuild /target:GetEFProjectMetadata /property:EFProjectMetadataFile=/tmp/tmpmYoIe7.tmp /verbosity:quiet /nologo /home/dlag/DAW/PROYECTO-FINAL-DAW/ClaveSol/ClaveSol.csproj
Writing '/home/dlag/DAW/PROYECTO-FINAL-DAW/ClaveSol/obj/ClaveSol.csproj.EntityFrameworkCore.targets'...
dotnet msbuild /target:GetEFProjectMetadata /property:EFProjectMetadataFile=/tmp/tmpG5zdL9.tmp /verbosity:quiet /nologo /home/dlag/DAW/PROYECTO-FINAL-DAW/ClaveSol/ClaveSol.csproj
Build started...
dotnet build /home/dlag/DAW/PROYECTO-FINAL-DAW/ClaveSol/ClaveSol.csproj /verbosity:quiet /nologo
// <auto-generated />
using ClaveSol.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace ClaveSol.Migrations
{
[DbContext(typeof(ClaveSolDbContext))]
partial class ClaveSolContextModelSnapshot : ModelSnapshot
dotnet ef database update --context ClaveSolDbContext
Build started...
Build succeeded.
fail: Microsoft.EntityFrameworkCore.Database.Command[20102]
Failed executing DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE "User" (
"Id" INTEGER NOT NULL CONSTRAINT "PK_User" PRIMARY KEY AUTOINCREMENT,
"Name" TEXT NOT NULL,
"Surname" TEXT NOT NULL,
"Mail" TEXT NOT NULL,