Skip to content

Instantly share code, notes, and snippets.

View mcanvar's full-sized avatar
🛵
Scootering in the wonderland.

Mevlüt Canvar mcanvar

🛵
Scootering in the wonderland.
View GitHub Profile
@mcanvar
mcanvar / setup.sh
Created November 16, 2023 00:38 — forked from marulitua/setup.sh
Instal php5.6 with phpbrew on ubuntu 18.04
#!/bin/bash
# Instal php5.6 with phpbrew on ubuntu 18.04
# Install all dependencies
sudo apt update
sudo apt install wget php build-essential libxml2-dev libxslt1-dev libbz2-dev libcurl4-openssl-dev libmcrypt-dev libreadline-dev libssl-dev autoconf
wget https://github.com/phpbrew/phpbrew/raw/master/phpbrew
chmod +x phpbrew
mv phpbrew /usr/local/bin

Keybase proof

I hereby claim:

  • I am mcanvar on github.
  • I am cryptolion (https://keybase.io/cryptolion) on keybase.
  • I have a public key whose fingerprint is 8C20 5109 5DE9 7E23 B331 49EA F093 5101 6F6A 7892

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am mcanvar on github.
* I am mcanvar (https://keybase.io/mcanvar) on keybase.
* I have a public key whose fingerprint is 7AAB B6FD B292 C48E 748B 1E12 6087 01BD 4420 8363
To claim this, I am signing this object:
@mcanvar
mcanvar / .deps...npm...@chainlink...contracts...src...v0.6...interfaces...AggregatorV3Interface.sol
Created September 22, 2021 22:22
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.6.6+commit.6c089d02.js&optimize=false&runs=200&gist=
@mcanvar
mcanvar / README.txt
Created September 22, 2021 18:49
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.6.12+commit.27d51765.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
@mcanvar
mcanvar / README.txt
Created September 19, 2021 12:44
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.6.6+commit.6c089d02.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
@mcanvar
mcanvar / deploy.sh
Created August 19, 2021 14:46 — forked from BenSampo/deploy.sh
Laravel deploy script
# Change to the project directory
cd $FORGE_SITE_PATH
# Turn on maintenance mode
php artisan down || true
# Pull the latest changes from the git repository
# git reset --hard
# git clean -df
git pull origin $FORGE_SITE_BRANCH
#!/bin/bash
if [[ -z $1 ]]
then
echo "Crossfire competition status checker."
echo ""
echo "Usage:"
echo " estimate-cf.sh [moniker-name]"
exit
@mcanvar
mcanvar / checker.sh
Last active February 3, 2021 15:23
A status tracker for the nodes in Crypto.com Crossfire contest. We will be running below two script with this(checker.sh) automator. In ortder to run this in background: `nohup ./checker.sh >/dev/null 2>&1 &` and to stop it: `killall checker.sh`
#!/bin/bash
while true
do
#This is actually official check-validator-up.sh script, I copy to put telegram bot commands in it.
./cv.sh --tendermint-url https://crossfire.crypto.com:443 --pubkey $(cat ~/.chain-maind/config/priv_validator_key.json | jq -r '.pub_key.value')
#And this one the script @arc shared here: https://discord.com/channels/783264383978569728/790404424433926155/805786007140040804
#To get your validator address run: jq -r '.address' ~/.chain-maind/config/priv_validator_key.json
./history.sh <YOUR_VALIDATOR_ADDRESS> 10
sleep 60
@mcanvar
mcanvar / Editor.vue
Created May 9, 2020 21:51
Workaround for "Cannot read property 'set' of undefined - vue.JS #116" https://github.com/froala/vue-froala-wysiwyg/issues/116
<template>
<froala :tag="tag" ref="froalaEditor" :config="config" v-model="htmlValue"
:name="name" :id="id"></froala>
</template>
<script>
export default {
props: {
tag: {
type: String,