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
Add this to your ~/.bashrc: | |
if [ ! -S ~/.ssh/ssh_auth_sock ]; then | |
eval `ssh-agent` | |
ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock | |
fi | |
export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock | |
ssh-add -l | grep "The agent has no identities" && ssh-add | |
Source: http://unix.stackexchange.com/a/217223/109606 |
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
#/usr/bin/python3 | |
print("Press 'Ctrl+C' to exit this tool.") | |
try: | |
while True: | |
print("\nPlease input price in BDT: ") | |
a = float(input()) | |
b=a+((a*5)/100) | |
c=b+((b*15)/100) | |
d=c+((a*1)/100) |
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
# ------------------------------------------------------------------------------ | |
# tlp - Parameters for power save | |
# See full explanation: http://linrunner.de/en/tlp/docs/tlp-configuration.html | |
# Hint: some features are disabled by default, remove the leading # to enable | |
# them. | |
# Set to 0 to disable, 1 to enable TLP. | |
TLP_ENABLE=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
if [ ! -S ~/.ssh/ssh_auth_sock ]; then | |
eval `ssh-agent` | |
ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock | |
fi | |
export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock | |
ssh-add -l | grep "The agent has no identities" && ssh-add |
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
""" | |
Documentation | |
1. At first, save the entire script as servers.py in /home/your-username/ directory. | |
Also you can simply use the below command: | |
curl "https://gist.githubusercontent.com/maateen/1582a28d62437caaf5cf9098303bab79/raw/e216b3b1ff8f1323fb79de4ae5a4c5b24a8b2c4d/servers.py" > ~/servers.py | |
2. Change info in servers = {} portion according to your need. | |
Always use Server Identity at the left side of : sign and SSH Login Command at the right side. |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Multiple Modals With Semantic UI</title> | |
<link rel="stylesheet" href="path_to_semantic/dist/semantic.css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> | |
<script src="path_to_semantic/dist/semantic.js"></script> | |
</head> | |
<body> |
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
var HelloModal = React.createClass({ | |
getInitialState: function() { | |
return { | |
visible: false | |
}; | |
}, | |
componentDidMount: function() { | |
var self = this; | |
$(window).on('modal.visible', function(ev){ | |
self.setState({visible: true}); |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
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
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" |
OlderNewer