Skip to content

Instantly share code, notes, and snippets.

View jucemar-dimon's full-sized avatar
🚀

Jucemar Dimon jucemar-dimon

🚀
  • Florianópolis-SC
View GitHub Profile
# #
# #
# #
# #
# Instalação do Prometheus #
# #
# #
# #
# #
apiVersion: v1
@oelbaga
oelbaga / 01 - Setup Nextjs site on Ubuntu Server - Terminal commands
Last active June 11, 2024 12:33
Setup NextJS app on Digital Ocean Ubuntu server Full Terminal Commands Step by Step
#Setup NextJS on Ubuntu server (Digital Ocean, EC2,...) Terminal Commands
#based on my YouTube video
#Recommended: An ubuntu server with at least 2 GB memory to handle npm run build
#login to server
ssh root@ip_address
#Upgrade Server - may take a few minutes
sudo apt update
sudo apt upgrade
@matheusnascgomes
matheusnascgomes / App.js
Created July 21, 2018 20:49
Como importar as dependências do AdminLTE de forma correta em um ambiente ReacJS com create-react-app
import React, { Component } from "react";
import "./template/dependencies";
class App extends Component {
render() {
return (
<body className="hold-transition login-page">
<div className="login-box">
<div className="login-logo">
<a href="../../index2.html">
@gaearon
gaearon / minification.md
Last active June 8, 2024 08:15
How to Set Up Minification

In production, it is recommended to minify any JavaScript code that is included with your application. Minification can help your website load several times faster, especially as the size of your JavaScript source code grows.

Here's one way to set it up:

  1. Install Node.js
  2. Run npm init -y in your project folder (don't skip this step!)
  3. Run npm install terser

Now, to minify a file called like_button.js, run in the terminal:

@gabrielfroes
gabrielfroes / slugify.js
Last active February 6, 2024 23:36 — forked from mathewbyrne/slugify.js
Javascript Slugify
/*
Create SLUG from a string
This function rewrite the string prototype and also
replace latin and other special characters.
Forked by Gabriel Froes - https://gist.github.com/gabrielfroes
Original Author: Mathew Byrne - https://gist.github.com/mathewbyrne/1280286
*/
if (!String.prototype.slugify) {
String.prototype.slugify = function () {
@rafabarzotto
rafabarzotto / instarlar_esus.txt
Created June 1, 2017 11:07
Roteiro de Instalação e-SUS
UBUNTU 16.04-02
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-7-jdk
sudo apt-get update
sudo apt-get install postgresql postgresql-contrib
@jniltinho
jniltinho / install_jboss.sh
Last active September 28, 2022 19:31
Install Jboss 7 + JRE 8 on Debian
#!/bin/bash
### Install Jboss 7 + JRE8 on Debian 64Bits
### Link: http://alexander.holbreich.org/jboss-7-setup-linux/
## First install wget
## Primeiro instale o wget
# Check if user has root privileges
if [[ $EUID -ne 0 ]]; then

Often when I try to merge a branch with Git on Windows, I get Permission denied errors. I am not sure what is the cause but cleaning up and trying to the merge again works.

Steps

> git merge develop
error: unable to create file public/less/bootstrap/dropdowns.less (Permission denied)
@ricardobeat
ricardobeat / coordenadas_estados_BR.js
Created November 12, 2010 20:46
Coordenadas dos estados do brasil (centralizado, não capitais)
{
AC: [ -8.77, -70.55]
, AL: [ -9.71, -35.73]
, AM: [ -3.07, -61.66]
, AP: [ 1.41, -51.77]
, BA: [-12.96, -38.51]
, CE: [ -3.71, -38.54]
, DF: [-15.83, -47.86]
, ES: [-19.19, -40.34]
, GO: [-16.64, -49.31]