Git Product home page Git Product logo

cypat-ubuntu-script's Introduction

Welcome to my Github profile, it's me, Matees!

Anurag's GitHub stats

Don't let this mislead you, I use Typescript not JS, I just have forked repos Top Langs

I am interested in Systems programming, mainly the langauge design

I cannot finish projects :)

cypat-ubuntu-script's People

Contributors

maytees avatar

Stargazers

 avatar  avatar

Watchers

 avatar

cypat-ubuntu-script's Issues

Poor use of global variables in setup_questions function (main.py)

Instead of modifying global variables, which is poor practice and can cause issues (As seen on lines 112 & 113 in main.py), use a return statement to modify a variable in the global scope when the function is called. I.e. is_ssh = my_function() and then returning is_ssh within the function, as

def my_function():
    is_ssh = True
    return is_ssh

If you need to access this variable, pass in into the function rather than using global.

Skipping Firefox config raises error

Entering 'n' when prompted for Firefox configuration in main.py will not skip for both prompts. Fix by changing the empty return statement with a pass statement and use elif and else instead of multiple if statements. See attached file for full fix. There are also syntax errors with the prompts and other functions, which are fixed in the attached file. Attached File: main.txt

Full list of issues:

  • Answering 'n' with prompts does not skip.
  • Answering 'y' is not supported
  • Improper use of return. (Return is used to pass information back to where the function is called)
  • Incorrect method of skipping actions if variable userjs_path is not set.
  • Possible Issue: File user.js must be placed in the Firefox user's profile directory, which is not specified in any messages.
  • Wrong variable name for file closure on line 790, should
    by userjs.close, as that is the variable that stores the file.

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.