DOCKER_IMAGE_NAME := my-docker-image DOCKER_CONTAINER_NAME := my-container DOCKER_BUILD_DIR := . DOCKERFILE := Dockerfile DOCKER_RUN_COMMAND := /bin/bash
build:
FROM alpine:edge | |
WORKDIR /bin/app | |
RUN wget https://github.com/prometheus/node_exporter/releases/download/v1.7.0/node_exporter-1.7.0.linux-amd64.tar.gz \ | |
&& tar -xzvf node_exporter-1.7.0.linux-amd64.tar.gz --directory . \ | |
&& mv -v ./node_exporter-1.7.0.linux-amd64/node_exporter /bin/node_exporter \ | |
&& chmod 777 /bin/node_exporter |
'use client' | |
import { HTMLAttributes, useEffect, useState } from 'react' | |
import { Table } from '../atoms/Table' | |
import { fetchGithubRepositoriesByUsername } from '@/app/lib/fetch' | |
import { GithubRepo } from '@/lib/types/global' | |
export type GithubRepo = { | |
name: any |
/** | |
* Allow only one call within the time limit | |
* @param { Function } func function to limited | |
* @param { Number } limit time limite in miliseconds | |
*/ | |
export function throttle (func: Function, limit: number) { | |
let inThrottle: boolean | |
return function (this: any) { | |
const args = arguments | |
const context = this |
#!/bin/bash | |
# CREATE INITIAL FILES | |
cat > package.json <<EOF | |
{ | |
"name": "@typescript/scaffold", | |
"version": "1.0.0", | |
"author": "Anderson Bosa", | |
"license": "CC0-1.0", | |
"keywords": ["typescript"], |
#!/usr/bin/env bash | |
# -*- coding: utf-8 -*- | |
# This command will check every installed dependency and compare the current | |
# version with the latest version in the npm registry. It is printed out into | |
# a table outlining available versions. | |
npm outdated | |
#!/bin/bash | |
# Author: https://github.com/andersonbosa | |
# Source: https://gist.githubusercontent.com/andersonbosa/2596ce7856f08299e0e065ccfe878bb4/raw/fd823a48c736288ab9d0b7da3cab05e2f60ff2a4/add_new_document.sh | |
set -e | |
####################################### | |
# Function to convert a string to title case | |
# Arguments: | |
# $1: String to be converted to title case |
#!/bin/bash | |
# Author: https://github.com/andersonbosa | |
# Source: https://gist.githubusercontent.com/andersonbosa/9966c985fb5baf250271447746a714a3/raw/31cba94a8db1acbeb3636e272e1345745c72891e/replace_keyword.sh | |
# | |
# Example usage: | |
# replace_keyword "example.txt" "{{title_template}}" "New Title" | |
####################################### | |
# Function to replace a keyword with a provided value in a text file |
def ArrayJumping(arr): | |
# Inicialização de um dicionário para armazenar as informações de salto para cada índice na lista | |
hashtable = {} | |
# Obter o comprimento da lista | |
arr_len = len(arr) | |
# Preencher o dicionário com informações de salto para cada índice na lista | |
for i in range(arr_len): | |
hashtable[i] = (left(arr_len, i, arr[i]), right(arr_len, i, arr[i])) | |
''' | |
# 5 seconds | |
- return the smallest number you can get by reduction | |
# CONSTRAINS | |
# RULES | |
1. The method is: Only the letters a, b, and c will be given |