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
#This script creates a java projects and create the make file for the Atom plugin "Project Runner" | |
#to install "ProjectRunner: apm install project-runnaer" | |
#and it will open atom in the project directory | |
#so that when you press CTRL+R it will compile, and CTRL+U it will compile and run the project, | |
#.java file must be put into the src directory, .class will be put in bin directory. | |
#Usage: javaProject path/to/project NameOfTheClass | |
#!/bin/bash |
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
# save it as /etc/profile.d/ssh-telegram.sh | |
# use jq to parse JSON from ipinfo.io | |
# get jq from here http://stedolan.github.io/jq/ | |
USERID="<target_user_id>" | |
KEY="<bot_private_key>" | |
TIMEOUT="10" | |
URL="https://api.telegram.org/bot$KEY/sendMessage" | |
DATE_EXEC="$(date "+%d %b %Y %H:%M")" | |
TMPFILE='/tmp/ipinfo-$DATE_EXEC.txt' | |
if [ -n "$SSH_CLIENT" ]; then |
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/sh | |
for d in */ ; do | |
HOME=$(pwd)/$d; | |
echo $d; | |
# Remove the comment by your need | |
# megasync # first run (configure client by client at once) | |
# megasync 2> /dev/null & # load all clients at non blocking way | |
done |