Skip to content

Instantly share code, notes, and snippets.

View Nicd's full-sized avatar

Mikko Ahlroth Nicd

View GitHub Profile
@Nicd
Nicd / #payday.log
Last active November 26, 2015 21:27
IRC logs from #payday @ QuakeNet regarding the group order
----
2014-11-24T15:32:58+0200 @Nicd but looks like we're going to have to wait since some of that stuff is only available january 2015
2015-05-04T15:06:18+0300 @Nicd ha, now the dozer bobblehead's ETA has been moved back to 15th of May
2015-05-04T15:06:23+0300 @Nicd but the suit shirts have been moved to June
2015-07-02T14:17:23+0300 @usvi Nicd: when did we order actually? I have lost trace
2015-07-02T14:18:44+0300 @Nicd november
<?php include "../includes/session_start.php"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Admin Overall</title>
<link rel="stylesheet" href="style/content.css" type="text/css" media="screen" />
<link rel= "stylesheet" type="text/css" href= "Styles/userscss.css" />
<link rel= "stylesheet" type="text/css" href= "Styles/sidebars.css" />
@Nicd
Nicd / blog.nytsoi.net
Created October 29, 2015 17:20
nginx configuration for HTTPS
server {
listen 80;
listen [::]:80;
server_name blog.nytsoi.net;
location / {
rewrite ^ https://$server_name$request_uri permanent;
}
}
@Nicd
Nicd / gulpfile.js
Last active August 29, 2015 14:21
// Node modules
var fs = require('fs'), vm = require('vm'), chalk = require('chalk');
// Gulp and plugins
var gulp = require('gulp'), concat = require('gulp-concat'),
replace = require('gulp-replace'), uglify = require('gulp-uglify');
// Gulp minify for smallinizing our CSS
var minify = require('gulp-minify-css');
@Nicd
Nicd / weechat_nicd.service
Created April 28, 2015 09:22
Systemd service autostarting WeeChat in a tmux session on boot
[Unit]
Description=WeeChat in a tmux server for nicd
[Service]
Type=forking
User=nicd
ExecStart=/home/weechat_start
[Install]
WantedBy=multi-user.target
get_number = fn (text) ->
case Regex.run(~r/\w (\d+)/, text) do
[_, number]
-> number
_
-> nil
end
end
"10" = _number = get_number.("a 10")
@Nicd
Nicd / grep.py.diff
Created January 31, 2015 13:59
Fix WeeChat script grep.py to expand home dirs in logfile path
diff --git a/python/grep.py b/python/grep.py
index fd9ca2b..4fd5c64 100644
--- a/python/grep.py
+++ b/python/grep.py
@@ -65,6 +65,12 @@
#
#
# History:
+#
+# 2015-01-31, Nicd-
@Nicd
Nicd / gist:96f004461f05f63c9171
Created January 29, 2015 07:45
Jolla msyncd log
tammi 29 09:44:13 Jolla google-contacts-client[19913]: [W] GoogleTwoWayContactSyncAdaptor::contactsFinishedHandler:381 - void GoogleTwoWayContactSyncAdaptor::contactsFinishedHandler() "Google contact sync with account 3 got remote changes: a/m: 352 r: 0."
tammi 29 09:44:14 Jolla google-contacts-client[19913]: [W] {anonymous}::semaphoreError:57 - "Unable to decrement semaphore /tmp/qtcontacts-sqlite-semaphore: Resource temporarily unavailable (11)"
tammi 29 09:44:14 Jolla google-contacts-client[19913]: [W] SharedMemoryManager::table:316 - "Failed to lock key memory region for qtcontacts-sqlite"
tammi 29 09:44:16 Jolla google-contacts-client[19913]: [W] enforceDetailConstraints:2545 - "Invalid detail type: 0"
tammi 29 09:44:16 Jolla google-contacts-client[19913]: [W] ContactWriter::save:2414 - "Error updating contact sql-1353: 3"
tammi 29 09:44:16 Jolla google-contacts-client[19913]: [W] enforceDetailConstraints:2545 - "Invalid detail type: 0"
tammi 29 09:44:16 Jolla google-contacts-client[19913]: [W] C
@Nicd
Nicd / moment.js
Created November 24, 2014 11:40
New, smaller patch to use moment.js in Qt 5.2
.pragma library
//! moment.js
//! version : 2.8.4
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
var moment = (function (undefined) {
/************************************
@Nicd
Nicd / nurina.ex
Created August 6, 2014 14:53
A URI parser written in Elixir pattern matching. Written in Elixir 0.10 so won't compile anymore (uses records)
defmodule Nurina do
defrecord Info,
scheme: nil,
hier: nil,
query: nil,
fragment: nil,
valid: true,
authority: nil,
path: nil,