Skip to content

Instantly share code, notes, and snippets.

View phellipeandrade's full-sized avatar
🏡
Working from home

Phellipe Andrade phellipeandrade

🏡
Working from home
  • São Paulo - Brazil
View GitHub Profile
@joahg
joahg / stalkUser.py
Created January 8, 2014 02:59
Small program I made to follow (or unfollow) all the users that another user is following. Requires that you create a new Personal Access Token for authorization at https://github.com/settings/tokens/new
import requests
uf = False # Unfollow all (currently followed) users?
f = True # Follow all (currently unfollowed) users?
def url(path, page=1, auth=""):
return "https://api.github.com" + path + "?page=" + str(page) + "&access_token=" + auth
def unfollow(user):
requests.delete(url("/user/following/" + user["login"], 1, auth))
@emersonbroga
emersonbroga / README.md
Last active November 25, 2018 14:14
Bitcoin value with Javascript

Bitcoin Price

How to run

npm install --save request
node bitcoin-price.js
const sample = [
[
[
[
[
[
{
foo: [{ rate: 2.18 }],
},
],
@ajace
ajace / prime_generator.js
Last active October 5, 2020 03:03
nodejs script to generate prime numbers
#!/usr/bin/env node
var fs = require('fs');
var outfile = "primes.txt";
var count = 0;
var maxCount = 100;
var primes = [];
var i = 2;
@gaibz
gaibz / db.js
Last active May 5, 2021 07:34
NeDB Encryption & Decryption (Work 2020)
/**
* NeDB With Encryption & Decryption
* Last Update 12 Feb 2020
*
* @author : Herlangga Sefani Wijaya <https://github.com/gaibz>
*/
const path = require('path') // path for database
const Datastore = require("nedb") // of course you need NeDB
const crypto = require('crypto') // now is in node default module
@jverdeyen
jverdeyen / .docker-alias.bash
Created August 9, 2016 08:07
A set of docker aliases
# ------------------------------------
# Docker alias and function
# ------------------------------------
# Get latest container ID
alias dl="docker ps -l -q"
# Get container process
alias dps="docker ps"
@callmeloureiro
callmeloureiro / comoNaoDeixarNoVaucoNoWhatsapp.js
Last active June 5, 2021 13:29
Como não deixar no vácuo no whatsapp
/*
Hoje não deixaremos mais ninguém no vácuo no whatsapp
Para utilizar:
- Abra o web.whatsapp.com;
- Abra o console e cole o código que está no gist;
- Aguarde e verá uma mensagem sendo enviada a cada momento que alguém te enviar alguma mensagem.
Confira também como ser chato no whatsapp: https://gist.github.com/mathloureiro/4c74d60f051ed59650cc76d1da0d32da
e como ser chato no mensseger: https://gist.github.com/mathloureiro/d3f91d19cf148838217e42a0c6df5ed8
*/
@carlolars
carlolars / gitkraken-wsl-bash.bat
Last active February 10, 2023 21:08
Use bash from WSL as sh.exe for GitKraken (5.0.4) for Windows
@echo off
REM Make sure that the path to the script is correct!
@bash -l -c "~/bin/gitkraken-wsl-bash.sh %*"
@yetanotherchris
yetanotherchris / install-rabbitmq.sh
Last active April 29, 2023 07:10
RabbitMQ on Docker with admin UI
# AWS specific install of Docker
sudo yum update -y
sudo yum install -y docker
sudo service docker start
sudo usermod -a -G docker ec2-user
# exit the SSH session, login again
# Docker
docker run -d --hostname my-rabbit --name some-rabbit -p 4369:4369 -p 5671:5671 -p 5672:5672 -p 15672:15672 rabbitmq
@kpheasey
kpheasey / ark_instance.sh
Last active July 27, 2023 20:12
DO Ubuntu 14.04 Droplet to ARK Server
#!/bin/bash
# Updating Ubunut
echo "updating ubunutu... please be patient"
apt-get update && apt-get upgrade -y
echo "installing required packages... please be patient"
apt-get install htop lib32gcc1 -y
# Create steam user if needed