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

MTA:SA on macOS instructions

This does not work on macOS Catalina.

macOS Catalina removes support for 32bit software. A 64bit version of Wine does exist, but it's not easy to make 32bit software run inside 64bit Wine — at least not on macOS.

Other options include:


Notes on the first session (the big one)


People grouped up the following services into one:

  • Card services
  • change your password
  • set up your email account
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 / 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 / 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;
qaisjp / qaisjp-robbynew.zsh-theme
Last active Nov 11, 2019
The zsh theme that I use, based on robbyrussell. I was very creative when I hopped over to zsh, and named it "robbynew".
View qaisjp-robbynew.zsh-theme
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )"
# You may choose to remove %n@ vv here!
PROMPT='%{$fg_bold[green]%}%n@%m:%{$fg[cyan]%} %~%{$reset_color%} $(git_prompt_info)
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗"
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