modified: install/chmod.sh
modified: install/openwrt.sh modified: install/pacman.sh modified: install/tree_cpy.sh modified: usr/bin/aur modified: usr/bin/brc new file: usr/bin/idea modified: usr/bin/mountcrypt new file: usr/bin/regex_gen modified: usr/etc/pam.d/system-local-login modified: usr/etc/resolv.conf modified: usr/etc/systemd/resolved.conf modified: usr/etc/systemd/system/tcpd.service modified: usr/home/.bash_aliases modified: usr/home/.bashrc
This commit is contained in:
+6
-1
@@ -1,6 +1,11 @@
|
||||
#!/bin/bash
|
||||
aur ()
|
||||
{
|
||||
git clone https://aur.archlinux.org/$1.git
|
||||
DIR=~/tmp
|
||||
echo "note: ceci est un script maison"
|
||||
mkdir $DIR
|
||||
git clone https://aur.archlinux.org/$1.git $DIR/$1
|
||||
cd $DIR/$1
|
||||
makepkg -si
|
||||
}
|
||||
aur "$@"
|
||||
|
||||
+1
-2
@@ -2,8 +2,7 @@
|
||||
|
||||
set -e
|
||||
|
||||
MACHINE_DIR=${1:$MACHINE_DIR}
|
||||
MACHINE_DIR=${MACHINE_DIR:-"/svr"}
|
||||
MACHINE_DIR="/svr"
|
||||
F_NAME=".bashrc";
|
||||
cd "$MACHINE_DIR/usr/home";
|
||||
commit_if_modified "$F_NAME"
|
||||
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/home/painpain/Desktop/idea-IU-253.30387.90/bin/idea
|
||||
Regular → Executable
Executable
+26
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env python3
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
# Ensure exrex is installed
|
||||
try:
|
||||
import exrex
|
||||
except ImportError:
|
||||
subprocess.check_call([sys.executable, "-m", "pip", "install", "exrex"])
|
||||
import exrex
|
||||
|
||||
import argparse
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description="Generate all possibilities from a regex")
|
||||
parser.add_argument("regex", type=str, help="Regex pattern (finite)")
|
||||
args = parser.parse_args()
|
||||
|
||||
try:
|
||||
for match in exrex.generate(args.regex):
|
||||
print(match)
|
||||
except Exception as e:
|
||||
print(f"Error: {e}", file=sys.stderr)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user