Skip to content

Instantly share code, notes, and snippets.

View robertopc's full-sized avatar

Roberto Pereira da Costa robertopc

View GitHub Profile
@robertopc
robertopc / adminer.css
Last active April 2, 2023 14:16
Adminer Black Custom Theme
/** theme "easy on the eyes" for Adminer by [email protected] */
/** customized by RobertoPC in https://gist.github.com/robertopc/bf2edac131bbaf789343fa9ce3ceb2e4 **/
@import url(//fonts.googleapis.com/css?family=Roboto+Mono:400,900);
/* for font awesome */
*:not(.fa) {
font-family: 'Roboto Mono', sans-serif;
}
@robertopc
robertopc / adminer.css
Created June 7, 2016 13:06
Adminer Blue Theme
/**
* @package Adminer.css - Theme CSS for Adminer - blue
* @version 2.1.4
* @date Sat, 24 Oct 2015 21:16:48 +0100, Slovakia
* @author Robert Mesaros
* @copyright Copyright ร‚ยฉ 2015 Robert Mesaros, rmSOFT
* @web http://www.rmsoft.sk
* @link http://www.rmsoft.sk/index.php/en/portfolio/programming-work/web-services/theme-for-adminer
*
* @donate https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=BB4D8Y28YZDH6
/**
* UTF8 TRANSLITERATION
*
* @derivate https://gist.github.com/funkjedi/4138022
*/
function utf8_transliteration($string) {
$find = {" ","ยก","ยข","ยฃ","ยค","ยฅ","ยฆ","ยง","ยจ","ยฉ","ยช","ยซ","ยฌ","ยญ","ยฎ","ยฏ","ยฐ","ยฑ","ยฒ","ยณ","ยด","ยต","ยถ","ยท","ยธ","ยน","ยบ","ยป","ยผ","ยฝ","ยพ","ยฟ","ร€","ร","ร‚","รƒ","ร„","ร…","ร†","ร‡","รˆ","ร‰","รŠ","ร‹","รŒ","ร","รŽ","ร","ร","ร‘","ร’","ร“","ร”","ร•","ร–","ร—","ร˜","ร™","รš","ร›","รœ","ร","รž","รŸ","ร ","รก","รข","รฃ","รค","รฅ","รฆ","รง","รจ","รฉ","รช","รซ","รฌ","รญ","รฎ","รฏ","รฐ","รฑ","รฒ","รณ","รด","รต","รถ","รท","รธ","รน","รบ","รป","รผ","รฝ","รพ","รฟ","ฤ€","ฤ","ฤ‚","ฤƒ","ฤ„","ฤ…","ฤ†","ฤ‡","ฤˆ","ฤ‰","ฤŠ","ฤ‹","ฤŒ","ฤ","ฤŽ","ฤ","ฤ","ฤ‘","ฤ’","ฤ“","ฤ”","ฤ•","ฤ–","ฤ—","ฤ˜","ฤ™","ฤš","ฤ›","ฤœ","ฤ","ฤž","ฤŸ","ฤ ","ฤก","ฤข","ฤฃ","ฤค","ฤฅ","ฤฆ","ฤง","ฤจ","ฤฉ","ฤช","ฤซ","ฤฌ","ฤญ","ฤฎ","ฤฏ","ฤฐ","ฤฑ","ฤฒ","ฤณ","ฤด","ฤต","ฤถ","ฤท","ฤธ","ฤน","ฤบ","ฤป","ฤผ","ฤฝ","ฤพ","ฤฟ","ล€","ล","ล‚","ลƒ","ล„","ล…","ล†","ล‡","ลˆ","ล‰","ลŠ","ล‹","ลŒ","ล","ลŽ","ล","ล","ล‘","ล’","ล“","ล”","ล•","ล–","ล—","ล˜","ล™","ลš","ล›","ลœ","ล","ลž","ลŸ","ล ","ลก","ลข","ลฃ","ลค","ลฅ","ลฆ","ลง","ลจ","ลฉ","ลช","ลซ","ลฌ","ลญ","ลฎ","ลฏ","ลฐ","ลฑ","ลฒ","ลณ","ลด","ลต","ลถ","ลท","ลธ","ลน","ลบ","ลป","ลผ
@robertopc
robertopc / ubuntu-server-setup-16.04-LAMP.md
Last active March 6, 2018 19:00 — forked from Otienoh/ubuntu-server-setup-16.04-LAMP.md
LAMP Server setup for Ubuntu 16.04 on Digital Ocean

Server setup for Ubuntu 16.04 on Digital Ocean

The setup installs the following software:

The setup installs the following software:

  • Apache
  • MySQL
  • PHP
  • Node
@robertopc
robertopc / Digital-Ocean-Ubuntu-1210-64bit-LAMP-Server
Created September 28, 2016 14:27
Digital Ocean Ubuntu 12.10 64bit LAMP Setup
#!/bin/bash
# log into your server
ssh root@[server ipaddress]
# change root password
passwd
# update all packages and operating system
apt-get update && apt-get --yes upgrade
@robertopc
robertopc / .gitconfig
Created November 8, 2017 22:21 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = [email protected]
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
smtpserver = smtp.gmail.com
@robertopc
robertopc / jekyll-new-post-advanced
Last active November 29, 2017 22:16 — forked from aamnah/jekyll-new-post-advanced
Bash script to create new Jekyll posts
#!/bin/bash
# About: Bash script to create new Jekyll posts
# Author: @AamnahAkram
# URL: https://gist.github.com/aamnah/f89fca7906f66f6f6a12
# Description: This is a more advanced version of the script which can
# - take options
# - has color coded status messages
# - improved code
# - lowercase permalinks
# - usage message
@robertopc
robertopc / gist:d083223dd324c4fd44a34f3a9ab09bb0
Created December 18, 2017 18:22 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

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:
@robertopc
robertopc / gist:fc1abb2ddbe5fcf4af15365386a38599
Created May 31, 2019 15:14 — forked from avelino/gist:3188137
shell script, como colorir o retorno do seu cรณdigo
echo -e " \033[0;30m Preto \033[0m --> 0;30 "
echo -e " \033[0;31m Vermelho \033[0m --> 0;31 "
echo -e " \033[0;32m Verde \033[0m --> 0;32 "
echo -e " \033[0;33m Marrom \033[0m --> 0;33 "
echo -e " \033[0;34m Azul \033[0m --> 0;34 "
echo -e " \033[0;35m Purple \033[0m --> 0;35 "
echo -e " \033[0;36m Cyan \033[0m --> 0;36 "
echo -e " \033[0;37m Cinza Claro \033[0m --> 0;37 "
echo -e " \033[1;30m Preto Acinzentado \033[0m --> 1;30 "
echo -e " \033[1;31m Vermelho Claro \033[0m --> 1;31 "
@robertopc
robertopc / mkswapfile.sh
Last active August 17, 2019 21:50
Make a swap of 1GB in Linux
#!/bin/sh
sudo su
dd if=/dev/zero of=/swapfile bs=1024 count=1024k
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
# add line in fstab to auto mount swap in startup
echo "/swapfile none swap sw 0 0" >> /etc/fstab