Skip to content

Instantly share code, notes, and snippets.

View xditx32's full-sized avatar

Aditya Nur Rohman xditx32

View GitHub Profile
@xditx32
xditx32 / function.php
Last active September 19, 2023 02:37
Hide WordPress menus in the admin area
View function.php
/* Remove menus from the WordPress dashboard*/
function wpdocs_remove_menus() {
remove_menu_page('index.php'); //Dashboard
remove_menu_page('edit.php'); //Posts
remove_menu_page('upload.php'); //Media
remove_menu_page('edit.php?post_type=page'); //Pages
remove_menu_page('edit-comments.php'); //Comments
remove_menu_page('themes.php'); //Appearance
remove_menu_page('plugins.php'); //Plugins
remove_menu_page('users.php'); //Users
View Add DS_Store into .gitignore for the sub directory.md

If .DS_Store was never added to your git repository, simply add it to your .gitignore file.

If you don't have one, create a file called

.gitignore

In your the root directory of your app and simply write

@xditx32
xditx32 / zsh.md
Created April 8, 2021 07:36 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu
View zsh.md
@xditx32
xditx32 / gist:6d022ae5d8b83f8f8d67b62ae8606f08
Created December 24, 2019 17:16 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup
View gist:6d022ae5d8b83f8f8d67b62ae8606f08

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@xditx32
xditx32 / keybase.md
Created December 7, 2019 03:12
Keybase proof
View keybase.md

Keybase proof

I hereby claim:

  • I am xditx32 on github.
  • I am xditx32 (https://keybase.io/xditx32) on keybase.
  • I have a public key whose fingerprint is B427 1880 B6C2 E4BD 13D8 F3C6 2BB4 B633 6718 804F

To claim this, I am signing this object: