Skip to content

Instantly share code, notes, and snippets.

View mrcodekiddie's full-sized avatar
⚒️
Building

Muthu Kumar mrcodekiddie

⚒️
Building
View GitHub Profile
@mrcodekiddie
mrcodekiddie / keybase.md
Created February 5, 2019 04:35
My keybase

Keybase proof

I hereby claim:

  • I am vmuthu1810 on github.
  • I am vmuthu1810 (https://keybase.io/vmuthu1810) on keybase.
  • I have a public key ASCLkkbjl4krzNQdh_yo6oi8Xuq8mXSRkBp97ZF4n-nJLAo

To claim this, I am signing this object:

@mrcodekiddie
mrcodekiddie / PhonecallReceiver.java
Created March 30, 2019 11:07 — forked from ftvs/PhonecallReceiver.java
Detecting an incoming call coming to an Android device. Remember to set the appropriate permissions in AndroidManifest.xml as suggested in the Stackoverflow link. Usage example in comments. Source: http://stackoverflow.com/a/15564021/264619 Explanation: http://gabesechansoftware.com/is-the-phone-ringing/#more-8
package com.gabesechan.android.reusable.receivers;
import java.util.Date;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.telephony.TelephonyManager;
public abstract class PhonecallReceiver extends BroadcastReceiver {

Keybase proof

I hereby claim:

  • I am mrcodekiddie on github.
  • I am mrcodekiddie (https://keybase.io/mrcodekiddie) on keybase.
  • I have a public key ASBeyeIW-I4gQ4H_Xdjv3prbpAPdgaj2H1fy3xVLdPwsPwo

To claim this, I am signing this object:

@mrcodekiddie
mrcodekiddie / swap-creator.sh
Last active July 25, 2020 02:55
Bash script for creating SWAP memory on Linux Systems
#!/bin/bash
#This script is for creating swap memory in linux systems
#tested on BASH shell only
#script to calculate RAM size
#Thanks to Andre [stackoverflow.com/users/2215136/andr%c3%a9] for the answer on stackoverflow.com/a/53186875/12058066
totalmem=0;
@mrcodekiddie
mrcodekiddie / cheems
Created December 21, 2020 10:56
ascii
░░░░░░░░░▄░░░░░░░░░░░░░░▄
░░░░░░░░▌▒█░░░░░░░░░░░▄▀▒▌
░░░░░░░░▌▒▒█░░░░░░░░▄▀▒▒▒▐
░░░░░░░▐▄▀▒▒▀▀▀▀▄▄▄▀▒▒▒▒▒▐
░░░░░▄▄▀▒░▒▒▒▒▒▒▒▒▒█▒▒▄█▒▐
░░░▄▀▒▒▒░░░▒▒▒░░░▒▒▒▀██▀▒▌
░░▐▒▒▒▄▄▒▒▒▒░░░▒▒▒▒▒▒▒▀▄▒▒▌
░░▌░░▌█▀▒▒▒▒▒▄▀█▄▒▒▒▒▒▒▒█▒▐
░▐░░░▒▒▒▒▒▒▒▒▌██▀▒▒░░░▒▒▒▀▄▌
░▌░▒▄██▄▒▒▒▒▒▒▒▒▒░░░░░░▒▒▒▒▌
@mrcodekiddie
mrcodekiddie / rdp-installer.sh
Created February 26, 2021 04:45
Script for installing RDP on ubuntu 18.04
#!/bin/bash
sudo apt update
sudo apt install xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils xrdp
sudo adduser xrdp ssl-cert
sudo systemctl restart xrdp
sudo ufw allow 3389
@mrcodekiddie
mrcodekiddie / generate-ssh-key.sh
Created March 13, 2021 13:21 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa
@mrcodekiddie
mrcodekiddie / php.ini
Created December 3, 2022 03:28
my php.ini backup
[PHP]
engine = On
short_open_tag = Off
precision = 14
output_buffering = 4096
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func =
serialize_precision = -1
disable_functions =