Giter Site home page Giter Site logo

itai-nelken / aptpac Goto Github PK

View Code? Open in Web Editor NEW
27.0 1.0 4.0 376 KB

A simple wrapper for 'pacman' with a syntax similar to 'apt' to help people transitioning to Arch and Arch based distributions like Manjaro.

Home Page: https://itai-nelken.github.io/aptpac/

License: MIT License

Shell 36.18% CMake 12.73% C 49.64% Makefile 1.45%
apt pacman arch manjaro debian package-manager

aptpac's Introduction

Hi! ๐Ÿ‘‹

My name is Itai Nelken and I'm a Linux and open source enthusiast and programmer.
I like to program low level stuff, the lower the better. My favorite programming language is C.

  • ๐Ÿ”ญ Iโ€™m currently working on itai-lang, a programming language I designed.
  • ๐ŸŒฑ Iโ€™m currently learning compiler design.
  • ๐Ÿ’ฌ Ask me about anything Linux, open source, and programming related (especially C).
  • ๐Ÿ“ซ How to reach me: Open a new issue or discussion in this repository.
Secret terminal

How I learnt to code (sort of)

installing skills = weeks of reading and trying stuff
$ ./Itai --skill=python --load-brain
loading brain...
turning it on...
brain: attempting to load Python skills...
brain: FATAL ERROR: Python skills are missing! can't run brain with Python skill!
$ ./Itai --skill=C --load-brain
loading brain...
turning it on...
brain: attempting to load c skills...
brain: FATAL ERROR: C skills are incomplete and corrupted! stop copying and start learning Itai!!
$ ./Itai --skill=bash --load-brain
loading brain...
turning it on...
brain: attempting to load bash skills... WARNING: brain might malfunction becasue of mediocre bash skills!
SUCCESS! - brain partialy on
$ ./Itai --load-brain
loading brain...
turning it on...
brain: no coding skills selected!
SUCCESS! - brain on but doesn't have skills!
$ ./Itai install --skills bash
searching for skill 'bash'...
found skill 'bash'...
installing skill 'bash'...
0%[###############################]100%
SUCCESS! - installed skill bash!
$./Itai --skill=bash --load brain
loading brain...
turning it on...
brain: attempting to load Bash skills...
SUCCESS! - your bash scripts are getting better every day!
$ ./Itai install --skills python
searching for skill 'python'...
ERROR: skill 'python' not found, trying again...
WARNING: skill 'python' in repository 'Itai' isn't complete!
installing skill 'python'...
0%[###############################]100%
SUCCESS! - installed skill python!
$ ./Itai --skill=python --load-brain
loading brain...
turning it on...
brain: attempting to load Python skills...
brain: FATAL ERROR: python skills are incomplete and corrupted! stop copying and start learning Itai!!
$./Itai install --skills c
searching for skill 'c'...
installing skill 'c'...
0%[###############################]100%
SUCCESS! - installed skill c!
$ ./Itai --skill=c --load-brain
loading brain...
turning it on...
brain: attempting to load C skills...
SUCCESS! - you are getting better at C every day (you even understood pointers!)!
$ ./Itai install --skills go
searching for skill 'go'...
installing skill 'go'...
0%[###############################]100%
SUCCESS! - installed skill 'go'!
$ ./Itai --skill=go --load-brain
loading brain...
turning it on...
brain: attempting to load Go skills...
SUCCESS! - you are getting better at Go every day!
$ ./Itai install --skills rust
searching for skill 'rust'...
installing skill 'rust'...
0%[###############################]100%
SUCCESS! - installed skill 'rust'!
$ ./Itai --skill=rust --load-brain
loading brain...
turning it on...
brain: attempting to load Rust skills...
SUCCESS! - you are getting better at Rust every day!
$

Github user stats:
Itai's github stats Top Langs

aptpac's People

Contributors

cleanmachine1 avatar itai-nelken avatar jai-jap avatar saeziae avatar zonca avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

aptpac's Issues

WIP: Learning mode

continuation of #2

Progress so far (will be updated)

bash edition

  • you can toggle learning mode on and off in runtime, simply run aptpac --learning-mode=on to turn it on and aptpac --learning-mode=off to turn it off.

C-edition

There are 2 ways to enable/disable learning mode in the C edition:

  1. using the --config flag. the setting is saved in ~/.aptpac/aptpac.config
  • to enable learning mode: aptpac --config set learn.
  • to disable learning mode: aptpac --config unset learn
  1. You can use the environment variable APTPAC_LEARN to turn it on and off in runtime without having to recompile.
  • run aptpac like this: APTPAC_LEARN=1 aptpac <command>
  • add this: export APTPAC_LEARN=1 to your bashrc or equivalent and source it or restart your terminal to have learning mode on until you remove that line or change the value of the variable.

- you need to recompile to toggle it. to turn it on, add -DLEARN=1 to the cmake line. to turn it off (only needed if you are recompiling the same build without re-generating the build files from scratch), add -DLEARN=0.

Add bash completions

Add bash completions for aptpac so that commands an be auto completed using <tab><tab>. I am not sure but the bash completions file of apt may help a lot here.
Also I may try doing this if I get a chance.

AUR support?

The other project (which shall not be named :D ) supports AUR. Is this planned feature?

Have you had any luck with actions

I see you have been using actions, have you managed to compile it and get an output, also I see in the file, you are making it for ubuntu..

PKGBUILD?

A PKGBUILD would allow it to be put into the AUR giving it a potential bigger audience.

I would be willing to create one.

Or it maybe useful to make your own, so you can learn if you haven't, DollarSkip's PKGBUILD seems to fit exactly

Some more to add

I have recently switched to running Arch and have some suggestions.

I have been clearing dependencies which are unneeded and the command for that is

sudo pacman -R $(pacman Q-dtq)

and just for orphan dependencies you just run the same but run what is it inside of the brackets.

I know this feature isn't a thing with apt but it is still a useful command

PS: do you actually use Arch

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.