Run this script directly
curl -Lks bit.ly/pipclear | python| export IFS=" " | |
| str="hello world what is happening" | |
| arr=( $str ) | |
| echo first word: ${arr[0]} | |
| echo second word: ${arr[1]} | |
| echo third word: ${arr[2]} |
Run this script directly
curl -Lks bit.ly/pipclear | python| apt-get update && apt-get upgrade -y | |
| apt install wget curl git zsh -y | |
| sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)" | |
| /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
| apt install python3.9 python3.9-venv python3-pip -y | |
| python3.9 -m pip install --upgrade pip | |
| sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.9 2 | |
| pip install pipx | |
| pipx ensurepath | |
| pipx install poetry |
I hereby claim:
To claim this, I am signing this object:
| import os | |
| SUFFIX = "S20220010001" # replace with your suffix | |
| for item in os.listdir(): | |
| fname, ext = item.split(".") | |
| if not fname.endswith(SUFFIX): | |
| fname += f"_{SUFFIX}" | |
| os.rename(item, fname + "." + ext) |
| def perm(suffix, prefix="") -> None: | |
| if len(suffix) == 1: | |
| print(prefix + suffix) | |
| else: | |
| for i, char in enumerate(suffix): | |
| perm(suffix[:i] + suffix[i + 1 :], prefix + char) | |
| perm("hello") |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| int main(int argc, char *argv[]) { | |
| FILE *fp; | |
| void filecopy(FILE *, FILE *); | |
| if (argc == 1) { | |
| // no input, so copy stdin | |
| filecopy(stdin, stdout); |
| #include <pthread.h> | |
| #include <stdatomic.h> | |
| #include <stdbool.h> | |
| #include <stdio.h> | |
| #define MAX 90000 | |
| atomic_int count = ATOMIC_VAR_INIT(0); | |
| int faltu = 0; |