Skip to content

Commit

Permalink
preparing everything for a push
Browse files Browse the repository at this point in the history
  • Loading branch information
eyewee committed Feb 16, 2022
1 parent c048b93 commit 4e9192c
Show file tree
Hide file tree
Showing 503 changed files with 7,937 additions and 0 deletions.
18 changes: 18 additions & 0 deletions FINALS_SORTED_BY_DATE/1 c_00/ex00/ft_putchar.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putchar.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: bislamov <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/03/12 09:35:10 by bislamov #+# #+# */
/* Updated: 2020/03/12 09:37:13 by bislamov ### ########.fr */
/* */
/* ************************************************************************** */

#include <unistd.h>

void ft_putchar(char c)
{
write(1, &c, 1);
}
30 changes: 30 additions & 0 deletions FINALS_SORTED_BY_DATE/1 c_00/ex01/ft_print_alphabet.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_print_alphabet.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: bislamov <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/03/12 12:34:06 by bislamov #+# #+# */
/* Updated: 2020/03/12 12:34:19 by bislamov ### ########.fr */
/* */
/* ************************************************************************** */

#include <unistd.h>

void ft_putchar(char c)
{
write(1, &c, 1);
}

void ft_print_alphabet(void)
{
char letter;

letter = 'a';
while (letter <= 'z')
{
ft_putchar(letter);
letter++;
}
}
31 changes: 31 additions & 0 deletions FINALS_SORTED_BY_DATE/1 c_00/ex02/ft_print_reverse_alphabet.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_print_reverse_alphabet.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: bislamov <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/03/12 12:34:48 by bislamov #+# #+# */
/* Updated: 2020/03/12 12:35:45 by bislamov ### ########.fr */
/* */
/* ************************************************************************** */

#include <unistd.h>

void ft_putchar(char c)
{
write(1, &c, 1);
}

void ft_print_reverse_alphabet(void)
{
char letter;

letter = 'z';
while (letter >= 'a')
{
ft_putchar(letter);
letter--;
}
}

Binary file added FINALS_SORTED_BY_DATE/1 c_00/ex03/.DS_Store
Binary file not shown.
30 changes: 30 additions & 0 deletions FINALS_SORTED_BY_DATE/1 c_00/ex03/ft_print_numbers.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_print_numbers.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: bislamov <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/03/12 12:37:24 by bislamov #+# #+# */
/* Updated: 2020/03/12 12:38:00 by bislamov ### ########.fr */
/* */
/* ************************************************************************** */

#include <unistd.h>

void ft_putchar(char c)
{
write(1, &c, 1);
}

void ft_print_numbers(void)
{
char letter;

letter = '0';
while (letter <= '9')
{
ft_putchar(letter);
letter++;
}
}
30 changes: 30 additions & 0 deletions FINALS_SORTED_BY_DATE/1 c_00/ex04/ft_is_negative.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_is_negative.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: bislamov <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/03/12 12:57:05 by bislamov #+# #+# */
/* Updated: 2020/03/12 14:38:06 by bislamov ### ########.fr */
/* */
/* ************************************************************************** */

#include <unistd.h>

void ft_putchar(char c)
{
write(1, &c, 1);
}

void ft_is_negative(int n)
{
if (n < 0)
{
ft_putchar('N');
}
else
{
ft_putchar('P');
}
}
50 changes: 50 additions & 0 deletions FINALS_SORTED_BY_DATE/1 c_00/ex05/ft_print_comb.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_print_comb.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: bislamov <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/03/12 18:31:38 by bislamov #+# #+# */
/* Updated: 2020/03/12 18:40:50 by bislamov ### ########.fr */
/* */
/* ************************************************************************** */

#include <unistd.h>
#include <stdio.h>

void ft_putchar(char c)
{
write(1, &c, 1);
}

void ft_print_comb()
{
char a = '0';
char b;
char c;
while(a <= '7')
{
b = a + 1;
while(b <= '8')
{
c = b + 1;
while(c <= '9')
{
ft_putchar(a);
ft_putchar(b);
ft_putchar(c);

if ( a != '7') {
ft_putchar(',');
ft_putchar(' ');
}
c++;
}
b++;

}
a++;
}

}
50 changes: 50 additions & 0 deletions FINALS_SORTED_BY_DATE/1 c_00/main.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#include <unistd.h>
#include <stdio.h>

void ft_putchar(char c)
{
write(1, &c, 1);
}


void ft_print_comb() {

char a = '0';
char b;
char c;

while (a <= '7')
{
b = a + 1;

while (b <= '8')
{
c = b + 1;
while (c <= '9')
{
ft_putchar(a);
ft_putchar(b);
ft_putchar(c);

if ( a != '7') {
ft_putchar(',');
ft_putchar(' ');
}
c++;
}
b++;

}
a++;
}

}


int main (){

ft_print_comb();


return 0;
}
1 change: 1 addition & 0 deletions FINALS_SORTED_BY_DATE/1 c_00/tests.c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Binary file added FINALS_SORTED_BY_DATE/2 retry01_2/.DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions FINALS_SORTED_BY_DATE/2 retry01_2/ex01/print_groups.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh/
id -Gn $FT_USER | tr ' ' ',' | tr -d '\n'
2 changes: 2 additions & 0 deletions FINALS_SORTED_BY_DATE/2 retry01_2/ex02/find_sh.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
find . -type f -name "*.sh" | sed 's:./::g' | cut -d '.' -f1
2 changes: 2 additions & 0 deletions FINALS_SORTED_BY_DATE/2 retry01_2/ex03/count_files.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
find . -type f -o -type d | wc -l | sed 's: ::g'
2 changes: 2 additions & 0 deletions FINALS_SORTED_BY_DATE/2 retry01_2/ex04/MAC.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh/
ifconfig | grep "ether" | cut -d ' ' -f 2
1 change: 1 addition & 0 deletions FINALS_SORTED_BY_DATE/2 retry01_2/ex05/_/_$__MaRViN__$_/_
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
42
2 changes: 2 additions & 0 deletions FINALS_SORTED_BY_DATE/2 retry01_2/ex06/skip.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh/
ls -l | sed 'n;d'
2 changes: 2 additions & 0 deletions FINALS_SORTED_BY_DATE/2 retry01_2/ex07/r_dwssap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh/
cat /etc/passwd | grep -v "#" | sed -n 'n;p' | cut -d ':' -f1 | rev | sort -r | sed -n "$FT_LINE1,$FT_LINE2 p" | sed "s/$/, /" | tr -d "\n" | sed "s/, $/./g" | tr -d "\n"
Binary file added FINALS_SORTED_BY_DATE/3 retry01/.DS_Store
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh/
id -Gn $FT_USER | tr ' ' ',' | tr -d '\n'
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
find . -type f "*.sh" | sed 's:./::g' | cut -d '.' -f1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
find . -type f -o -type d | wc -l | sed 's: ::g'
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh/
ifconfig | grep "ether" | cut -d ' ' -f 2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
42
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh/
ls -l | sed 'n;d'
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh/
cat /etc/passwd | grep -v "#" | sed -n 'n;p' | cut -d ':' -f1 | rev | sort -r | sed -n "$FT_LINE1,$FT_LINE2 p" | sed "s/$/, /" | tr -d "\n" | sed "s/, $/./g" | tr -d "\n"
Binary file added FINALS_SORTED_BY_DATE/4 retry00/.DS_Store
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Z
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Credentials cache: API:58EA04A0-CF1E-4DDE-A388-12AC675878AD
Principal: [email protected]

Issued Expires Principal
Mar 9 14:18:31 2020 Mar 16 14:18:31 2020 krbtgt/[email protected]
Mar 9 14:18:32 2020 Mar 16 14:18:31 2020 HTTP/[email protected]
Mar 9 14:22:11 2020 Mar 16 14:18:31 2020 ldap/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ls -tUmp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
git log -5 --pretty=format:"%H";echo
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh/
git ls-files -i -o --exclude-standard
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Episode V, A NEW H0PE It is a period of civil war
Rebel spaceships, striking from a hidden base, have won their first victory against the evil Galactic Empire.
During the battle, Rebel spies managed to steal secret plans to the Empire's ultimate weapon, the STAR DEATH, an armored space station with enough power to destroy an entire planet.


Pursued by the Empire's sinister agents,
Princess Mehdi races home aboard her starship, custodian of the stolen plans that can save her people and restore the dictatorship to the galaxie..




Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
find . -type f \( -name "*~" -o -name "#*#" \) -print -delete
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
41 string 42 42 file
Binary file added MARS_PISCINE_FOLDER/LATEST_BACKUP/.DS_Store
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions MARS_PISCINE_FOLDER/LATEST_BACKUP/SHELL_00/ex00/z
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Z
Binary file not shown.
Binary file not shown.
7 changes: 7 additions & 0 deletions MARS_PISCINE_FOLDER/LATEST_BACKUP/SHELL_00/ex03/klist.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Credentials cache: API:58EA04A0-CF1E-4DDE-A388-12AC675878AD
Principal: [email protected]

Issued Expires Principal
Mar 9 14:18:31 2020 Mar 16 14:18:31 2020 krbtgt/[email protected]
Mar 9 14:18:32 2020 Mar 16 14:18:31 2020 HTTP/[email protected]
Mar 9 14:22:11 2020 Mar 16 14:18:31 2020 ldap/[email protected]
1 change: 1 addition & 0 deletions MARS_PISCINE_FOLDER/LATEST_BACKUP/SHELL_00/ex04/midLS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ls -tUmp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
git log -5 --pretty=format:"%H";echo
2 changes: 2 additions & 0 deletions MARS_PISCINE_FOLDER/LATEST_BACKUP/SHELL_00/ex06/git_ignore.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh/
git ls-files -i -o --exclude-standard
11 changes: 11 additions & 0 deletions MARS_PISCINE_FOLDER/LATEST_BACKUP/SHELL_00/ex07/b
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Episode V, A NEW H0PE It is a period of civil war
Rebel spaceships, striking from a hidden base, have won their first victory against the evil Galactic Empire.
During the battle, Rebel spies managed to steal secret plans to the Empire's ultimate weapon, the STAR DEATH, an armored space station with enough power to destroy an entire planet.


Pursued by the Empire's sinister agents,
Princess Mehdi races home aboard her starship, custodian of the stolen plans that can save her people and restore the dictatorship to the galaxie..




1 change: 1 addition & 0 deletions MARS_PISCINE_FOLDER/LATEST_BACKUP/SHELL_00/ex08/clean
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
find . -type f \( -name "*~" -o -name "#*#" \) -print -delete
1 change: 1 addition & 0 deletions MARS_PISCINE_FOLDER/LATEST_BACKUP/SHELL_00/ex09/ft_magic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
41 string 42 42 file
9 changes: 9 additions & 0 deletions MARS_PISCINE_FOLDER/PISCINE RESSOURCES/a
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
STARWARS
Episode IV, A NEW HOPE It is a period of civil war.

Rebel spaceships, striking from a hidden base, have won their first victory against the evil Galactic Empire.
During the battle, Rebel spies managed to steal secret plans to the Empire's ultimate weapon, the DEATH STAR,
an armored space station with enough power to destroy an entire planet.

Pursued by the Empire's sinister agents, Princess Leia races home aboard her starship, custodian of the stolen plans that can save her people and restore freedom to the galaxy...

18 changes: 18 additions & 0 deletions MARS_PISCINE_FOLDER/PISCINE RESSOURCES/sw.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
1,2c1,8
< STARWARS
< Episode IV, A NEW HOPE It is a period of civil war.
---
> Episode V, A NEW H0PE It is a period of civil war
> Rebel spaceships, striking from a hidden base, have won their first victory against the evil Galactic Empire.
> During the battle, Rebel spies managed to steal secret plans to the Empire's ultimate weapon, the STAR DEATH, an armored space station with enough power to destroy an entire planet.
>
>
> Pursued by the Empire's sinister agents,
> Princess Mehdi races home aboard her starship, custodian of the stolen plans that can save her people and restore the dictatorship to the galaxie..
>
4,6d9
< Rebel spaceships, striking from a hidden base, have won their first victory against the evil Galactic Empire.
< During the battle, Rebel spies managed to steal secret plans to the Empire's ultimate weapon, the DEATH STAR,
< an armored space station with enough power to destroy an entire planet.
8d10
< Pursued by the Empire's sinister agents, Princess Leia races home aboard her starship, custodian of the stolen plans that can save her people and restore freedom to the galaxy...
Loading

0 comments on commit 4e9192c

Please sign in to comment.