This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use: for testing against email regex | |
ref: http://codefool.tumblr.com/post/15288874550/list-of-valid-and-invalid-email-addresses | |
List of Valid Email Addresses | |
email@example.com | |
firstname.lastname@example.com | |
email@subdomain.example.com | |
firstname+lastname@example.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cpp": { | |
"prefix": ["cpp"], | |
"body": [ | |
"/**", | |
" *@author: YashKumarVerma", | |
" *@desc: $1", | |
" *@time: $CURRENT_DAY_NAME $CURRENT_DATE-$CURRENT_MONTH_NAME-$CURRENT_YEAR $CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND", | |
" **/\n", | |
"#include<iostream>\n", |
Use the following commands in a bash script to quickly compile and run openjfx (javafx) applications. Just make sure to set your jdk path instead of mine.
echo "Compiling :"
javac --module-path /home/yash/scripts/packages/javafx-sdk-11.0.2/lib --add-modules javafx.controls,javafx.fxml $1.java
echo "Running..."
java --module-path /home/yash/scripts/packages/javafx-sdk-11.0.2/lib --add-modules=javafx.controls -cp . $1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name":"Afghanistan", | |
"dial_code":"+93", | |
"id":"AF" | |
}, | |
{ | |
"name":"Albania", | |
"dial_code":"+355", | |
"id":"AL" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9874 apt --fix-broken install | |
9875 sudo apt --fix-broken install | |
9876 sudo apt-get purge ddialog | |
9877 sudo apt-get purge dialog | |
9878 sudo apt-get purge anydesk | |
9879 sudo apt-get purge packettracer | |
9880 sudo apt-get purge anydesk | |
9881 sudo apt --fix-broken install | |
9882 sudo apt --fix-broken --fix-missing install | |
9883 sudo apt --fix-broken install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# add this command to cron by adding this line in the file open by `crontab -e` | |
# `* * * * * /Users/yash/scripts/cron/battery.sh` | |
PATH=/usr/bin:/bin # Set the PATH to include necessary directories | |
export PATH | |
# Full paths to commands | |
system_profiler_path=$(which system_profiler) |