Skip to content

Instantly share code, notes, and snippets.

@Zren
Zren / AnnotatedNodeObject.java
Created July 10, 2012 06:37
Annotated Fields for Serialization
package ca.xshade.bukkit.util.config;
import org.bukkit.util.Vector;
public class AnnotatedNodeObject {
@Node(node = "testBlarg")
String test;
@Node(node = "vector")
Vector vector;
@echo off
@set source_dir=C:\dev\quassel
@set build_dir=c:\dev\quassel-build
@REM -----------
@REM Directories
@REM -----------
@if "%PROGRAMFILES(X86)%" == "" (
@Zren
Zren / codejamutils.py
Last active December 16, 2015 04:19
Code Jam Utils
# Code Jam Utils
# Can be found on Github's Gist at:
# https://gist.github.com/Zren/5376385
from itertools import repeat
import logging
import json
import functools
import os
@Zren
Zren / gist:5946183
Last active September 20, 2017 13:30
HexChat Text Events
{
"Add Notify": {
"args": [
"Nickname",
"Server Name",
"Network"
],
"msg": "%C18*%O$t%C18$1%O added to notify list.",
"type": ""
},
@Zren
Zren / gist:5992833
Last active December 19, 2015 17:39
Steam Market: Trading Card Prices
Foils (583)
49.99 Frog Anodyne
46.00 Blaster Tower Anomaly 2
39.99 Slug Toki Tori 2+
34.75 Jetpack Monkey! Gun Monkeys
34.75 Gun Monkey Gun Monkeys
31.63 Akamoto Lives Skulls of the Shogun
30.55 Explorer Monkey Gun Monkeys
diff --git a/src/qtui/bufferwidget.cpp b/src/qtui/bufferwidget.cpp
index d632420..b6400f0 100644
--- a/src/qtui/bufferwidget.cpp
+++ b/src/qtui/bufferwidget.cpp
@@ -243,22 +243,32 @@ void BufferWidget::currentChanged(const QModelIndex &current, const QModelIndex
// we need to hide the marker line if it's already/still at the bottom of the view (and not scrolled up)
ChatView *curView = qobject_cast<ChatView *>(ui.stackedWidget->currentWidget());
- if (curView) {
- BufferId curBufferId = current.data(NetworkModel::BufferIdRole).value<BufferId>();
diff --git a/src/qtui/bufferwidget.cpp b/src/qtui/bufferwidget.cpp
index d632420..124a1d8 100644
--- a/src/qtui/bufferwidget.cpp
+++ b/src/qtui/bufferwidget.cpp
@@ -40,7 +40,8 @@
BufferWidget::BufferWidget(QWidget *parent)
: AbstractBufferContainer(parent),
_chatViewSearchController(new ChatViewSearchController(this)),
- _autoMarkerLine(true)
+ _autoMarkerLine(true),
@Zren
Zren / WireShark-HTTP.py
Last active August 29, 2015 13:56
Wireshark: Log HTTP
import subprocess
#Filter
wireshark_filter = "http"
#Command
wireshark_cmd = [
r"C:\Program Files\Wireshark\wireshark.exe",
"-k", # Start monitoring immediately
"-i", r"\Device\NPF_{5F5BB5A9-231F-4233-9685-DD91DB350762}", # (Wireless Network Connection) from `wireshark.exe -D`

GreasyFork

Install

Linux

sudo apt-get ruby libmysqlclient-dev libsqlite3-dev mysql-server-5.6
gem install bundler
sudo gem install therubyracer
sudo gem install libv8