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
package ua.in.stasikos.worldsim; | |
import ua.in.stasikos.worldsim.universe.celestials.RockyBody; | |
import ua.in.stasikos.worldsim.util.Vector3D; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
public class GeoSubdivisionHelper { |
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
#!/usr/bin/perl -w | |
use strict; | |
use JSON::RPC::Client; | |
use Data::Dumper; | |
my $url = "https://myzabbixhost.god.org/api_jsonrpc.php"; | |
my $user = 'apiuser'; | |
my $password = 'apipassword'; | |
sub authenticate { |
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
#!/usr/bin/perl -w | |
use XML::Simple; | |
use Data::Dumper; | |
use JSON::RPC::Client; | |
use strict; | |
use zabbix; | |
my $cibfile='/var/lib/pacemaker/cib/cib.xml'; |
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
0eNrtneuuHEd2rF9lwN/sQa5LXkpvcnBwIEgzhE1YQwoSZXhg9LsfccRNymZV5srISJJS85chjZW7+lJdmSsivvjvZ9//8MuLH396+erNt9+/fv0fz7757w//5udn3/zf3/3j2//t5d9ev/rtX//88t9efffD23/35p8/vnj2zbOXb17849nzZ6+++8fbf3rxXz/+9OLnn29vfvru1c8/vv7pze37Fz+8eXZ//uzlq7+/+K9n38j9/z1/9uLVm5dvXr74bcV//cM/v331yz++f/HTr/8Po7WeP/vx9c+//uevX729il+XTM+f/fPZNze5359/tJqCq50uZuBi6f72Rf/rjfrmd+/r82c/fPfrf/brv5Nv5dvvv/vhu1d/+/XPPH/2ny9++vlfaxR3rWKptfThHUxvr2zbp/M8vMjPP/7w8s2bXy/4w3+uX/qHe5POcnb9Ej9eKP01P322H6/k6IXJ+Jui8W+KPNQ35emz1dhXpfPZyrvP9kb6Fbhp58rmvyvvv8PPn/395U8v/vbb/1RO1s7o7XZ6pYV681b0A07/83XrydoN+bRPr/JAP+zT3wVJ4Id9vpqAq/2vb46frT1zw7x7yv01jz8ZMfRjP/1KiqOfz/lyGXxHdXwvCnr7fLT26Alh8SeErj8hTn7cZ54Nlw+YHU8InXpCrPxWGvfxBT8kTlfLvIdhmfmZ6K5Uabuvhu/5R7eWx28te6zN17tby6i3lnFvLaPeWnan7Lh6b1zh/sRVeDm5r+6y3t/8GttmoT8jJ1us3o/bbyt9tHUpse3W9crSfbmi+LZyvHWDDyiRfaGv7wsLZ+d1i29mC3hXpsCFV+qWvoFXen4vHJwDwtnr1oRsInT8YSl88rfx8UPRR1FkbQN+H863og5+C86fvuihxsb7oRzfD/nXo8bC3NKmzhqdO1G7T0+nHoIy9xBUoP0GafjU+zwb9XR2INsMwl5IJ57Wgn6DE2s7ZOGHvwF7y8QaNkl4H5GRb/f5x17wodh4gFfRzyqyeIN |
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
0eNrUvdtuJEfSpfsuvK4U/HzQxbzCADMDzEWjUWCRKSnRLJKbB6EbDb37Tp6SSdI9Yn3GKm3sm79/SYyVFmZu7ivMzM3+e/Lt4n57fbO7vPv67erqXye//vf139ye/PqPo398+G+7s6vLp399u/v98vTi4d/d/ed6e/Lrye5u+/3ky8nl6feHf7o53V2c/PXlZHd5vv33ya/+ry+rj/x2enu3ubs5vby9vrq523zbXtwdIYS//vnlZHt5t7vbbZ8kePyH/3y9vP/+bXuz/4k3v715/rEvJ9dXt/tnri4ffnePs8npl/zl5D/7/y/WX/L+B853N9uzp78ID2K+ww1vcc/+ON1dztFTZehRkzo1BpuI0FQj+QB+uzfX7vc/7jaP5v6ojeqeccs6apFRS9NRq45adNSmoyYdteuoQUf1TocF5vJehs3AXv7V3c7ub/7cnk9B4zPouwVbRqBRlxWsAp90WLAMvO5fmawD3cEyWQe6hyWyDnQXS8Rkuo8lYLKg+1gCJgu6jyVgshBk2AhMFnQvi8BkQfeySEyme1kkJtO9LBKT6V4WiMl0LwvEZLqXBWCyqHtZACaLupcFYLKoe5kHJou6l3lgsqh7mScm073ME5PpXuaJyXQvIxYDbBGggpNMR03AxQCq7GHAWEn2LyKp7F1EqbJvAfsn2bPAUk2yXxG3SrJbkT0gyW5FNqwkuxXZXbPsVuQoyLJbkXMr634FrJVlxyKMIMueRehLll2LcK0s+xYhhln2LcJis+xbhHJn2bfI90GRfYt8zBTZt8iXV5F9i3wmFv3QAtYqsm+RD/Ai+xaJFpSiRY1mQaM4wpQ9i4RLiuxZJLZTZM8igagqexaJmlXZs0jcsMqeRYKcVfYsEpGtOh8k1pI9i0S6q3xqoai87Fskg1AbStXk11RNfJ/28CP4zqPI4S1sHeUSuJeFdWGbRxmgBVWM9sZ25G3fTy8uNhen369H37P+gLv///4aIUU13t+fgEIXXj5p4sV18bKGtA5UJKDQVoG |
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
import com.fasterxml.jackson.core.JsonFactory; | |
import com.fasterxml.jackson.core.JsonParser; | |
import com.fasterxml.jackson.core.JsonToken; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.net.HttpURLConnection; | |
import java.net.MalformedURLException; | |
import java.net.URL; | |
import java.util.Map; |
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
#!/usr/bin/perl -w | |
use Data::Dumper; | |
my $cItem = $ARGV[0]; | |
my $cCount = $ARGV[1]; | |
open(DATA, 'calc.dat'); | |
my %recipes; |
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
public class ImageUtils { | |
/** | |
* Convert color temperature in Kelvins to RGB color for AWT | |
* @param temperature | |
* @return ready to use color object | |
*/ | |
public static Color getRGBFromK(int temperature) { | |
// Used this: https://gist.github.com/paulkaplan/5184275 at the beginning | |
// based on http://stackoverflow.com/questions/7229895/display-temperature-as-a-color-with-c | |
// this answer: http://stackoverflow.com/a/24856307 |