Skip to main content

Cerca

Elementi taggati con: bash


 
Hey everyone, I’m #newhere. I’m interested in #anime, #bash, #crystal, #debian, #doctorwho, #freesoftware, #go, #googleplus, #gplusrefugee, #linux, #madpagan11, #mastodon, #newhere, #opensuse, #podcasts, #programming, #python, #raspberrypi, #reddit, #ruby, #rust, #rwby, #savegoogleplus, #shell, #siduction, #solus, #startrek, #twitter, #utau, #vocaloid, and #youtube...among other things.

Many of you might remember me from popular social networks, such as:
Google+
Twitter
Mastodon
MeWe
Minds
YouTube: jpyper <- Go here for playlists of things that interest me.
YouTube: MaDpAGaN11 <- Go here for MaDpAGaN11 Vocaloid group, which I am a member of, and consultant for.
Instagram

 

ZigzagDownLoader

Notifiche anche per gli altri window manager


Aggiunta la notifica dei download completati. La funzione è attiva anche se ZDL è avviato in modalità “demone”. L'apparizione delle notifiche dovrebbe dipendere dal WM in uso all'avvio del "core" di ZDL, cioè di un'istanza del programma nelle modalità "standard output", "lite", "daemon" e di quelle attivate dalle interfacce grafica e socket/web (cioè "daemon"). Anche la modalità "interattiva" potrebbe attivare le notifiche. Comunque, di solito si usa un solo WM...

#zdl #bash #linux #cygwin #downloader #axel #wget #aria2 #gnu #free #freesoftware #softwarelibero #zigzag #zigzagdownloader #condividetevelo #sharing #streaming #hosting #filehosting #m3u8 #ffmpeg #desktop #gtk #qt #wm

 

ZigzagDownLoader

StumpWM!


Aggiunta la notifica di StumpWM quando un download è completato. La funzione è attiva anche se ZDL è avviato in modalità "demone". Non è richiesto alcun modulo aggiuntivo per StumpWM.

#zdl #bash #linux #cygwin #downloader #axel #wget #aria2 #gnu #free #freesoftware #softwarelibero #zigzag #zigzagdownloader #condividetevelo #sharing #streaming #hosting #filehosting #m3u8 #ffmpeg #desktop #gtk #qt #stumpwm

 

#Linux #Programming and #Scripting PDFs



Here is the .iso and .zip versions containing the following:

https://archive.org/details/LinuxUnixPDFs

with…

#Bash #Cook #Book.pdf

Bash It Out Strengthen Your Bash knowledge with 17 Scripting Challenges (2017).pdf

Bash #Pocket #Reference.pdf

C Programming A Modern Approach.pdf

Certified Ethical #Hacker.pdf

Computer #Security Fundamentals.pdf

From Bash to Z #Shell.pdf

Gray Hat Hacking Third Edition.pdf

Grep Pocket Reference.pdf

Hack X Crypt.pdf

Hacking Vim.pdf

Hacking for Beginners The Ultimate #Guide For Newbie Hackers.pdf

How Linux Works.pdf

Just Say No To Microsoft.pdf

Learning Bash Shell.pdf

Learning C by Example.pdf

Linux #Command Line and Shell Scripting #Bible.pdf

Linux Essentials.pdf

Linux Shell Scripting #Cookbook.pdf

Linux The Ultimate Step by Step Guide.pdf

Linux Utilities Cookbook.pdf

Oreilly Linux Cookbook.pdf

Pocket Reference.pdf

Practical Linux Security Cookbook.pdf

Quick Hacks For The Command Line.pdf

#Sed and #Awk.pdf

Shell Scripting Guide.pdf

Shell Scripting.pdf

#Shell #Tutorial.pdf

Simple Steps To Data #Encryption.pdf

TLCL.pdf

The Linux Command Line.pdf

#UNIX and Linux System Administration Handbook (4th Ed).pdf

UNIX and Linux System Administration Handbook (5th Ed)(gnv64).pdf

WiFi Hacking for Beginners Learn Hacking by Hacking WiFi networks (2017).pdf

Wicked Cool Shell Scripts.pdf

 

Programación Shell: Estructura y ejecución de un script [Shell 0]


#bash #programación #script #shell

El shell no es solamente un simple intérprete de comandos, sino que dispone de un verdadero lenguaje de programación; con gestión de variables, control de flujo y bucles, operaciones sobre las variables, funciones…

Las instrucciones se agrupan dentro de un fichero donde durante su ejecución, se leerá una a una cada línea del fichero y se irá ejecutando. Una línea puede componerse de comandos internos o externos, de comentarios o estar vacía.

Por convención, los nombres de los scripts de shell terminal en general por sh o ksh o csh, aunque no es obligatorio.

Para que un script sea ejecutable, hay que darle permisos de ejecución de la siguiente forma:
chmod u+x miscript.sh
Y para ejecutarlo:
./miscript.sh
Para evitar ./ tendremos que añadir lo siguiente al $PATH:
PATH=$PATH:.

miscript.sh

Nuestro primer script


Todos los scripts empezarán con el símbolo # que se utiliza para que sea línea sea un comentario. Todos nuestros scripts deberán de empezar de la siguiente forma:
&#35;!/bin/bash
De este modo indicaremos que el script está escrito usando Bourne Again. Yo suelo recomendar, añadir un par de comentarios al principio para ser un poco más ordenados, pero es totalmente opcional:
&#35;!/bin/bash

&#35;NuestroNombre

&#35;nombreScript

&#35;version

Y eso es todo para empezar. En el siguiente post veremos los argumentos del script.

La entrada Programación Shell: Estructura y ejecución de un script [Shell 0] se publicó primero en _ voidNull.
Programación Shell: Estructura y ejecución de un script [Shell 0]

 
#oop #bash #stdlib

 

check_http_ntml – Checkeo Nagios para saber si autenticas contra un windows ntlm


https://mierda.tv/2018/08/09/check_http_ntml-checkeo-nagios-para-saber-si-autenticas-contra-un-windows-ntlm

system #bash #nagios


Es un script basado en este otro: https://exchange.nagios.org/directory/Plugins/Network-Protocols/HTTP/check_http_ntlm/details Se puede adaptar fácil a freeBSD o cualquier distro en la que esté nagios montado. Permite saber si esa web (se le pasa una url) tiene una determinada cadena en el código html que suelta. De esa forma sabemos que hemos autenticado. Se ha de cambiar el […]

 

ZigzagDownLoader

Interfaccia GRAFICA!


Si avvia usando le seguenti opzioni:
-g, --gui
Avvia l'interfaccia grafica nella directory corrente
o in quella eventualmente inserita fra gli argomenti,
attivando automaticamente zdl –daemon come "core",
se ancora non è stato attivato zdl

--path-gui
Prima di avviare zdl, apre una finestra per la selezione
della directory di destinazione, se non è indicata fra
gli argomenti del comando (utile se "zdl –gui" è avviato
da un'icona del desktop o da un'estensione del
browser web, come "External Application Button")

Consiglio di integrare ZDL ai browser web (Firefox, Chrome/Chromium, Opera), usando External Application Button. Dopo aver installato ZDL e l'estensione del browser, impostare le preferenze dell'estensione in questo modo:
- Display name: inserisci quello che vuoi, per esempio ZigzagDownLoader- Executable name: zdl- Arguments: --gui --path-gui [HREF]- Placements: seleziona tutto!
- Icona: puoi usare /usr/local/share/zdl/webui/icon-32x32.png o /usr/local/share/zdl/webui/favicon.png (che però è 16x16)
- per sicurezza, metti anche il check su Quotation

#zdl #bash #linux #cygwin #downloader #axel #wget #aria2 #gnu #free #freesoftware #softwarelibero #zigzag #zigzagdownloader #condividetevelo #sharing #streaming #hosting #filehosting #m3u8 #ffmpeg #desktop #browsers #extensioni #addon

 

¿Qué comando de terminal usas más veces en Linux?


https://www.ochobitshacenunbyte.com/2018/07/04/que-comando-de-terminal-usas-mas-veces-en-linux

#bash #comando de terminal #linux #perl #sysadmin
¿Qué comando de terminal usas más veces en Linux?

 
I decided to work a bit on my #bash prompt at work. At work I share a common home directory through many servers.

People often make a colorful prompt. I decided I wanted to reduce the amount of colors in the prompt and use them only where they help. Thus the text is black (on a bright background). I use blue for separators. I also added '$?' to the prompt to see what the previous command returned: if I use PROMPT_COMMAND (see below) anyway, why not get it for free?

I'm not happy with the way this works now. Note what I had to do with escaping and quoting and even worse: the combination of single and double quoting in the function. This also pollutes the general name-space (if I happen to e.g. use the variable name 'host' in a shell one-liner, my prompt is messed up).

Technically PS1 is the standard shell prompt (yes, there are also PS2, PS3 and PS4) and PROMPT_COMMAND, if set, is run each time before a prompt to set PS1. So this means I run 'git branch' and sed automatically every time I get a shell prompt.

Below is from my $HOME/.bashrc
black="\[\e[0m\]"
blue="\[\e[0;34m\]"
black_e='\\[\\e[0m\\]'
blue_e='\\[\\e[0;34m\\]'
#red="\[\e[0;32m\]"
&#35;green="\[\e[0;32m\]"
&#35;yellow="\[\e[0;33m\]"
&#35;purple="\[\e[0;35m\]"
&#35;l_blue="\[\e[0;36m\]"
user="${black}\\u"
host="${black}\\h"
path="${black}\\w"
tc_git_branch() {
git branch 2>/dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ '"${blue_e}(${black_e}"'\1'"${blue_e})${black_e}"'/'
}
PROMPT_COMMAND='PS1="$? ${blue}[${user}${blue}@${host} ${path}`tc_git_branch`${blue}]\\\$${black} "'

#bash prompt

 

ZigzagProxy

RELEASED the stable version 1.0


Immagine/foto

IN ITALIANO

More powerful and easier to use

  • source code cleaner, structured, clear, stable, easy to maintain;
  • bilingual interface and documentation: automatically, it should recognize the language used in the bash terminal, in Italian or in English for other languages (sorry: I do not know other languages);
  • more direct approach with the remote proxy update service;
  • more intuitive and functional internet connection of commands and programs through the proxies
Now the program is complete and stable.

Go to the main page of ZigzagProxy, to discover its potential:
https://www.inventati.org/zoninoz/html/index.php?module=text&aid=67

Project page published on Savannah/GNU:
https://savannah.nongnu.org/projects/zproxy

#zproxy #zigzag #zigzagproxy #ip changer #bash #gnu #linux #proxy #privacy #italian #condividetevelo #freesoftware #free #freedom

 
Immagine/foto

Chuck Norris te dice que hackees en #GNU #Linux desde la línea de comandos | victorhckinthefreeworld


https://victorhckinthefreeworld.com/2018/06/01/chuck-norris-te-dice-que-hackees-en-linux-desde-la-linea-de-comandos/

En este artículo hackearemos con la línea de comandos de GNU/Linux, con algunas utilidades para la línea de comandos, y también “for the lulz” lo haremos con chistes sobre Chuck Norris.

#bash #hacking

 
#linux #bash #coutils #progress

 
Super impressed by ArgBash, a library for generating code to parse command line arguments in #bash. Well written, easy to use, and generates very correct code that handles nearly any kind of argument your script might need. Came in handy today.


@Gruppo Linux Como

 

Because finding the #GUID of a #Diaspora post sucks:



````
#!/bin/bash

[[ -z "${1}" ]] && {
echo 'usage: dlink ' >&2
exit 1
}
guid=$(
curl -s "${1}.json" \
| jq .guid \
| tr -d '"'
)
printf '/posts/%s\n' "${guid}"
:

eof



````

The syntax highlighting sucks, too…

Caveat: no error checking.

[ #JSON, #CLI, #bash, #useatyourownperil ]

 

Because finding the #GUID of a #Diaspora post sucks:



````
#!/bin/bash

[[ -z "${1}" ]] && {
echo 'usage: dlink ' >&2
exit 1
}
guid=$(
curl -s "${1}.json" \
| jq .guid \
| tr -d '"'
)
printf '/posts/%s\n' "${guid}"
:

eof



````

The syntax highlighting sucks, too…

Caveat: no error checking.

[ #JSON, #CLI, #bash, #useatyourownperil ]

 
Immagine/foto

Pon a prueba tus conocimientos sobre Bash | Cyberhadeshttp://www.cyberhades.com/2017/02/06/pon-a-prueba-tus-conocimientos-sobre-bash/

En cmdchallenge.com podemos encontrar, como su nombre indica, varios retos que debemos resolver usando comandos de Bash.

#bash #cmdhttp://www.cyberhades.com/2017/02/06/pon-a-prueba-tus-conocimientos-sobre-bash/
#bash #cmd

 
A nice little shell trick:

You are all probably familiar with "here documents":
cat <<EOF
line 1
line 2
EOF

This will consider the lines of text from the standard input as input for cat. It is terminated by the special marker that comes after the '<<'. This is handy, for instance, to create text files:
cat <<THEEND >newfile
a line
and another
$variables will be expanded
THEEND

I needed to write an internal document in my company. In it there were instructions for creating a certain configuration file. I wanted to be as user-friendly as possible. I initially wrote just the content of the file and its full path. But later wanted to improve the instructions. Thus wanted to use 'here documents'. But what if the users know their way already (and may have better ideas on the file name, etc.), how do I avoid getting in the way?

The first step is obvious. That file has '#' as a comment marker. Thus I wrote:

# cat <<EOF >/the/full/path
line 1
line 2
EOF

Note the last empty line. When giving instructions to copy and paste to a terminal, you should leave a final empty line for the final press of Enter.

If someone accidentally copies the first line as well, it is still a valid configuration file. But then I thought: Why not make the marker a comment line as well?

# cat <<'#EOF' >/the/full/path
line 1
line 2
#EOF

Done.

#bash #linux #scripts #shell

 
Je viens de créer un dépôt pour mes scripts buku : https://github.com/polo2ro/buku-scripts

Buku: Gestionnaire de signets en ligne de commande pour Linux



https://websetnet.com/fr/buku-command-line-bookmark-manager-linux/

#buku #bash #linux