Giter Club home page Giter Club logo

dafuq's Introduction

Dafuq

This project adds the command "dafuq" (and the aliases "fuck" and "wtf") to your environment. Whenever a command in an interactive bash fails, the user can simply run "dafuq". This will both release their frustration, and trigger this package to try to fix the failed command!

ubuntu@hostname:~$ apt-gt install java
Command 'apt-gt' not found, did you mean:
  command 'apt-get' from deb apt (2.7.3)
Try: sudo apt install <deb name>
ubuntu@hostname:~$ dafuq
Retrying command to see what the fuck is going on ...
Analyzing and fixing the fuckery ...
apt-get install java
ubuntu@hostname:~$ apt-get install java
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
ubuntu@hostname:~$ dafuq
Retrying command to see what the fuck is going on ...
Analyzing and fixing the fuckery ...
sudo apt-get install java
ubuntu@hostname:~$ sudo apt-get install java
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package java
ubuntu@hostname:~$ dafuq
Retrying command to see what the fuck is going on ...
Analyzing and fixing the fuckery ...
sudo apt-get install default-jdk
ubuntu@hostname:~$ sudo apt-get install default-jdk
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  adwaita-icon-theme at-spi2-common at-spi2-core ca-certificates-java dconf-gsettings-backend dconf-service default-jdk-headless default-jre default-jre-headless fonts-dejavu-extra
  gsettings-desktop-schemas gtk-update-icon-cache hicolor-icon-theme humanity-icon-theme java-common libatk-bridge2.0-0 libatk-wrapper-java libatk-wrapper-java-jni libatk1.0-0 libatspi2.0-0
  libavahi-client3 libavahi-common-data libavahi-common3 libcups2 libdconf1 libfontenc1 libgail-common libgail18 libgif7 libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libice-dev libpcsclite1
  libpthread-stubs0-dev libsm-dev libx11-dev libxau-dev libxcb1-dev libxcomposite1 libxdamage1 libxdmcp-dev libxft2 libxinerama1 libxkbfile1 libxt-dev libxtst6 libxxf86dga1 openjdk-17-jdk
  openjdk-17-jdk-headless openjdk-17-jre openjdk-17-jre-headless session-migration ubuntu-mono x11-utils x11proto-dev xorg-sgml-doctools xtrans-dev
Suggested packages:
  cups-common gvfs libice-doc pcscd libsm-doc libx11-doc libxcb-doc libxt-doc openjdk-17-demo openjdk-17-source visualvm libnss-mdns fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei
  | fonts-wqy-zenhei fonts-indic mesa-utils
The following NEW packages will be installed:
  adwaita-icon-theme at-spi2-common at-spi2-core ca-certificates-java dconf-gsettings-backend dconf-service default-jdk default-jdk-headless default-jre default-jre-headless fonts-dejavu-extra
  gsettings-desktop-schemas gtk-update-icon-cache hicolor-icon-theme humanity-icon-theme java-common libatk-bridge2.0-0 libatk-wrapper-java libatk-wrapper-java-jni libatk1.0-0 libatspi2.0-0
  libavahi-client3 libavahi-common-data libavahi-common3 libcups2 libdconf1 libfontenc1 libgail-common libgail18 libgif7 libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libice-dev libpcsclite1
  libpthread-stubs0-dev libsm-dev libx11-dev libxau-dev libxcb1-dev libxcomposite1 libxdamage1 libxdmcp-dev libxft2 libxinerama1 libxkbfile1 libxt-dev libxtst6 libxxf86dga1 openjdk-17-jdk
  openjdk-17-jdk-headless openjdk-17-jre openjdk-17-jre-headless session-migration ubuntu-mono x11-utils x11proto-dev xorg-sgml-doctools xtrans-dev
0 upgraded, 59 newly installed, 0 to remove and 0 not upgraded.
Need to get 135 MB of archives.
After this operation, 333 MB of additional disk space will be used.
Do you want to continue? [Y/n]

Install via wget -O - https://raw.githubusercontent.com/plengauer/dafuq/main/INSTALL.sh | sh

dafuq's People

Contributors

plengauer avatar renovate[bot] avatar

Stargazers

Justin avatar

Watchers

 avatar

dafuq's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/publish.yml
  • actions/checkout v4
  • actions/create-release v1
  • actions/upload-release-asset v1
.github/workflows/renovate.yml
  • renovatebot/github-action v40.1.10

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/publish.yml
  • actions/checkout v4
  • actions/create-release v1
  • actions/upload-release-asset v1
.github/workflows/renovate.yml
  • renovatebot/github-action v40.1.11

  • Check this box to trigger a request for Renovate to run again on this repository

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Location: .github/renovate.json
Error type: Invalid JSON (parsing failed)
Message: Syntax error: expecting String near 0,
{

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/publish.yml
  • actions/checkout v4
  • actions/create-release v1
  • actions/upload-release-asset v1
.github/workflows/renovate.yml
  • renovatebot/github-action v40.1.10

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Location: .github/renovate.json
Error type: Invalid JSON (parsing failed)
Message: Syntax error: expecting String near true,,
"

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.