Skip to content

Instantly share code, notes, and snippets.

## Sublime Text 3 Serial key build is 3143
—– BEGIN LICENSE —–
TwitterInc
200 User License
EA7E-890007
1D77F72E 390CDD93 4DCBA022 FAF60790
61AA12C0 A37081C5 D0316412 4584D136
94D7F7D4 95BC8C1C 527DA828 560BB037
D1EDDD8C AE7B379F 50C9D69D B35179EF
/*==================================================
= Bootstrap 3 Media Queries =
==================================================*/
/*========== Mobile First Method ==========*/
/* Custom, iPhone Retina */
@media only screen and (min-width : 320px) {
sudo apt-get install language-pack-es language-pack-gnome-es language-pack-es-base language-pack-gnome-es-base
//js
function sticky_relocate() {
var window_top = jQuery(window).scrollTop() + 0;
var div_top = jQuery('#sticky-anchor').offset().top;
if (window_top > div_top)
jQuery('#navbar').addClass('sticky')
else
jQuery('#navbar').removeClass('sticky');
}
@zaqueo
zaqueo / gist:0f3e263ca6513cf37b559ef82dce6db9
Created September 23, 2018 20:24
Go to another page with a button click with ionic
html:
<ion-buttons>
<button ion-button (click)="goAnOtherPage()">Go an Other Page </button>
</ion-buttons>
OR
1 - /add the following to the file "/etc/apache2/apache2.conf "
<Directory /var/www/html/yourProjctRootDirectory >
Options Indexes FollowSymLinks
AllowOverride all
Require all granted
</Directory>
2 - restart your server : sudo service apache2 restart .
/ip address
add address=192.168.0.1/24 network=192.168.0.0 broadcast=192.168.0.255 interface=Local
add address=192.168.1.2/24 network=192.168.1.0 broadcast=192.168.1.255 interface=WAN1
add address=192.168.2.2/24 network=192.168.2.0 broadcast=192.168.2.255 interface=WAN2
/ip dns set allow-remote-requests=yes cache-max-ttl=1w cache-size=5000KiB max-udp-packet-size=512 servers=221.132.112.8,8.8.8.8
/ip firewall mangle
add chain=input in-interface=WAN1 action=mark-connection new-connection-mark=WAN1_conn
add chain=input in-interface=WAN2 action=mark-connection new-connection-mark=WAN2_conn
add chain=output connection-mark=WAN1_conn action=mark-routing new-routing-mark=to_WAN1
add chain=output connection-mark=WAN2_conn action=mark-routing new-routing-mark=to_WAN2
/interface bridge
add name=LAN
/interface ethernet
/ip pool
add name=pool1LAN ranges=192.168.0.5-192.168.0.250
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install libxslt1-dev libcurl3 libgeoip-dev python -y;
wget https://github.com/xtream-ui-org/xtream-ui-install/raw/master/install.py;
sudo python install.py