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/bash | |
# "input field separator" (IFS) to newline (0x0a) | |
IFS=$'\n' | |
# for i in | |
# tail result of `ls -lt` except the first line | |
for i in $(ls -lt | tail -n $(echo "$(ls -lt | wc -l) - 1" | bc) ) | |
do | |
size=$(echo "$(echo $i | awk '{print $5}') / 1024" | bc) | |
file=$(echo $i | awk '{print $9}') |
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
/* the working copy of this as of 2023 03 30 at 09:00 is https://jsbin.com/varoyit/edit?output */ | |
/* | |
I've wrapped Makoto Matsumoto and Takuji Nishimura's code in a namespace | |
so it's better encapsulated. Now you can have multiple random number generators | |
and they won't stomp all over each other's state. | |
If you want to use this as a substitute for Math.random(), use the random() | |
method like so: | |
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
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"background": "#c386f1", | |
"foreground": "#ffffff", | |
"leading_diamond": "\ue0b6", |
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 | |
for i in {2..20}; do ping -w 1 -c 1 192.168.1.$i; done | grep ttl |
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 | |
# This takes about 2 minutes, unless the /etc/network/new-interfaces works, | |
# in which case use atq and atrm to stop the "refresh-network-safely-at.txt" | |
# commands from happening | |
d=$(date +%Y%m%d-%H%M) | |
backup=$d-interfaces | |
cp /etc/network/interfaces /etc/network/$backup | |
cp /etc/network/interfaces /etc/network/temp-backup | |
cp /etc/network/new-interfaces /etc/network/interfaces |
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
/* | |
This is not secure or recommended for anything other than testing. | |
Published under MIT or GPL with the most permissiveness | |
(whichever). No warranty implied or otherwise. Based on the gist | |
from which it was forked. | |
2018 03 01 | |
Gustavo Keener | |
*/ |
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
/* | |
This is not secure or recommended for anything other than testing. | |
Published under MIT or GPL with the most permissiveness | |
(whichever). No warranty implied or otherwise. | |
2018 03 01 | |
Gustavo Keener | |
*/ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Simple Bit</title> | |
</head> | |
<body> | |
<script src="https://code.jquery.com/jquery-3.1.0.js"></script> | |
<div style="font-family:Calibri, Arial, sans-serif"> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Simple Bit</title> | |
</head> | |
<body> | |
<script src="https://code.jquery.com/jquery-3.1.0.js"></script> | |
<div style="font-family:Calibri, Arial, sans-serif"> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Simple Bit</title> | |
</head> | |
<body> | |
<script src="https://code.jquery.com/jquery-3.1.0.js"></script> | |
<div> |
NewerOlder