Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Devendra Gaud Devendra0110

🏠
Working from home
View GitHub Profile
View firefox.desktop
[Desktop Entry]
Name=Firefox
GenericName=Firefox
Exec=/home/myapps/firefox/firefox-69.0.1/firefox/firefox
Terminal=false
Icon=/home/myapps/firefox/firefox-69.0.1/firefox/browser/chrome/icons/default/default128.png
Type=Application
Categories=Application;Network;X-Developer;
Comment=Firefox Developer Edition Web Browser.
@Devendra0110
Devendra0110 / java-path-variable-setup.md
Last active Jun 11, 2021
Path set up for java in fish
View java-path-variable-setup.md

Before going ahead make sure you have installed java if not follow How To Install Java Development Kit 11 on Debian 10

In the above following article stop at Set Environment Variables

  1. copy the below code at the end of config.fish
## java 11 jdk

set --export JAVA_HOME (dirname (dirname (readlink -f (which java))))
set -gx PATH $JAVA_HOME $PATH
  1. Save the changes and exit your text editor.
@Devendra0110
Devendra0110 / android-path-variable-setup.md
Last active Jun 11, 2021
Add android global variable to fish
View android-path-variable-setup.md

Before implementing this settings make sure you have installed android studio

Just copy the below lines at the end of config.fish

## Android
set --export ANDROID $HOME/Android/Sdk
set --export ANDROID_HOME $ANDROID/
set -gx PATH $ANDROID/bin $PATH
set -gx PATH $ANDROID/sdk/platform-tools $PATH
@Devendra0110
Devendra0110 / runkit.ts
Created Jun 12, 2020
test moment object in local and utc format
View runkit.ts
var moment = require("moment")
// format the current date
var now = moment();
console.log(now.format("YYYY-MM-DDTHH:mm:ss.SSS[Z]"))
console.log(moment(now.format("YYYY-MM-DDTHH:mm:ss.SSS[Z]")).diff("2020-06-27T07:24:41.690Z"))
console.log(now.diff("2020-06-27T07:24:41.690Z"))
// moment API
moment
View 01 Character Input.py
import datetime
now = datetime.datetime.now()
print("Enter your name and age")
name = input('Name:')
age = int(input('Age :'))
remainingYears = 100 - age
print("Enter the no. of times you want to see the output")
messageCount = int(input("-->"))
message = "In "+str(remainingYears + now.year)+" you'll be 100 year old"
print(messageCount * (message+"\n"))
@Devendra0110
Devendra0110 / free_email_provider_domains.txt
Created Aug 31, 2019 — forked from tbrianjones/free_email_provider_domains.txt
A list of free email provider domains. Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
View free_email_provider_domains.txt
1033edge.com
11mail.com
123.com
123box.net
123india.com
123mail.cl
123qwe.co.uk
126.com
150ml.com
15meg4free.com