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
![alt text](https://pbs.twimg.com/media/DQY9YCeVQAEuxXn.png) | |
# Digital Ocean Promo Coupon Code $200 Free Trial | |
# Get DigitalOcean 1 Year Free Trial.** | |
## Steps To Get Free Credit | |
1. First open this **[link](https://tapthislink.com/digitalocean)** and **Sign Up** to get your **$200 credit.** | |
2. Create your new account, That's it, very simple. Applicable for new Digitalocean Account holder | |
3. Enjoy your $200 Digitalocean Credit for one year. No limitation. |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.4; | |
import "@openzeppelin/contracts/utils/Counters.sol"; | |
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; | |
import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; | |
import "hardhat/console.sol"; | |
contract NFTMarketplace is ERC721URIStorage { |
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
function getHost($url) { | |
$parseUrl = parse_url(trim($url)); | |
if(isset($parseUrl['host'])) | |
{ | |
$host = $parseUrl['host']; | |
} | |
else | |
{ | |
$path = explode('/', $parseUrl['path']); | |
$host = $path[0]; |
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/env bash | |
# Credits (based on): J. Elliot Taylor https://gist.github.com/jaytaylor/86d5efaddda926a25fa68c263830dac1 | |
# Changes: | |
# - iterate over tag list instead of using only first one | |
# - optional: basic auth | |
set -e | |
set -o pipefail | |
readonly VER=1.0.0 |
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
/** | |
* extract rar or zip file | |
* | |
* @since [1.0] | |
* @author Richard | |
* @date 2015-05-05 | |
* | |
* @param [string] $file_path ["D:\file\path\a.rar"] | |
* @param [string] $to_path ["D:\extract\to\path"] | |
* @return [boolean] |
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
server { | |
listen 80; | |
listen [::]:80; | |
server_name domain.com; | |
autoindex off; | |
index index.php index.html; | |
root /srv/www/domain.com/public; |
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
sudo su | |
//Setup Hostname | |
hostnamectl set-hostname subdomain.domain.tld | |
## Basic | |
sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get autoremove -y && sudo apt-get install software-properties-common | |
sudo add-apt-repository ppa:ondrej/php -y && add-apt-repository ppa:nginx/stable -y | |
//Setup SWAP | |
sudo fallocate -l 1G /swapfile; |
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
[data-theme="dark"] { | |
background-color: #111 !important; | |
color: #eee; | |
} | |
[data-theme="dark"] .bg-light { | |
background-color: #333 !important; | |
} | |
[data-theme="dark"] .bg-white { |
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
version: '3.7' | |
networks: | |
platform: | |
external: true | |
services: | |
server: | |
image: opensuse/portus:2.4.3 |
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
#!/bin/bash | |
#============================================================================== | |
#TITLE: mysql_backup.sh | |
#DESCRIPTION: script for automating the daily mysql backups on development computer | |
#AUTHOR: tleish | |
#DATE: 2013-12-20 | |
#VERSION: 0.4 | |
#USAGE: ./mysql_backup.sh | |
#CRON: | |
# example cron for daily db backup @ 9:15 am |
NewerOlder