How to install:
Add the script to the /usr/bin folder
As root, run:
wget -O /usr/bin/upgrade-all https://gist.github.com/arturmartins/62653143b9a384e63e79bb81d8fe9386/raw/upgrade-all.sh| #!/bin/bash | |
| # | |
| # Author: github.com/arturmartins | |
| # Version: 1.0.0 | |
| # Config details can be found in https://lastpass.com/lplinux.php | |
| # CONFIG: URL and filenames | |
| TARBALL="lplinux.tar.bz2" |
| // SPDX-License-Identifier: MIT | |
| pragma solidity 0.8.19; | |
| import "@openzeppelin/[email protected]/token/ERC20/ERC20.sol"; | |
| import "@openzeppelin/[email protected]/access/AccessControl.sol"; | |
| contract Token is ERC20, AccessControl { | |
| bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); | |
| constructor() ERC20("Chainlink Bootcamp 2024 Token", "CLBoot24") { |
| #!/usr/bin/env python3 | |
| """ | |
| Converts WEBVTT subtitles (vtt) to plain text. | |
| It removes all time related info as well as duplicated and empty lines. | |
| """ | |
| # Author: Artur Martins <[email protected]> | |
| # Version: 1.0 | |
| # Date: 2023-Oct-25 |
| #!/bin/bash | |
| # Utility to download latest etcd version for linux | |
| SYSTEM_VERSION="linux-amd64" | |
| fail(){ | |
| echo "[${0##*/}]: FATAL: ${@}" | |
| exit 1 | |
| } |
| pragma solidity 0.8.20; | |
| contract HelloWorld2{ | |
| string userInput; | |
| function set(string memory finalValue) public | |
| { | |
| userInput = finalValue; | |
| } |
| // SPDX-License-Identifier: MIT | |
| pragma solidity 0.8.20; | |
| // This defines a contract named “HelloWorld”. | |
| // | |
| // A contract is a collection of functions and data (its state). | |
| // Once deployed, a contract will exist at an address on the Ethereum blockchain. | |
| contract HelloWorld { | |
| // This is a public function that returns the string “Hello World”. |
| #!/bin/bash | |
| # Requirements: | |
| # - homebrew: https://brew.sh/ | |
| # - homebrew tap: buo/cask-upgrade - https://github.com/buo/homebrew-cask-upgrade | |
| # - homebrew mas (Mac App Store command-line interface - https://github.com/mas-cli/mas) | |
| # | |
| # Install the requirements by running: | |
| # brew tap buo/cask-upgrade && brew install mas | |
| # CONFIG: |
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(query_start, clock_timestamp()), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(query_start, clock_timestamp()), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
I hereby claim:
To claim this, I am signing this object: