π΅π°
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
| Dec 18 12:55:48 vpn pptpd[3147]: CTRL: Client 89.100.74.80 control connection started | |
| Dec 18 12:55:49 vpn pptpd[3147]: CTRL: Starting call (launching pppd, opening GRE)Dec 18 12:55:49 vpn pppd[3148]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded. | |
| Dec 18 12:55:49 vpn pppd[3148]: pppd 2.4.7 started by root, uid 0 | |
| Dec 18 12:55:49 vpn pppd[3148]: Using interface ppp16 | |
| Dec 18 12:55:49 vpn pppd[3148]: Connect: ppp16 <--> /dev/pts/16 | |
| Dec 18 12:55:49 vpn pptpd[3147]: GRE: Bad checksum from pppd. | |
| Dec 18 12:55:52 vpn pppd[3148]: peer from calling number 89.100.74.80 authorized | |
| Dec 18 12:55:52 vpn pppd[3148]: MPPE 128-bit stateless compression enabled | |
| Dec 18 12:55:52 vpn pppd[3148]: local IP address 192.168.80.1 | |
| Dec 18 12:55:52 vpn pppd[3148]: remote IP address 192.168.80.120 |
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
| [%EdgeCommander.ThreeScraper.SimLogs{__meta__: #Ecto.Schema.Metadata<:loaded, "sim_logs">, | |
| addon: "60GB Broadband", allowance: "61,440.00Β MB", | |
| datetime: ~N[2017-09-28 05:50:04.783484], id: 607, name: "User 5Β Sim", | |
| number: "0864667951", volume_used: "18,977.80Β MB"}, | |
| %EdgeCommander.ThreeScraper.SimLogs{__meta__: #Ecto.Schema.Metadata<:loaded, "sim_logs">, | |
| addon: "60GB Broadband", allowance: "61,440.00Β MB", | |
| datetime: ~N[2017-10-10 17:09:19.712257], id: 645, name: "User 5Β Sim", | |
| number: "0864667951", volume_used: "45,746.76Β MB"}, | |
| %EdgeCommander.ThreeScraper.SimLogs{__meta__: #Ecto.Schema.Metadata<:loaded, "sim_logs">, | |
| addon: "60GB Broadband", allowance: "61,440.00Β MB", |
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
| 14524] Puma starting in cluster mode... | |
| [14524] * Version 3.6.0 (ruby 2.3.0-p0), codename: Sleepy Sunday Serenity | |
| [14524] * Min threads: 16, max threads: 16 | |
| [14524] * Environment: production | |
| [14524] * Process workers: 2 | |
| [14524] * Preloading application | |
| [14524] * Listening on tcp://0.0.0.0:3000 | |
| [14524] Use Ctrl-C to stop | |
| [14524] - Worker 0 (pid: 14655) booted, phase: 0 | |
| [14524] - Worker 1 (pid: 14662) booted, phase: 0 |
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
| description "Puma Background Worker" | |
| # no "start on", we don't want to automatically start | |
| stop on (stopping puma-manager or runlevel [06]) | |
| # change apps to match your deployment user if you want to use this as a less privileged user (recommended!) | |
| setuid root | |
| setgid root | |
| respawn |
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
| #Easy one and available on stackoverflow | |
| class Array | |
| def flattify | |
| each_with_object([]) do |element, flattened| | |
| flattened.push *(element.is_a?(Array) ? element.flattify : element) | |
| end | |
| end | |
| end | |
| [1,2,3,4,[1,2,3,4],5].flattify # => [1, 2, 3, 4, 1, 2, 3, 4, 5] |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Visavail.js Example: Responsive Layout With Bootstrap</title> | |
| <!-- Bootstrap --> |
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
| As you requested.. | |
| from = "2016-10-24 00:00:00+00" to "2016-10-24 00:00:00+00".. and the time was "Monday":["9:0-18:0"].. | |
| You set the interval to 1800(30 minutes.) | |
| It should be getting pictures for 9 hours with 30 minutes range which were going to be 18.. | |
| Results it got 13 Images.. |
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
| #!/usr/bin/env sh | |
| ### Download and install megaraidcli for Ubuntu; | |
| FILE="megacli_8.07.14.orig.tar.gz" | |
| LINK="http://hwraid.le-vert.net/ubuntu/sources/$FILE" | |
| wget $LINK -O /tmp/$FILE | |
| ( | |
| cd /tmp |
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
| users[index]["created_at"] ? DateTime.parse(users[index]["created_at"]).strftime("%A, %d %b %Y %l:%M %p") : "", | |
| users[index]["confirmed_at"] ? DateTime.parse(users[index]["confirmed_at"]).strftime("%A, %d %b %Y %l:%M %p") : "", | |
| users[index]["last_login_at"] ? DateTime.parse(users[index]["last_login_at"]).strftime("%A, %d %b %Y %l:%M %p") : "", |
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
| rror] #PID<0.806.0> running EvercamMedia.Endpoint terminated | |
| Server: localhost:4000 (http) | |
| Request: GET /v1/public/cameras?within_distance=26571.402417023513&is_near_to=dublin&geojson=true | |
| ** (exit) an exception was raised: | |
| ** (FunctionClauseError) no function clause matching in Plug.Conn.resp/3 | |
| (plug) lib/plug/conn.ex:455: Plug.Conn.resp(%Plug.Conn{adapter: {Plug.Adapters.Cowboy.Conn, :...}, assigns: %{geojson_cameras: [%Camera{__meta__: #Ecto.Schema.Metadata<:loaded, "cameras">, access_rights: #Ecto.Association.NotLoaded<association :access_rights is not loaded>, cloud_recordings: #Ecto.Association.NotLoaded<association :cloud_recordings is not loaded>, config: %{"auth" => %{"basic" => %{"password" => "aoife", "username" => "aoifemcd"}}, "external_host" => "www.nci.ie", "external_http_port" => 80, "external_rtsp_port" => "", "snapshots" => %{"jpg" => "/ispy/cam2/webcam2.jpg"}}, created_at: #Ecto.DateTime<2014-10-02 13:09:05.795039>, discoverable: true, exid: "gardiner2", id: 3262, is_online: tru |