| HEADER | EMPHASIS | HORIZONTAL_LINE | LIST | TABLE
This file contains hidden or 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
| import web3 | |
| import json | |
| from eth_account import Account | |
| from web3 import Web3 | |
| w3 = Web3(Web3.HTTPProvider('https://ropsten.infura.io/v3/apiKey')) | |
| acct = Account.privateKeyToAccount('private key') | |
| nonce = w3.eth.getTransactionCount(acct.address) | |
| transaction = { | |
| 'to' : toAccount, | |
| 'value': 1, |
This file contains hidden or 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
| const fs = require('fs'); | |
| const solc = require('solc'); | |
| const Web3 = require('web3'); | |
| // Connect to local Ethereum node | |
| const web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545")); | |
| // Compile the source code | |
| const input = fs.readFileSync('Token.sol'); | |
| const output = solc.compile(input.toString(), 1); |
This file contains hidden or 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
| After searching for more than 6 hours trying to understand what is zoho's mail problem to send emails! | |
| After i red lots lots of there answer with no helpul solution i found the issue was that you need to have the ``` sender ``` option | |
| in your nodemailer option same like email with same sender name and sender email. like this : ``` from: '"senderNameSameLikeTheZohoOne" <emailname@yourwebsite.com>',``` | |
| my config : | |
| ``` | |
| const transporter = nodemailer.createTransport({ | |
| service:'Zoho', | |
| host: 'smtp.zoho.com', | |
| port: 465, |
This file contains hidden or 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
| #user nobody; | |
| worker_processes 4; | |
| #error_log logs/error.log; | |
| #error_log logs/error.log notice; | |
| #error_log logs/error.log info; | |
| #pid logs/nginx.pid; |
This file contains hidden or 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 mediaJSON = { "categories" : [ { "name" : "Movies", | |
| "videos" : [ | |
| { "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org", | |
| "sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ], | |
| "subtitle" : "By Blender Foundation", | |
| "thumb" : "images/BigBuckBunny.jpg", | |
| "title" : "Big Buck Bunny" | |
| }, | |
| { "description" : "The first Blender Open Movie from 2006", | |
| "sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ], |
This file contains hidden or 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
| .headroom { | |
| position: fixed; | |
| top: 0; | |
| -webkit-transition: top 0.15s; | |
| transition: top 0.15s; | |
| } | |
| .headroom-hidden { | |
| top: -60px; | |
| } |
This file contains hidden or 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
| # Quick start for youtube-dl | |
| - https://github.com/ytdl-org/youtube-dl/ | |
| ## Default usage | |
| youtube-dl URL | |
| ## Download certain resolution | |
| youtube-dl -f "best[height<=480]" URL | |
| ## Download certain extension |
This file contains hidden or 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
| ssh my-ssh-user@ip.to.my.server.com -L <ANY_AVAILABLE_PORT_YOU_FANCY>:127.0.0.1:39017 -N |
