Skip to content

Instantly share code, notes, and snippets.

View doct0rX's full-sized avatar
🎯
Calculated.

Mustafa doct0rX

🎯
Calculated.
View GitHub Profile
@doct0rX
doct0rX / profile.ps1
Created January 14, 2022 12:18 — forked from JustinGrote/profile.ps1
VSCode Default Dark+ Terminal Theme (VSCode Settings, Windows Terminal profiles.json, PSReadline profile.ps1)
#PSReadline theme to match VSCode editor colors
if ($env:TERM_PROGRAM -eq 'VSCode' -or $env:WT_SESSION) {
if ($psedition -eq 'core') {
$ansiesc = "`e"
} else {
$ansiesc = [char]0x1b
}
Set-PSReadlineOption -Colors @{
Command = "$($ansiesc)[93m"
@doct0rX
doct0rX / .zshrc
Last active April 23, 2021 15:00
My oh_my_zsh file config in .zshrc [on my Mac Saturday, April 17, 2021]
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="path/to/new/ohmyzsh/folder"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@doct0rX
doct0rX / .zshrc
Created August 14, 2019 16:01
my .zshrc (oh-my-zsh) configuration file on Arch Linux
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=99999
SAVEHIST=99999
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/mustafaj4m/.zshrc'
autoload -Uz compinit
@doct0rX
doct0rX / Indent.java
Created March 25, 2019 16:22
script to make a new Indentation of any code file;
import java.util.List;
import java.util.ArrayList;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.PrintWriter;
import java.io.IOException;
class Indent {
static List<String> records = new ArrayList<String>();
https://gitlab.com/gun1x/razer_keyboard_config/tree/master
@doct0rX
doct0rX / DontDeleteThoseFiles.java
Last active March 19, 2019 15:55
Not to delete specified files -- how it work -> simply run it with Java and it'll guide you
/**
* Author: Mustafa Jamal
*
* This program for deleting not selected files.
*/
import java.util.List;
import java.util.ArrayList;
import java.io.BufferedReader;
import java.io.FileReader;
@doct0rX
doct0rX / hosts
Last active April 9, 2019 21:32
For Removing Spotify Ads. -- path on Mac "/private/etc/hosts" -- path on Windows "C:\Windows\System32\Drivers\etc\hosts"
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
@doct0rX
doct0rX / bashrc.bash
Created August 24, 2018 14:52
This gist hosting some of my bashrc on my Kali machine.
# alis for opening Google Chrome from linux root user --kali
alias chr="gksu -u chromeuser google-chrome"
# alias for opening files from the CLI
alias open="nautilus"
# some more ls aliases
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
@doct0rX
doct0rX / jsSample.js
Created August 10, 2018 21:35
Sample
<p style="line-height: 18px; font-size: 18px; font-family: times;">
Click "<i>Load samples</i>" to view and edit more JS samples.<br>
<br>
Labyrinth generated with JavaScript:<br><br>
<script>
for (var line=1; line<60; line++) {
for(var i=1;i<50;i++) {
var s = (Math.floor((Math.random()*5)%3)) ? "╱" : "╲";
document.write(s);
}
@doct0rX
doct0rX / neofetch
Created July 8, 2018 01:12
Need a handy way to display OS, software and hardware information for your machine? Neofetch can help. https://github.com/dylanaraps/neofetch
#!/usr/bin/env bash
# vim: noai:ts=4:sw=4:expandtab
# shellcheck source=/dev/null
# shellcheck disable=2009
#
# Neofetch: A command-line system information tool written in bash 3.2+.
# https://github.com/dylanaraps/neofetch
#
# The MIT License (MIT)
#