Skip to content

Instantly share code, notes, and snippets.

View xaxim's full-sized avatar

Carlos Lima xaxim

View GitHub Profile
@calimaborges
calimaborges / readme.md
Last active March 9, 2016 04:46
PHP + Laravel + Mac Configurations

PHP

Diretório onde será instalado: /usr/local/php5-*

Referência: http://php-osx.liip.ch/

Comando:

curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6
@alexkirsz
alexkirsz / sixth-sense.js
Created May 23, 2016 18:56
Core hook of the Facebook Sixth Sense Chrome extension
function getUserId(fbid) {
return fbid.split(':')[1];
}
requireLazy(
['MercuryTypingReceiver', 'MercuryThreads', 'ShortProfiles'],
(MercuryTypingReceiver, MercuryThreads, ShortProfiles) => {
MercuryTypingReceiver
.get()
{
"auto_complete_commit_on_tab": true,
"color_scheme": "Packages/Oceanic Next Color Scheme/Oceanic Next.tmTheme",
"draw_white_space": "all",
"font_face": "Fira Mono",
"font_size": 20,
"tab_size": 2,
"theme": "Brogrammer.sublime-theme",
"translate_tabs_to_spaces": true,
"trim_automatic_white_space": true,
@nepsilon
nepsilon / 5-ways-to-check-if-a-string-contains-a-substring-in-avascript.md
Last active May 28, 2024 22:27
5 ways to check if a string contains a substring in Javascript — First published in fullweb.io issue #89

5 ways to check if a string contains a substring in Javascript

1. ES6 .includes():

var S = "fullweb";
S.includes("web");

2. RegExp .search():

@R3V1Z3
R3V1Z3 / install-kitty.sh
Last active May 4, 2022 10:08
Installer script for Kitty terminal on elementary OS, or Ubuntu derivatives in general
#!/usr/bin/env bash
# ensure freetype is updated, important to avoid error:
# undefined symbol: FT_Get_Var_Blend_Coordinates
sudo add-apt-repository ppa:glasen/freetype2
sudo apt update && sudo apt install freetype2-demos
# kitty installer script from https://sw.kovidgoyal.net/kitty/binary.html#manually-installing
curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin