Skip to content

Instantly share code, notes, and snippets.

💀
Learning

Jarvis Mercer - (AMSL) JARVIS-AI

💀
Learning
  • Studying AI in University
View GitHub Profile
View a_million_commits.sh
# a million commits
for Y in {1999..2018}
do
mkdir $Y
cd $Y
for M in {01..12}
do
mkdir $M
cd $M
for D in {01..31}
@JARVIS-AI
JARVIS-AI / gitcom.md
Created Jul 5, 2020 — forked from jedmao/gitcom.md
Common git commands in a day-to-day workflow
View gitcom.md

Git Cheat Sheet

Initial Setup

Initialize a repo

Create an empty git repo or reinitialize an existing one

git init
@JARVIS-AI
JARVIS-AI / Firefox_Scrollbars-W10style.md
Created Mar 9, 2020 — forked from mrkwatz/Firefox_Scrollbars-W10style.md
Firefox 57 Windows 10 UWP Style Overlay Scrollbars
View Firefox_Scrollbars-W10style.md

As far as I am aware the time has come and as of Firefox 72 XUL has been stripped from firefox and so the method used to inject this scrollbar theme is no longer supported -- reference the following for future scroll themes:

Mozilla is currently working to phase out the APIs used to make this theme work. I will try to maintain each version until that time but eventually there will be no workaround. When that time comes there is a new, but more limited api for applying simple themes to scrollbars. In nightly I am currently using the following userContent.css

:root{
	scrollbar-width: thin;
	scrollbar-color: rgb(82, 82, 82) rgb(31, 31, 31);
}
@JARVIS-AI
JARVIS-AI / SSLXampp.md
Created Feb 28, 2020 — forked from nguyenanhtu/SSLXampp.md
Guide to configure SSL in XAMPP for Windows
View SSLXampp.md

How to test 'https' in XAMPP for localhost ? I will guide you

Menu

  • Create certificate
  • Config Apache to access https instead of http
  • Config mod rewrite to generate SSL url
  • Config Virtual host to test site

Step 1 : Create certificate

  • Go to your XAMPP installation directory (in my case it’s E:\xampp), figure out apache folder. In this, find & run batch file
@JARVIS-AI
JARVIS-AI / dino.md
Last active Feb 20, 2020
Chrome Dino game cheats
View dino.md

Hack Google Chrome and Make your Dinosaur Immortal

The game can be hacked pretty easily, making your dinosaur not even flinch at the sight of a cactus.

To hack the game, first go the the error message page where your dinosaur is hanging out.

Go ahead and press the space bar to start the game. Once the game starts, right-click and select Inspect” to open up Chrome DevTools, then select the Console tab.

@JARVIS-AI
JARVIS-AI / README.md
Created Feb 17, 2020 — forked from straker/README.md
Basic Snake HTML Game
View README.md

Basic Snake HTML Game

Snake is a fun game to make as it doesn't require a lot of code (less than 100 lines with all comments removed). This is a basic implementation of the snake game, but it's missing a few things intentionally and they're left as further exploration for the reader.

Further Exploration

@JARVIS-AI
JARVIS-AI / wp-config.php
Created Jan 15, 2020
Set WordPress site URL in the config file instead of the database
View wp-config.php
<?php
// WordPress stores the site URL in the database by default (which I have never
// understood), and it's a pain to have to type out the UPDATE SQL or search in
// phpMyAdmin to change it. This is a simple way to put the URL into
// wp-config.php instead.
// Note that you will still need to update any URLs that appear in the content,
// especially when you copy a database from a development site to production:
// https://gist.github.com/davejamesmiller/a8733a3fbb17e0ff0fb5
@JARVIS-AI
JARVIS-AI / instructions.rst
Created Nov 13, 2019 — forked from Nachtalb/telegram-desktop-multiple-accounts.rst
Add multiple accounts in Telegram Desktop [Linux | MacOSX | Windows]
View instructions.rst

How to add multiple accounts to Telegram Desktop

Table of Contents

Introduction

ATM of writing this, there is no way inside the Telegram Client to switch accounts (event though this feature exists in the offical mobile clients and there is a long running issue here: telegramdesktop/tdesktop#4261).

@JARVIS-AI
JARVIS-AI / .zshrc
Last active Nov 10, 2019 — forked from cristovao-trevisan/.zshrc
zsh configuration using zplugin
View .zshrc
# SDKMAN
export SDKMAN_DIR="/home/cristovao/.sdkman"
[[ -s "/home/cristovao/.sdkman/bin/sdkman-init.sh" ]] && source "/home/cristovao/.sdkman/bin/sdkman-init.sh"
# ZPLUGIN
## installer
source '/home/cristovao/.zplugin/bin/zplugin.zsh'
autoload -Uz _zplugin
View 1-elementary-os-apps.md

elementaryOS Apps and Configs

This guide has been updated for elementaryOS v5.0+.

Enbale PPA support

sudo apt-get update
sudo apt-get -y install software-properties-common

Install original plank dock

You can’t perform that action at this time.