This file contains 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
// .git/config file example, update each project | |
[remote "origin"] | |
url = git@gitlab.com-CUSTOMUSER:repo-namespace/reponame.git | |
fetch = +refs/heads/*:refs/remotes/origin/* |
This script is a copy of https://marekbosman.com/site/automatic-update-of-cloudflare-ip-addresses-in-nginx/
wget https://gist.githubusercontent.com/AidasK/27aa5d6f918eca12d95427178b5aaa59/raw/e3ce185de43d89c237e081d3f56e5a79024b4115/cloudflare-update-ip-ranges.sh -P /usr/local/bin/
chmod +x /usr/local/bin/cloudflare-update-ip-ranges.sh
add include /etc/nginx/cloudflare;
this line to /etc/nginx/nginx.conf (above include /etc/nginx/conf.d/*.conf;
)
This file contains 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
[ | |
{ "keys": ["super+d"], "command": "duplicate_line" }, | |
{ "keys": ["super+delete"], "command": "delete_line" }, | |
{ "keys": ["shift+alt+up"], "command": "swap_line_up" }, | |
{ "keys": ["shift+alt+down"], "command": "swap_line_down" }, | |
{ "keys": ["home"], "command": "move_to", "args": {"to": "bol", "extend": false} }, | |
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol", "extend": false} } | |
] |
This file contains 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
class Coordinates | |
{ | |
/** | |
* @param array $c1 Expected [lat, lon] EPSG:4326 | |
* @param array $c2 Expected [lat, lon] EPSG:4326 | |
* @return float|int distance in meters | |
*/ | |
public function calculateDistance($c1, $c2) | |
{ |
This file contains 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
#!/bin/bash | |
DIR=$(basename `pwd` | tr "[:upper:]" "[:lower:]") | |
CONTAINER="${DIR}""_php_1" | |
# support for whitespace in arg list | |
CSMOPTS=() | |
whitespace="[[:space:]]" | |
for i in "$@" | |
do |
This file contains 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
[ ]Pasai | |
[ ]pinigai | |
[ ]draudimas | |
[ ]EU draudimo korteles | |
[ ]credit card | |
[ ]sutartys | |
[ ]pinigine | |
Rubai | |
[ ]termo apatiniai |
This file contains 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
/*global angular */ | |
angular.module('app.directives').directive('appOrderByInit', function () { | |
return { | |
scope: true, | |
controller: ['$scope', '$parse', '$attrs', function ($scope, $parse, $attrs) { | |
var defaultOrder = $parse($attrs.appOrderDefault)($scope) || []; | |
/** | |
* @name $appOrderBy | |
*/ |
This file contains 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
#!/bin/bash | |
for arg in $* | |
do | |
if [[ $arg =~ ^\-e\=.* ]]; then | |
force=${arg:3} | |
echo "FORCE $force" | |
fi | |
done; | |
for file in $* |
This file contains 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
Here is a simple jQuery plugin to make a table header fixed on top when window is scrolled. | |
Using the code from twitter bootstrap documentation page, this code is customized for table header. | |
Create the table with following layout - | |
<table class="table-fixed-header"> | |
<thead class="header"> | |
<tr> | |
<th>Column 1</th> | |
<th>Column 2</th> | |
<th>Column 3</th> |
NewerOlder