View elasticsearch.yml
# ======================== Elasticsearch Configuration ========================= | |
# | |
# NOTE: Elasticsearch comes with reasonable defaults for most settings. | |
# Before you set out to tweak and tune the configuration, make sure you | |
# understand what are you trying to accomplish and the consequences. | |
# | |
# The primary way of configuring a node is via this file. This template lists | |
# the most important settings you may want to configure for a production cluster. | |
# | |
# Please consult the documentation for further information on configuration options: |
View server.conf
############################ | |
# GRAYLOG CONFIGURATION FILE | |
############################ | |
# | |
# This is the Graylog configuration file. The file has to use ISO 8859-1/Latin-1 character encoding. | |
# Characters that cannot be directly represented in this encoding can be written using Unicode escapes | |
# as defined in https://docs.oracle.com/javase/specs/jls/se8/html/jls-3.html#jls-3.3, using the \u prefix. | |
# For example, \u002c. | |
# | |
# * Entries are generally expected to be a single line of the form, one of the following: |
View bash aliases
# Shortcuts | |
alias pbcopy='xclip -selection clipboard' | |
alias pbpaste='xclip -selection clipboard -o' | |
alias copyssh="pbcopy < $HOME/.ssh/id_rsa.pub" | |
alias shrug="echo '¯\_(ツ)_/¯' | pbcopy" | |
alias c="clear" | |
# Directories | |
alias gohome="cd $HOME/code" |
View Preferences.sublime-settings
// Place your settings in the file "Packages/User/Preferences.sublime-settings", | |
// which overrides the settings in here. | |
// | |
// Settings may also be placed in syntax-specific setting files, for | |
// example, in Packages/User/Python.sublime-settings for python files. | |
{ | |
// Sets the colors used within the text area | |
"color_scheme": "Monokai.sublime-color-scheme", | |
// Note that the font_face and font_size are overridden in the platform |
View deploy.php
<?php | |
/** | |
* deploy.php by Hayden Schiff (oxguy3) | |
* Available at https://gist.github.com/oxguy3/70ea582d951d4b0f78edec282a2bebf9 | |
* | |
* No rights reserved. Dedicated to public domain via CC0 1.0 Universal. | |
* See https://creativecommons.org/publicdomain/zero/1.0/ for terms. | |
*/ | |
// random string of characters; must match the "Secret" defined in your GitHub webhook |
View gist:305a66cee163827c4127516be176d0bb
$ /Library/Application\ Support/VMware\ Tools/vmware-resolutionSet 1366 768 | |
1366 = Width | |
768 = Height | |
Done. |
View LICENCE SUBLIME TEXT
## 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 ----- |
View backup-db.sh
#!/usr/bin/env bash | |
# Setup Dropbox Oauth Access Token | |
# https://www.dropbox.com/developers/apps | |
DROPBOX_ACCESS_TOKEN= | |
cd ~ | |
git clone https://github.com/andreafabrizi/Dropbox-Uploader.git |
View install.sh
# =================== YOUR DATA ======================== | |
SERVER_NAME="some-server-name" | |
SERVER_IP="111.111.11.11" | |
USER="someuser" | |
SUDO_PASSWORD="secret-password-one" | |
MYSQL_ROOT_PASSWORD="secret-password-two" |
View msisdn_regex.txt
# KE | |
SAFARICOM: "/(\+?254|0|^){1}[-. ]?[7]{1}([0-2]{1}[0-9]{1}|[9]{1}[0-2]{1})[0-9]{6}\z/" | |
AIRTEL: "/(\+254|0|^){1}[-. ]?[7]{1}([3]{1}[0-9]{1}|[8]{1}[5-9])[0-9]{6}\z/" | |
# TZ | |
TIGO: "/(\+?255|0|^){1}[-. ]?([7]{1}[1]{1}[2-9]{1}|[6]{1}[57]{1}[2-9]{1})[0-9]{6}\z/" |
NewerOlder