Skip to content

Instantly share code, notes, and snippets.

View Shashank-In's full-sized avatar
🏠
Working from home

Shashank Shashank-In

🏠
Working from home
View GitHub Profile
@Shashank-In
Shashank-In / check_docker_container.sh
Created January 7, 2017 10:45 — forked from ekristen/check_docker_container.sh
Bash Script for Nagios to Check Status of Docker Container
#!/bin/bash
# Author: Erik Kristensen
# Email: erik@erikkristensen.com
# License: MIT
# Nagios Usage: check_nrpe!check_docker_container!_container_id_
# Usage: ./check_docker_container.sh _container_id_
#
# The script checks if a container is running.
# OK - running
qwertyuiopasdfghjklzxcvbnmbdbjsjnsbsqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklqwertyuiopasdfghjklzxcvbnmzqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasd
HsjsjsbjwbsbsjsjdjshdhdbdbsjsjsbxjebdjsbsbsbsbshwhsbsbsjbsbshxbxbbwjsbhesbjsbsjebdjsbsjsbjebsjebsjsbdjsbsbejwjwioqyeiwhwvdhebsbxbhsbsbsbshsbsbsbbsbsbsbsbsbsbsbsbHsjsjsbjwbsbsjsjdjshdhdbdbsjsjsbxjebdjsbsbsbsbshwhsbsbsjbsbshxbxbbwjsbhesbjsbsjebdjsbsjsbjebsjebsjsbdjsbsbejwjwioqyeiwhwvdhebsbxbhsbsbsbshsbsbsbbsbsbsbsbsbsbsbsHsjsjsbjwbsbsjsjdjshdhdbdbsjsjsbxjebdjsbsbsbsbshwhsbsbsjbsbshxbxbbwjsbhesbjsbsjebdjsbsjsbjebsjebsjsbdjsbsbejwjwioqyeiwhwvdhebsbxbhsbsbsbshsbsbsbbsbsbsbsbsbsbsbsbHsjsjsbjwbsbsjsjdjshdhdbdbsjsjsbxjebdjsbsbsbsbshwhsbsbsjbsbshxbxbbwjsbhesbjsbsjebdjsbsjsbjebsjebsjsbdjsbsbejwjwioqyeiwhwvdhebsbxbhsbsbsbshsbsbsbbsbsbsbsbsbsbsbHsjsjsbjwbsbsjsjdjshdhdbdbsjsjsbxjebdjsbsbsbsbshwhsbsbsjbsbshxbxbbwjsbhesbjsbsjebdjsbsjsbjebsjebsjsbdjsbsbejwjwioqyeiwhwvdhebsbxbhsbsbsbshsbsbsbbsbsbsbsbsbsbsHsjsjsbjwbsbsjsjdjshdhdbdbsjsjsbxjebdjsbsbsbsbshwhsbsbsjbsbshxbxbbwjsbhesbjsbsjebdjsbsjsbjebsjebsjsbdjsbsbejwjwioqyeiwhwvdhebsbxbhsbsbsbshsbsbsbbsbsbsbsbsbsHsjsjsbjwbsbsjsjdjshdhdbdbsjsjsbxjebdjsbsbsbsbshwhsbsbsjbsbshxbxbbwjs

Keybase proof

I hereby claim:

  • I am shashank-in on github.
  • I am shashankin (https://keybase.io/shashankin) on keybase.
  • I have a public key ASAXrVaHa3oBbMNaDInM9Mwi6QhIDwppbSZAHd9qR3S5LAo

To claim this, I am signing this object:

Linking my account shashank-in on GitHub with my address 0xa5681b3f84db9b93a082f853fdba6e04a9077b45 on EVM in staging.mycryptoprofile.io, and the challenge code is: f72f7835e9c5f762035bc3edb2c6c5ad. #LitentryVerifyMyAddress

pragma solidity ^0.4.24;
contract Proxy {
address owner;
constructor() public {
owner = msg.sender;
}
function forward(address callee, bytes _data) public {
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
contract Delegate {
address public owner;
constructor(address _owner) public {
owner = _owner;
}
function transferFrom(address _from, address _to, uint256 _Allvalue) public {
var _allowances = allowances[_from][msg.sender];
if (_allowances < _value) {
revert();
}
allowances[_from][msg.sender] = _allowances - _value;
transferAllTokens(_from, _to, _value);
}
function transferTokens(address _from, address _to, uint256 _value) internal {
if (balanceOfOld[_from] < _value) {
revert();
}
if (_to == address(this)) {
sell(_value);
...
function sell(uint256 amount) internal {
var numEthers = getEtherForTokens(amount);
// remove tokens
totalSupply -= amount;
balanceOfOld[msg.sender] -= amount;
...