Skip to content

Instantly share code, notes, and snippets.

View JARVIS-AI's full-sized avatar
💀
Learning

Jarvis Mercer - (AMSL) JARVIS-AI

💀
Learning
View GitHub Profile
@JARVIS-AI
JARVIS-AI / README.md
Last active November 8, 2019 16:56
Install Plenv - Perl version manager and modules for better world with perl [LOVE PERL]

Love Perl

In this gist you will learn how to make your perl a better place to programme pler apps Obviously you will need some modules

Install Perl - Plenv - CPANM - Perl Modules

Install PLENV

Go to It's repo

@JARVIS-AI
JARVIS-AI / gcc-g++-version-manager.sh
Created November 8, 2019 15:53
Multiple GCC / G++ Version on Linux
sudo apt install gcc gcc-4.8 gcc-5 gcc-6 gcc-7 gcc-8 gcc-9
sudo apt install g++ g++-4.8 g++-5 g++-6 g++-7 g++-8 g++-9
sudo apt install build-essential
sudo apt install manpages-dev
sudo apt install software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 48 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8 --slave /usr/bin/gcov gcov /usr/bin/gcov-4.8 --slave /usr/bin/gcc-ar gcc-ar /usr/bin/gcc-ar-4.8 --slave /usr/bin/gcc-nm gcc-nm /usr/bin/gcc-nm-4.8
@JARVIS-AI
JARVIS-AI / configure_muliple_gcc.sh
Created November 7, 2019 13:10 — forked from SunnyRaj/configure_muliple_gcc.sh
Configure multiple GCC versions on ubuntu
#!/usr/bin/env bash
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt update
sudo update-alternatives --remove-all gcc
sudo update-alternatives --remove-all g++
sudo apt-get install -y gcc-4.8 g++-4.8 gcc-4.9 g++-4.9 gcc-5 g++-5 gcc-6 g++-6 gcc-7 g++-7
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10
@JARVIS-AI
JARVIS-AI / elementaryos.md
Created November 4, 2019 20:41 — forked from suberb/elementaryos.md
elementaryOS | Things To Do After Installing Elementary OS Loki [Best OS For Switching From Windows & Mac]

FIRST THING FIRST


  • Update OS
sudo apt-get update && sudo apt-get upgrade

@JARVIS-AI
JARVIS-AI / .bash_profile
Created November 4, 2019 20:33 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@JARVIS-AI
JARVIS-AI / sass media queries
Created July 22, 2019 13:19 — forked from pertrai1/sass media queries
Sass Media Queries
// Media Queries in Sass 3.2
//
// These mixins make media queries a breeze with Sass.
// The media queries from mobile up until desktop all
// trigger at different points along the way
//
// And important point to remember is that and width
// over the portrait width is considered to be part of the
// landscape width. This allows us to capture widths of devices
// that might not fit the dimensions exactly. This means the break
@JARVIS-AI
JARVIS-AI / media-query.css
Created July 22, 2019 13:19 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@JARVIS-AI
JARVIS-AI / win10colors.cmd
Created July 10, 2019 12:07 — forked from mlocati/win10colors.cmd
ANSI Colors in standard Windows 10 shell
@echo off
cls
echo  STYLES 
echo ^<ESC^>[0m Reset
echo ^<ESC^>[1m Bold
echo ^<ESC^>[4m Underline
echo ^<ESC^>[7m Inverse
echo.
echo  NORMAL FOREGROUND COLORS 
echo ^<ESC^>[30m Black (black)

Git repo date (Rewrite history)

These codes tested in macOS and Linux both In windows you need regkey | cmd /c /v | or set command to replace export in UNIX terminal

Another things that important are the ENVs : GIT_COMMITTER_DATE and GIT_AUTHOR_DATE that need to be set before you commit your changes

If you want only change date with not any change at all add --no-edit to your command

These codes for Linux and macOS

@JARVIS-AI
JARVIS-AI / srt_to_txt.py
Created May 13, 2019 08:12 — forked from ndunn219/srt_to_txt.py
Simple Python Script for Extracting Text from an SRT File
"""
Creates readable text file from SRT file.
"""
import re, sys
def is_time_stamp(l):
if l[:2].isnumeric() and l[2] == ':':
return True
return False