Skip to content

Instantly share code, notes, and snippets.

View Wanderson304's full-sized avatar
馃挱
Em constante aprendizagem...

Wanderson Silva Wanderson304

馃挱
Em constante aprendizagem...
View GitHub Profile
@guisjlender
guisjlender / commands-vagrant.md
Created December 9, 2013 12:59
Comandos b谩sicos para se tranalhar com o Vagrant

Comandos b谩sicos do Vagrant

Init

  • vagrant init [box-name] [box-url]
  • Cria o arquivo Vagrantfile com as configura莽玫es do box que voc锚 informou no [box-name], caso voc锚 n茫o tenha o box ainda adicionado 茅 obrigat贸rio passar o [box-url] para que ele possa baixa-lo

Up

  • vagrant up
    • Cria e inicia a instancia ap贸s o comando vagrant init
@alexandre
alexandre / restful_python_ops.md
Last active June 6, 2022 19:08
Algumas op莽玫es em Python para criar APIs Restful

Algu茅m na lista Python-Brasil perguntou sobre como criar um webservice Restful com Python... eu achei interessante salvar as sugest玫es aqui para indicar, caso essa quest茫o apare莽a em algum lugar.

A ideia 茅 tamb茅m atualizar esse arquivo com algum blogpost que contribua para a quest茫o.

Flask

Bottle

@thebinarypenguin
thebinarypenguin / node-hello-world.js
Created March 6, 2016 13:27
"Hello World" HTTP server using node.js
const http = require('http');
const name = 'node-hello-world';
const port = '8888';
const app = new http.Server();
app.on('request', (req, res) => {
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.write('Hello World');
@mvladk
mvladk / mongodb-s3-backup-mongoexport-query.sh
Last active October 27, 2022 20:53 — forked from eladnava/mongodb-s3-backup.sh
Automatically backup a MongoDB database to S3 using mongoexport with query, tar.bz2, and awscli (Ubuntu 14.04 LTS)
#!/bin/sh
# Make sure to:
# 1) Name this file `backup.sh` and place it in /home/ubuntu
# 2) Run sudo apt-get install awscli to install the AWSCLI
# 3) Run aws configure (enter s3-authorized IAM user and specify region)
# 4) Fill in DB host + name
# 5) Create S3 bucket for the backups and fill it in below (set a lifecycle rule to expire files older than X days in the bucket)
# 6) Run sudo mkdir /data/tmp
# 7) Run sudo chmod 777 /data/tmp/
@troyfontaine
troyfontaine / readme.md
Last active July 17, 2025 02:01
Resize root partition (or how to remove the default /home partition) on CentOS 7 online

Resize root partition (or how to remove the default /home partition) on CentOS 7 online

This process requires that you are able to ssh OR log in locally using the root user account and that no services be running as users out of /home on the target machine.

The examples are from a default installation with no customization-you NEED to know what you're working with for volumes/partitions to not horribly break things.

By default, CentOS 7 uses XFS for the file system and Logical Volume Manager (LVM), creating 3 partitions: /,/home and swap.

NOTE: If you want to be sure that nothing is writing to /home you can either modify the host to boot into single-user mode OR try to use the systemctl isolate runlevel1.target command to switch (not tested! should work).

@ledmaster
ledmaster / MultipleTimeSeriesForecasting.ipynb
Last active September 24, 2024 15:14
How To Predict Multiple Time Series With Scikit-Learn (With a Sales Forecasting Example)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jerodg
jerodg / windows_and_office_kms_setup.adoc
Last active November 5, 2025 10:36
Activate Windows and Office Using KMS Server

Microsoft Windows and Office KMS Setup

@judero01col
judero01col / Service KMS
Last active November 5, 2025 10:30
Volume License Activation Key Service - KMS
## Find Available Target Editions
DISM.exe /Online /Get-TargetEditions
## Convert Server Standard 2019 Evaluation to Server Standard 2019
DISM /online /Set-Edition:ServerStandard /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C /AcceptEula
## How To Activate
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr /skms [server]:[port]
slmgr /ato
@CHSuworatrai
CHSuworatrai / VMware vSphere 6.x Licence Keys
Created April 8, 2021 09:20 — forked from DVSB/VMware vSphere 6.x Licence Keys
VMware vSphere 6 and 7 Licence Keys
VMware vSphere 6 Enterprise Plus
1C20K-4Z214-H84U1-T92EP-92838
1A2JU-DEH12-48460-CT956-AC84D
MC28R-4L006-484D1-VV8NK-C7R58
5C6TK-4C39J-48E00-PH0XH-828Q4
4A4X0-69HE3-M8548-6L1QK-1Y240
VMware vSphere with Operations Management 6 Enterprise
4Y2NU-4Z301-085C8-M18EP-2K8M8
1Y48R-0EJEK-084R0-GK9XM-23R52
@ConnerWill
ConnerWill / Convert-ImageToAsciiArt.ps1
Last active November 30, 2024 01:53
Convert-ImageToAsciiArt - PowerShell function to convert an image to ascii art
# NOTICE: This project has been moved to its own repository https://github.com/ConnerWill/Convert-ImageToASCIIArt
function Convert-ImageToAsciiArt {
<#
.SYNOPSIS
Function to convert an image to ascii art.
.DESCRIPTION
The function Convert-ImageToAsciiArt takes an image file path and converts the image to ASCII art.
The ASCII art is created by replacing each pixel in the image with an ASCII character based on the brightness of the pixel.