This file contains hidden or 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 imports | |
import XMonad | |
import XMonad.Config.Xfce | |
import XMonad.Util.EZConfig | |
import XMonad.Hooks.ManageDocks | |
-- Layouts imports | |
import XMonad.Layout.NoBorders (noBorders, smartBorders) | |
import XMonad.Layout.Spiral | |
import Data.Ratio -- for % operator | |
import Data.List (isSuffixOf, isPrefixOf) |
This file contains hidden or 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 | |
db_name="tlapafigues_chromispos" | |
fecha=$(date +"%Y%m%d%H%M%S") | |
rutarespaldo="/home/tf/Documentos/DB/${db_name}.${fecha}" | |
mysqldump --column-statistics=0 -u root "${db_name}" > "${db_name}.${fecha}.sql" | |
zip -m "${rutarespaldo}.zip" "${db_name}.${fecha}.sql" |
This file contains hidden or 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 | |
# Directorio donde queremos verificar la existencia de los archivos | |
directorio="/home/tf/.scripts/images/" | |
# Verificar si el archivo "claves_truper.txt" existe | |
if [ ! -f "codigos_truper.txt" ]; then | |
echo "El archivo codigos_truper.txt no existe." | |
exit 1 | |
fi |
This file contains hidden or 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 | |
# Usage : MakeBase64CSV.sh infile.csv outfile.csv | |
# infile.csv columns are : externalID, name, filename or identifier | |
# infile.csv separator MUST BE | | |
echo \"External ID\",\"Name\",\"Image\" > $2 | |
while IFS="|" read f1 f2 f3; do |
This file contains hidden or 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
import XMonad | |
import XMonad.Config.Xfce | |
import XMonad.Util.EZConfig | |
import XMonad.Hooks.ManageDocks | |
-- Layouts imports | |
import XMonad.Layout.NoBorders (noBorders, smartBorders) | |
import XMonad.Layout.Spiral | |
import Data.Ratio -- for % operator | |
import Data.List (isSuffixOf, isPrefixOf) | |
import XMonad.Layout.Grid (Grid(..)) |
This file contains hidden or 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 | |
# if no args open new frame | |
if [ $# -eq 0 ]; then | |
jumpapp -R emacs || emacsclient -nc | |
exit | |
fi | |
emacsclient -e "(frames-on-display-list \"$DISPLAY\")" # &>/dev/null |
This file contains hidden or 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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; | |
;; BACK UP YOUR LOGSEQ DIR BEFORE RUNNING THIS! | |
;; | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; Copyright (C) Aug 4 2022, William R. Burdick Jr. | |
;; | |
;; LICENSE | |
;; This code is dual-licensed with MIT and GPL licenses. |
This file contains hidden or 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
import javafx.application.Application; | |
import javafx.event.EventHandler; | |
import javafx.geometry.Point2D; | |
import javafx.scene.Group; | |
import javafx.scene.Scene; | |
import javafx.scene.canvas.Canvas; | |
import javafx.scene.canvas.GraphicsContext; | |
import javafx.scene.input.MouseEvent; | |
import javafx.stage.Stage; | |
import static javafx.scene.input.MouseEvent.*; |