Skip to content

Instantly share code, notes, and snippets.

View lnfel's full-sized avatar
🏠
Working from home

Dale Ryan lnfel

🏠
Working from home
View GitHub Profile
@lnfel
lnfel / GitCommitEmoji.md
Created March 11, 2019 13:27 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@lnfel
lnfel / select2-country-list.js
Last active March 28, 2019 13:51 — forked from janstieler/new_gist_file.js
List of countries for Select2 (https://select2.github.io/) where the id is identically to the text.
[
{ id: 'Afghanistan', text: 'Afghanistan'},
{ id: 'Aland Islands', text: 'Aland Islands'},
{ id: 'Albania', text: 'Albania'},
{ id: 'Algeria', text: 'Algeria'},
{ id: 'American Samoa', text: 'American Samoa'},
{ id: 'Andorra', text: 'Andorra'},
{ id: 'Angola', text: 'Angola'},
{ id: 'Anguilla', text: 'Anguilla'},
{ id: 'Antarctica', text: 'Antarctica'},
CREATE TABLE IF NOT EXISTS `country` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`iso` char(2) NOT NULL,
`name` varchar(80) NOT NULL,
`nicename` varchar(80) NOT NULL,
`iso3` char(3) DEFAULT NULL,
`numcode` smallint(6) DEFAULT NULL,
`phonecode` int(5) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
@lnfel
lnfel / index.html
Created April 26, 2019 12:51
Lowpoly Dynamic Background
<a class="content" href="javascript:history.go(0)">
<h2>Change Background</h2> </a>
@lnfel
lnfel / LICENCE SUBLIME TEXT
Created April 30, 2019 05:15
Sublime Text 3 Serial key build is 3176
## Sublime Text 3 Serial key build is 3176
> * Added these lines into /etc/hosts
127.0.0.1 www.sublimetext.com
127.0.0.1 license.sublimehq.com
> * Used the license key
----- BEGIN LICENSE -----
@lnfel
lnfel / downgrade_rubygems.sh
Created August 5, 2019 07:32 — forked from mmasashi/downgrade_rubygems.sh
Downgrade rubygems version.
$ gem -v
2.0.3
$ gem list rubygems-update
$ gem uninstall -v 2.0.3 rubygems-update
$ gem install -v 1.8.24 rubygems-update
$ update_rubygems
$ gem -v
1.8.24
@lnfel
lnfel / php-ssl-install.sh
Created July 4, 2020 17:03 — forked from iamshreeram/php-ssl-install.sh
Installing SSL certificate in hostinger
# Installation of SSL Certificate
## Enable SSH :
ssh x123011738@31.170.164.22 -p 65002
## Download acme-client
git clone https://github.com/kelunik/acme-client
## Install composer
```
@lnfel
lnfel / note.txt
Last active September 25, 2023 01:23
Rails 6.0.3.2 on Termux
Rails 6.0.3.2 on Termux
pkg upgrade
pkg install ruby vim git nodejs
nokogiri will build natively and would need the ff packages and will need pkg-config to find them:
libxml-2
libxslt
libexslt
@lnfel
lnfel / redis-setup-windows.txt
Created April 23, 2021 02:24
Laravel 8 Redis setup on Windows with xampp
Laravel 8 Redis setup on Windows with xampp
Note: test done using windows 7
1. Install predis on your project
https://laravel.com/docs/8.x/redis#introduction
composer require predis/predis
- un-comment 'Redis' => Illuminate\Support\Facades\Redis::class, in your config/app.php
- on your .env make sure you have the following variables:
@lnfel
lnfel / better-font-smoothing.css
Created May 21, 2021 03:27 — forked from hsleonis/better-font-smoothing.css
Better font smoothing in cross browser
html {
/* Adjust font size */
font-size: 100%;
-webkit-text-size-adjust: 100%;
/* Font varient */
font-variant-ligatures: none;
-webkit-font-variant-ligatures: none;
/* Smoothing */
text-rendering: optimizeLegibility;
-moz-osx-font-smoothing: grayscale;