Skip to content

Instantly share code, notes, and snippets.

View insign's full-sized avatar
🇧🇷
being open-sourcerer

Hélio insign

🇧🇷
being open-sourcerer
View GitHub Profile
@dominikzogg
dominikzogg / ics.class.php
Created January 8, 2012 14:25
Ics class for php
<?php
/**
*
* Distributed under the GNU Lesser General Public License (LGPL v3)
* (http://www.gnu.org/licenses/lgpl.html)
* This program is distributed in the hope that it will be useful -
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
@JoshuaEstes
JoshuaEstes / mysqldump.sh
Created May 29, 2012 14:43
mysql dump snippet, will output a sql file with the date and time of the dump
mysqldump -u USERNAME -p DATABASE_NAME > $(date +"%m-%d-%y_%H-%M%p").sql
@msurguy
msurguy / list.md
Last active January 26, 2018 15:16
List of CMSs built with Laravel (stable and in dev)
@manjurulhoque
manjurulhoque / Deployment Guide for Ubuntu Server from Scratch with Laravel.md
Last active March 13, 2020 04:01
Deployment Guide for Ubuntu Server from Scratch with Laravel

Setting Up Laravel in Ubuntu / DigitalOcean

Getting Started

  • Create droplet with Ubuntu 18.10
  • ssh root@[DROPLET IP ADDRESS]
  • Get password from your email
  • Change password on first login
  • adduser laravel
  • Enter password and other information
@ilhamarrouf
ilhamarrouf / setup.txt
Last active March 13, 2020 04:01
PHP NGINX MYSQL UBUNTU
#Steps to install latest Laravel, LEMP on AWS Ubuntu 14.4 version.
This tutorial is the improvised verision of this [tutorial on Digitalocean](https://www.digitalocean.com/community/tutorials/how-to-install-laravel-with-an-nginx-web-server-on-ubuntu-14-04) based on my experience.
## Install PHP 7 on Ubuntu
Run the following commands in sequence.
```
sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install zip unzip
@naveenyagati
naveenyagati / Laravel PHP7 LEMP DigitalOcean.md
Last active September 1, 2020 03:59
Configuration for Installing Laravel with LEMP on Ubuntu 16.04 on Digital Ocean

Steps to install latest Laravel with LEMP on Digital Ocean Ubuntu 16.4

This tutorial is made based upon my experiences.In DigitalOcean Firewall in Configured by default so no changes are needed.Let's Encrypt has been pre-installed for us in Digita Ocean, please see: http://do.co/le-nginx

Install PHP 7 on Ubuntu

sudo apt-get update
sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get install zip unzip
sudo apt-get install -y php7.0 php7.0-fpm php7.0-mysql php7.0-zip php7.0-gd
@gabriel-bezerra
gabriel-bezerra / pomodoro.sh
Created October 3, 2012 18:10 — forked from pcreux/pomodoro
Shell script Pomodoro timer for ubuntu unity
#!/bin/sh
#
# Pomodoro script.
#
# Displays a notification after 25 minutes.
#
# Don't forget to 'sudo apt-get install libnotify-bin'
#
# Shell script version by Gabriel Bezerra <gabriel.bezerra@gmail.com>
# based on the Ruby version by Philippe Creux at https://gist.github.com/1321896.
@jglathe
jglathe / fsnotifier-linux-aarch64.gist
Last active February 1, 2021 04:05
Modify PyCharm-CE to run with native fsnotifier on aarch64 (nVidia Jetson Nano)
This is my how-to on getting PyCharm-CE or IDEA to run on a Jetson Nano. Tested with PyCharm-CE 2019.1 Build 191.7479
The linux install package runs on a jetson nano, but with some performance impact:
1. There is no native fsnotifier for linux-aarch64 in the package, and it won't be selected by the application if it would
be there.
2. inotify configuration is missing/not sufficient for PyCharm. Install https://gist.github.com/bittner/c7d1d49fe0c9af907f24
To get a native fsnotifier, you need to compile it from source, and you need to convince the application to select and start it.
This is currently implemented in https://github.com/JetBrains/intellij-community/pull/1140. As long as it is not yet integrated
@aviaryan
aviaryan / Clipjump - Temp Clipboard.ahk
Created August 24, 2013 03:51
Temporary Clipboards for use with Clipjump - Provides shortcuts to capture data to another private Clipboard.
;---------------------------------------
;TEMPORARY SYSTEM CLIPBOARD FOR CLIPJUMP
;v0.1
;---------------------------------------
;The shortcuts are Alt+C , X , V
!C::
copy("^c")
return
@insign
insign / select-copy-middle-paste.ahk
Last active June 9, 2021 15:05
Auto copy on select paste with middle (no obstrutive)
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance Force ; reloads if try to rerun
cos_mousedrag_treshold := 20 ; pixels