This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
*https://github.com/jackocnr/intl-tel-input | |
*https://bootstrap-tagsinput.github.io/bootstrap-tagsinput/examples/ | |
*/ | |
$('#send_sms_numbers').on('beforeItemAdd', function(event) { | |
// event.item: contains the item | |
// event.cancel: set to true to prevent the item getting added | |
// TR numbers startswith 90 | |
// we also delete 0 at the beginning for our convenience |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
noremap <Up> <NOP> | |
noremap <Down> <NOP> | |
noremap <Left> <NOP> | |
"disable hjkl | |
noremap <Right> <NOP> | |
"disable hjkl | |
" | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vim /etc/fstab | |
# Device Mountpoint FStype Options Dump Pass# | |
/dev/da0a / ufs rw 1 1 | |
tmpfs /usr/local/freeswitch/ramdisk tmpfs rw 0 0 *** add this line to your file | |
/dev/da0b none swap sw 0 0 | |
create ramdisk folder in freeswitch directory (mkdir ramdisk) | |
sudo mount -a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
< vh > | |
RewriteEngine On | |
RewriteCond %{HTTPS} off | |
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} | |
< /vh > | |
match and redirect | |
# NC means no case makes the case-intensitive | |
RewriteCond %{REQUEST_URI} ^/events [NC] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find -L . -name Makefile | xargs sed -i 's/find/replace/g' -> find file named Makefile and change text inside it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dir -> /etc/network/interfaces | |
eno -> ethernet connection | |
change iface inet eno1 dynamic to static | |
append | |
address xx.x.x.x | |
netmask x.x.x.x | |
gateway xx.x.x.x | |
service network restart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#django muti language | |
#add settings.py middleware | |
'django.middleware.locale.LocaleMiddleware', | |
#add settings.py | |
from django.utils.translation import ugettext_lazy as _ | |
LOCALE_PATHS = (os.path.join(BASE_DIR, "locale"),) | |
LANGUAGES = ( | |
('tr', _('Turkish')), | |
('en', _('English')), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
** Date time field -> https://github.com/monim67/django-bootstrap-datepicker-plus | |
** Datatables and Django -> https://pypi.org/project/django-datatables-view/ | |
** Forms.py Buttons and Feilds -> https://django-crispy-forms.readthedocs.io/en/latest/install.html | |
Context | |
*** -> dt_json - url for datatable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var utils; | |
var playerSelector = '.sm2-bar-ui'; | |
var players = window.sm2BarPlayers; | |
var Player = window.SM2BarPlayer; |