Skip to content

Instantly share code, notes, and snippets.

👾
Walking to the fridge...

Pedro Luz Narven

👾
Walking to the fridge...
Block or report user

Report or block Narven

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Narven
Narven / get_dates.php
Created Nov 9, 2019 — forked from Jayaramki/get_dates.php
Get All Dates in given month and year in php
View get_dates.php
/*Get All Dates in given month and year in php by CJ Ramki (http://cj-ramki.blogspot.in)*/
function get_dates($month,$year){
$numbers = array('1','2','3','4','5','6','7','8','9');
$datesArray = array();
$num_of_days = date('t',mktime (0,0,0,$month,1,$year));
for( $i=1; $i<= $num_of_days; $i++) {
if(in_array($i,$numbers)) $i = '0'.$i;
//complete date in Y-m-d format
@Narven
Narven / gist:20ea71ee9d0c40c72c7b428a4b6a3bbb
Created Oct 1, 2019 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup
View gist:20ea71ee9d0c40c72c7b428a4b6a3bbb

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
View makefile
# Go parameters
GOCMD=go
GOBUILD=$(GOCMD) build
GOCLEAN=$(GOCMD) clean
GOTEST=$(GOCMD) test
GOGET=$(GOCMD) get
BINARY_NAME=mybinary
BINARY_UNIX=$(BINARY_NAME)_unix
@Narven
Narven / gen_http_key.sh
Last active Sep 18, 2019
Generate CRT, KEY, PEM for localhost domains (HTTPS)
View gen_http_key.sh
openssl req -x509 -nodes -new -sha256 -days 1024 -newkey rsa:2048 -keyout localhost.key -out localhost.pem -subj "/C=US/CN=Example-Root-CA"
openssl x509 -outform pem -in localhost.pem -out localhost.crt
@Narven
Narven / Vagrantfile
Created Sep 13, 2019 — forked from roblayton/Vagrantfile
A Vagrant multi-machine cluster using a loop
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
cluster = {
"master" => { :ip => "192.168.33.10", :cpus => 1, :mem => 1024 },
"slave" => { :ip => "192.168.33.11", :cpus => 1, :mem => 1024 }
}
@Narven
Narven / fixssh.sh
Created Sep 12, 2019
Fixs all permissions for .ssh folder and its content
View fixssh.sh
sudo chmod 700 ~/.ssh
sudo chmod 644 ~/.ssh/*.pub
sudo chmod 600 ~/.ssh/id_rsa
@Narven
Narven / go-os-arch.md
Created Aug 22, 2019 — forked from asukakenji/go-os-arch.md
Go (Golang) GOOS and GOARCH
View go-os-arch.md

Go (Golang) GOOS and GOARCH

All of the following information is based on go version go1.8.3 darwin/amd64.

A list of valid GOOS values

(Bold = supported by go out of the box, ie. without the help of a C compiler, etc.)

  • android
  • darwin
View cloudSettings
{"lastUpload":"2019-11-12T14:13:23.722Z","extensionVersion":"v3.4.3"}
View ddf
ljf akdsfjsdkfjasldkj
@Narven
Narven / stream.js
Created Apr 8, 2019 — forked from DingGGu/stream.js
NodeJS Mp3 Streaming ExpressJS
View stream.js
var express = require('express');
var app = express();
var fs = require('fs');
app.listen(3000, function() {
console.log("[NodeJS] Application Listening on Port 3000");
});
app.get('/api/play/:key', function(req, res) {
var key = req.params.key;
You can’t perform that action at this time.