Skip to content

Instantly share code, notes, and snippets.

View arthurcvm's full-sized avatar

Arthur Cezar arthurcvm

View GitHub Profile
{
"$schema": "https://biomejs.dev/schemas/1.7.1/schema.json",
"organizeImports": {
"enabled": true
},
"javascript": {
"formatter": {
"quoteStyle": "single"
}
},
@abdallahokasha
abdallahokasha / Install_robo3t_Ubuntu.md
Last active September 24, 2023 14:54
Install Robo3t on Ubuntu18.04 and make a desktop icon for it

Install Robo3t On Ubuntu 18.04

Download the package form Robo3t or using wget
wget https://download.robomongo.org/1.2.1/linux/robo3t-1.2.1-linux-x86_64-3e50a65.tar.gz
Extract here using

tar -xvzf robo3t-1.2.1-linux-x86_64-3e50a65.tar.gz

@MarcinusX
MarcinusX / infinite_listview.dart
Created April 16, 2018 19:47
This is source code for a blog post.
import 'dart:async';
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Flutter Demo',
theme: new ThemeData(
@noynaert
noynaert / Laravel on Linux.md
Last active July 6, 2024 04:12
Installing Laravel on Linux.

Installing Laravel on Linux

Note: This document is not finished.

Written for Laravel 2.3 and PHP 7

This is written for Ubuntu, LinuxMint, and oter debian derivatives that use apt or apt-get. I have tested it on Ubuntu 16.04 LTS. Also, this installation may not be the minimum. In particular, some of the php files May not be absolutely necessary, especially if you are not running nginx and valet.

I have this guide on Fedora using "dnf" instead of apt should work in most places. A few of the PHP bundles are a bit differentently, but It still worked. The Fedora packages seem to be more inclusive, so all of the important PHP components seemed to be loaded.

Homestead

Homestead is a useful tool. but it can be overwhelming at first if you are trying to learn both Laravel and Homestead.

@wellingtonpgp
wellingtonpgp / clear.sh
Last active April 4, 2017 19:51
Shell script básico de limpeza
#!/bin/bash
# limpeza de arquivos inuteis no sistema
# Criado por Wellington P. Gonçalves (Wellington Geek)
# email: wellingtongeek@gmail.com, contato@wellingtongeek.com
# Para executar o script basta localizar a pasta e digitar chmod +x clear.sh
echo "Limpando a lixeira"
sudo rm -rf /home/$USER/.local/share/Trash/files/*
echo ""
@wpscholar
wpscholar / vagrant-cheat-sheet.md
Last active July 19, 2024 14:51
Vagrant Cheat Sheet

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Creating a VM

  • vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.
  • vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.

Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)
@ashleydw
ashleydw / nginx.conf
Last active June 19, 2024 17:08
Laravel nginx conf file
server {
listen 80 default_server;
server_name example.com www.example.com;
access_log /srv/www/example.com/logs/access.log;
error_log /srv/www/example.com/logs/error.log;
root /srv/www/example.com/public;
index index.php index.html;
@vladimirtsyupko
vladimirtsyupko / gist:10964772
Created April 17, 2014 08:32
Git force pull to overwrite local files
git fetch --all
git reset --hard origin/master
git pull origin master
@quagliato
quagliato / select_estados.html
Last active June 6, 2024 23:50
<select> com todos os estados brasileiros
<select id="estado" name="estado">
<option value="AC">Acre</option>
<option value="AL">Alagoas</option>
<option value="AP">Amapá</option>
<option value="AM">Amazonas</option>
<option value="BA">Bahia</option>
<option value="CE">Ceará</option>
<option value="DF">Distrito Federal</option>
<option value="ES">Espírito Santo</option>
<option value="GO">Goiás</option>