Snippets tagged “command-line”
19 snippets use this tag.
- Composer require local packagePHP
To require a local package in Composer, you can use the "path" option in the "require" section of your project's composer.json file.
- Encrypt and Decrypt text with RSA in PHPPHP
Sure!
- Execute a string of PHP code on the command linePHP
To execute a string of PHP code on the command line, you can use the "php" command followed by the "-r" option and the string of code in quotes.
- How can I edit a .jar file?Java
A .jar file is a Java Archive file that contains compiled Java code and resources (such as images, sounds, etc.) that can be used by Java applications.
- How do I "decompile" Java class files? [closed]Java
There are several tools that you can use to "decompile" Java class files and view the source code. Some popular ones include:
- How do I check which version of Python is running my script?Python
There are a few ways to check which version of Python is running your script.
- How to check where Apache is looking for a php.ini file?PHP
You can check where Apache is looking for the php.ini file by running the command php --ini in the command line.
- How to decompile a whole Jar file?Java
To decompile a JAR file, you can use a Java decompiler such as JD-GUI.
- How to execute a java .class from the command lineJava
To execute a Java class from the command line, you will need to use the java command and specify the name of the class that you want to run.
- How to import a .cer certificate into a java keystore?Java
To import a .cer certificate into a Java keystore, you can use the keytool utility that comes with the Java Development Kit (JDK). The keytool utility is a command-line tool that allows you to manage certificates and keystores.
- How to Use Patch Files in GitGit
This tutorial will help you solve the problem of generating a git patch for a specific commit. Find the solution by running the command lines step by step.
- Including all the jars in a directory within the Java classpathJava
To include all the jars in a directory within the Java classpath, you can use the -cp or -classpath command-line option and specify the directory containing the jars.
- Setting active profile and config location from command line in spring bootJava
To set the active profile and the configuration location from the command line in Spring Boot, you can use the spring.profiles.active and spring.config.name properties.
- Should I put #! (shebang) in Python scripts, and what form should it take?Python
You should include a shebang (#!) in Python scripts if you want the script to be directly executable from the command line.
- Tell Composer to use Different PHP VersionPHP
To use a specific version of PHP with Composer, you can specify the version you want to use in the config section of your composer.json file.
- Verify ImageMagick installationPHP
To verify that ImageMagick is installed, you can use the command-line tool "convert".
- Viewing contents of a .jar fileJava
To view the contents of a .jar file, you can use the jar command-line utility that is included with the Java Development Kit (JDK).
- where is php.ini on ubuntu?PHP
On Ubuntu, the location of the php.ini file depends on the version of PHP you have installed.
- Why do people write #!/usr/bin/env python on the first line of a Python script?Python
The #!