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
| #include <stdint.h> | |
| void stroke(void *srcBmp, void *dstBmp, size_t width, size_t height) | |
| { | |
| for (size_t x = 0; x < width; x++) | |
| { | |
| for (size_t y = 0; y < height; y++) | |
| { | |
| uint32_t *src = (uint32_t *)srcBmp + y * width; | |
| uint32_t currPixel = src[x]; |
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
| /** | |
| * SyntaxHighlighter | |
| * http://alexgorbatchev.com/ | |
| * | |
| * SyntaxHighlighter is donationware. If you are using it, please donate. | |
| * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate | |
| * | |
| * @version | |
| * 2.0.320 (May 03 2009) | |
| * |
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
| #include <initguid.h> | |
| #include <Windows.h> | |
| #include <comutil.h> | |
| #include "..\inc\nt.h" | |
| #include "..\inc\lxssmanager.h" | |
| #include "..\inc\adss.h" | |
| #ifndef DISABLE_NEWLINE_AUTO_RETURN | |
| #define DISABLE_NEWLINE_AUTO_RETURN 0x08 | |
| #endif |
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
| #!/bin/sh | |
| # Give a r\w permissions for "nobody" user | |
| find /opt/share/znc/ -type f | xargs chmod 666 | |
| find /opt/share/znc/ -type d | xargs chmod 777 | |
| # Add droproot to znc.conf | |
| CONF=/opt/share/znc/configs/znc.conf | |
| grep -Fq "LoadModule = droproot" $CONF || echo "LoadModule = droproot nobody nogroup" >> $CONF |
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 python | |
| # -*- coding: utf-8 -*- | |
| # pylint: disable=I0011,C0111,C0103 | |
| from __future__ import print_function | |
| import threading | |
| import telepot | |
| from telepot.namedtuple import InlineQueryResultArticle, InputTextMessageContent | |
| from goslate import Goslate |
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
| import sys | |
| from os import path | |
| import re | |
| import polib | |
| def msg2po(msgfile, pofile): | |
| with open(msgfile, 'rb') as f: | |
| messages = f.read() | |
| po = polib.POFile() |
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
| #!/bin/sh | |
| cookie="your cookie" | |
| servers="cccat.club cccat.pw cccat.pro" | |
| set -- $servers | |
| while [ -n "$1" ]; do | |
| logger -t CCCATSIGN Checking in $1. | |
| response=$(wget -q -O - --header "Cookie: $cookie" https://$1/user/_checkin.php 2>&1) |
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
| #!/bin/sh | |
| [ "$1" = "" ] && exit 1 | |
| API_KEY="" | |
| SECRET_KEY="" | |
| DOMAIN="" | |
| HOST="" | |
| IP="$1" |
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
| import _vcmp | |
| from _vcmp import functions | |
| import irc.bot | |
| class TestBot(irc.bot.SingleServerIRCBot): | |
| def __init__(self, channel, nickname, server, port=6667): | |
| irc.bot.SingleServerIRCBot.__init__(self, [(server, port)], nickname, nickname) | |
| self.channel = channel |
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
| [void][System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | |
| Add-Type -TypeDefinition @" | |
| using System; | |
| using System.Drawing; | |
| using System.Runtime.InteropServices; | |
| namespace System { | |
| public class IconExtractor { | |
| public static Icon Extract(string file, int number, bool largeIcon) { | |
| IntPtr large; |
OlderNewer