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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
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 | |
apt-get update 2>&1 1>/dev/null | sed -ne 's/.*NO_PUBKEY //p' | | |
while read key; do | |
echo "K: $key" | |
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys "$key" || apt-key adv --keyserver keyserver.debian.com --recv-keys "$key" | |
done |
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 [ "$#" -ne 2 ]; then | |
echo "You must enter exactly 2 command line arguments" | |
echo "Usage: "`basename "$0"`" video [target size in mb]" | |
exit | |
fi | |
target_video_size_MB="$2" | |
origin_duration_s=$(ffprobe -v error -show_streams -select_streams a "$1" | grep -Po "(?<=^duration\=)\d*\.\d*") |
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
#/usr/bin/env python | |
import requests | |
import os | |
import re | |
from typing import List | |
from bs4 import BeautifulSoup | |
contraloria_py = 'https://djbpublico.contraloria.gov.py/' |
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
#!/usr/bin/env python3 | |
# coding: utf-8 | |
# | |
# urban->json.py | |
# | |
# Copyright 2021 Luxter77 <[email protected]> | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <sys/types.h> | |
#include <sys/mman.h> | |
#include <fcntl.h> | |
#include <byteswap.h> | |
int main(int argc, char * argv[]) { | |
int fd = open(argv[1], O_RDWR); |
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-Module AzureAD -UseWindowsPowerShell | |
$AzureAdCred = Get-Credential | |
write-host -nonewline "Enter name for the output file: " | |
$Name = read-host | |
Connect-AzureAD -Credential $AzureAdCred | Out-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
$ext = Read-Host " - Extension de los archivos a concatenar (sin el punto inicial)"; | |
$mdir = "ESTE ES UN TEXTO PLACEHOLDER INVALIDO QUE NO DEVERIA EXISTIR EN TU COMPUTADORA 117843647349133%&W31"; | |
while ( -not ($mdir | Test-Path) ) { $mdir = (Read-Host " - Directorio que contiene los archivos a concatenar (relativo)" | Convert-Path ) }; | |
Set-Location $mdir; Set-Location ".." | |
$nn = 1; $n = 0; $ns = ""; | |
Get-ChildItem $mdir; | |
Write-Host ""; | |
Get-childItem -File $mdir | Where-Object { $_.Extension.tolower() -like ".$ext" } | ForEach-Object { |
OlderNewer