This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires AutoHotkey v2.0.2 | |
#SingleInstance Force | |
Komorebic(cmd) { | |
RunWait(format("komorebic.exe {}", cmd), , "Hide") | |
} | |
; Start komorebi if not started already | |
if !ProcessExist("komorebi.exe") | |
Komorebic("start") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env xdg-open | |
[Desktop Entry] | |
Version=1.0 | |
Type=Application | |
Terminal=false | |
Exec=XDG_CURRENT_DESKTOP=GNOME /usr/bin/packettracer | |
Name=PacketTracer | |
Comment=PacketTracer | |
Icon=/opt/packettracer/art/app.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
awkGrab="" | |
if [ -z "$1" ] | |
then | |
awkGrab="all" | |
else | |
awkGrab="$1" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.tab-background { | |
border-radius: 10px 10px 0 0 !important; | |
margin-bottom: 0px !important; | |
} | |
.tabbrowser-tab:not([selected=true]):not([multiselected=true]) .tab-background { | |
background-color: color-mix(in srgb, currentColor 5%, transparent); | |
} | |
.tabbrowser-tab { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Validate CNP | |
* @param {string} value CNP | |
* @returns {boolean} Valid or not | |
*/ | |
export const cnp = (value: string) => { | |
var re = /^\d{1}\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])(0[1-9]|[1-4]\d| 5[0-2]|99)\d{4}$/, | |
bigSum = 0, | |
rest = 0, | |
ctrlDigit = 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Type=Service | |
Icon=nvim | |
X-KDE-ServiceTypes=KonqPopupMenu/Plugin | |
MimeType=text/plain; | |
Actions=openFilesInLunarNeovide; | |
Encoding=UTF-8 | |
X-KDE-AuthorizeAction=shell_access | |
[Desktop Action openFilesInLunarNeovide] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# find index of $1 in [$2 $3 $4 ...] | |
function indexof { | |
search="$1"; shift | |
i=0 | |
for arg; do | |
if [ "$search" = "$arg" ] | |
then | |
echo $i |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Search all directories that contain headers | |
macro(HEADER_DIRECTORIES return_list) | |
file(GLOB_RECURSE new_list *.h) | |
set(dir_list "") | |
foreach(file_path ${new_list}) | |
get_filename_component(dir_path ${file_path} PATH) | |
set(dir_list ${dir_list} ${dir_path}) | |
endforeach() | |
list(REMOVE_DUPLICATES dir_list) | |
set(${return_list} ${dir_list}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Type=Service | |
Icon=com.visualstudio.code | |
X-KDE-ServiceTypes=KonqPopupMenu/Plugin | |
MimeType=text/plain; | |
Actions=openFilesInVSCode; | |
Encoding=UTF-8 | |
X-KDE-AuthorizeAction=shell_access | |
[Desktop Action openFilesInVSCode] |
NewerOlder