Skip to content

Instantly share code, notes, and snippets.

why has the new github hidden statuses?

Qais Patankar qaisjp

why has the new github hidden statuses?
View GitHub Profile
qaisjp / gitlog.gitlog
Last active May 21, 2020
git log 1.5.7..master --format=oneline -- Client/mods/deathmatch/logic/lua Server/mods/deathmatch/logic/lua
View gitlog.gitlog
03b49141f96d01ba6086fa1facd9cddc0c22dc23 Add possibility of modifying dynamic objects behavior (#784)
0af85463c86ad3a6b9790f0ed74c274bafbd95ce Add isResourceProtected function (#1254)
0d548f3bba6f628c2e42e0de17b6783155711f26 Include fetchRemote downloads from stopped/restarted resources in getRemoteRequests. Automatically cancel large fetchRemote downloads from stopped/restarted resources.
19eb2e670f823831ceb52c557a0f35127148aa57 Add functions to manipulate colshapes parameters (#1215)
273a87aa6cb276e65c471ff2e68f1f1ea44f9b5f Add async encode/decodeString (#1226)
302f51237d8945c0ecb192d714f487c60d1d4c98 downloadFile: downloading from another resource (#945)
32e4206dab2b441132a6e00f35658f8e6e9a2f59 Fix error case in engineFreeModel
360f49ce1bd840d22cf49f85438791ee2e148101 initial "engineResetModelLODDistance" implementation
364c3a1b34a778f22f68a93b9dfc8ab8ba404b98 Update argStream checking as per #821
3b2ed1caceacb84ad8635fab37fc0c0221d976c2 Fix node iteration & return errors on invalid XML string
View compsoc-2020-03-11.m
[19:59] qaisjp: note to self; stop testing in production
[20:09] Simon: a custom ircd could avoid sending any join/parts except to the main bot
[20:09] Simon: although for 1000 users it'd be better to use the s2s protocol
[20:10] Simon: which ideally needs a completely robust pretend server that doesn't do odd things
[20:10] qaisjp: I think that was our second idea wasn't it? Custom ircd?
[20:10] qaisjp: Or at least a second idea that was had for a different bridge
[20:11] qaisjp: What's the S2S protocol?
[20:11] qaisjp: Server to server
[20:11] Simon: it was the first idea but then I decided it would be easier to let you connect multiple times
View gist:50b0d8ab4833b77c5b9e0305f974f756
➜ ./suitup/
- 324 naked methods found
- 139 naked methods with non-asm found
- Completion: 57.10%
CODE File Method Context
qaisjp /
Last active Mar 8, 2020
go-discord-irc upload script
#!/usr/bin/env bash
# Usage: GOOS=linux go build && ssh discord.tardis ./ < go-discord-irc
set -u
set -e
echo "Copying file to \"$target\""
qaisjp /
Created Dec 28, 2019
simple flask app for password redirects
from flask import Flask, redirect
app = Flask(__name__)
def hello_world():
return 'Page with password form!'
urls = {
"googlepass": "",
"youtubepass": ""
qaisjp / ssl.c
Last active Dec 7, 2019
Do not delete - used in Better Informatics, Secure Programming, 2014 May
View ssl.c
static OSStatus
SSLVerifySignedServerKeyExchange(SSLContext * ctx,
bool isRsa, SSLBuffer signedParams,
uint8_t * signature, UInt16 signatureLen)
OSStatus err;
SSLBuffer hashOut, hashCtx, clientRandom, serverRandom;
SSLBuffer signedHashes;
uint8_t * dataToSign;
class Solution:
# Suitable ranges for:
# - HH is 00 to 23
# - MM is 00 to 59
def num_to_digits(self, n):
s = list(map(int, list(str(n))))
if n < 10:
return [0, s[0]]
return s

In the exam:

  • use git config --global color.ui auto
  • Remember /opt/agda/agda-stdlib-1.1 (the /opt/agda path can be derived from agda-mode locate)
  • grep --color=always -R "foldr" . | less -r
qaisjp / launch.json
Last active Oct 29, 2019
Computer Graphics - VS Code configuration
View launch.json
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit:
"version": "0.2.0",
"configurations": [
"name": "build and debug project",
"type": "cppdbg",
"request": "launch",
View AddReportLog.cpp
AddReportLog(1003, SString("CInstallManager::_ChangeToAdmin - exit(0) %s", ""));
AddReportLog(1041, SString("* Launch * pid:%d '%s' MTASAPath set from %s '%s'", dwProcessId, GetLaunchPathFilename().c_str(), GotPathFrom.c_str(),
AddReportLog(1044, SString("* End (0x%X)* pid:%d", iReturnCode, GetCurrentProcessId()));
AddReportLog(1060, SString("CInstallManager::Continue - return %s", *strCommandLineOut));
AddReportLog(1061, SString("CInstallManager::RestoreSequencerState %s", *strText));
AddReportLog(1062, SString("GetLauncherPathFilename %s", *strResult));
AddReportLog(1070, SString("CallFunction: %s", *strName));
AddReportLog(2005, SString("DoPollDownload: Downloaded %d bytes from %s", m_JobInfo.downloadBuffer.size(), m_strLastQueryURL.c_str()));
AddReportLog(2007, SString("DoPollDownload: Downloaded %s", m_JobInfo.strSaveLocation.c_str()));
AddReportLog(2050, SString("_InstallFiles: ok %s", ""));