Skip to content

Instantly share code, notes, and snippets.

View truelecter's full-sized avatar
😶‍🌫️

truelecter truelecter

😶‍🌫️
View GitHub Profile

Keybase proof

I hereby claim:

  • I am truelecter on github.
  • I am truelecter (https://keybase.io/truelecter) on keybase.
  • I have a public key ASCNYPmv7Vm_mWxm_lcv7KMcfKoj_upiSULGjSfX5atp5Ao

To claim this, I am signing this object:

@truelecter
truelecter / Kate.patch
Created September 30, 2017 20:08
Kate.patch
diff -Naur Kate/smali/com/perm/kate/api/Api.smali Kate/smali/com/perm/kate/api/Api.smali
--- Kate/smali/com/perm/kate/api/Api.smali 2017-08-07 01:21:03.380732100 +0300
+++ Kate/smali/com/perm/kate/api/Api.smali 2017-08-07 01:00:03.362529200 +0300
@@ -505,7 +505,7 @@
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
- const-string v2, "https://api.vk.com/method/"
+ const-string v2, "https://vk-api-proxy.xtrafrancyz.net/method/"
@truelecter
truelecter / a
Last active September 10, 2017 14:50
Swagger test configuration
{"swagger":"2.0","info":{"version":"v1","title":"Discord Emoji Collector api"},"host":"localhost:9000","schemes":["https"],"paths":{"/api/Emojis":{"get":{"tags":["Emojis"],"summary":"Get known emojis list","operationId":"Emojis_GetEmojis","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"page","in":"query","required":false,"type":"integer","format":"int32","default":1},{"name":"limit","in":"query","required":false,"type":"integer","format":"int32","default":100}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/DiscordEmojiCollector.SelfHost.Controllers.EmojisController.ListedEmojiDto"}},"examples":[{"id":314489295014723585,"name":"nb3Meh","managed":false,"public":false,"serverId":293374085407178753},{"id":323497592348394388,"name":"idkidk","managed":true,"public":false,"serverId":198402934589340595},{"id":334825482820255765,"name":":GabrielThink:","managed":true,"public":true,"serverId":194170124859736065}]}}}},"/api/Emojis/{id}":{"
var MY_ID = "";
var API_BASE = "https://discordapp.com/api";
var EMOJI_PICKER_PATH = "#app-mount > div > div:nth-child(7)"; // may be needed to fix path in future
var ELEMENT_SCROLLER_WRAP = '<div class="scroller-wrap"><div class="scroller"></div></div>';
var ELEMENT_SEARCH_INPUT = '<input type="text" placeholder="Find the perfect emoji" value="">';
var ELEMENT_SERVER_EMOJI_LIST = '<span class="server-emojis"><div class="category">server.name</div></span>';
var ELEMENT_SERVER_EMOJI_LIST_ROW = '<div class="row"></div>';
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:simpleType name="height">
<xs:restriction base="xs:positiveInteger">
<xs:minInclusive value="55"/>
<xs:maxInclusive value="280"/>
</xs:restriction>
</xs:simpleType>
import org.w3c.dom.*;
import org.xml.sax.SAXException;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerConfigurationException;
import javax.xml.transform.TransformerFactory;
import javax.xml.xpath.XPath;
.typeahead,
.tt-query,
.tt-hint {
width: 396px;
height: 30px;
padding: 8px 12px;
font-size: 24px;
line-height: 30px;
border: 2px solid #ccc;
-webkit-border-radius: 8px;
<!DOCTYPE html >
<html>
<head>
<title>UsicMoney</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
</head>
<body>
<form name="addForm" action="add.php" method="post">
<table>
<?
<!DOCTYPE html >
<html>
<head>
<title>Selection</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
</head>
<body>
<?
$link = mysql_connect('mysql.hostinger.ru','u885629350_roooo','123456');
mysql_select_db('u885629350_usic');
<html>
<head>
<title>Status</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
</head>
<body>
<a href="index.php">return</a>
<p></p>
<?
$link = mysql_connect('mysql.hostinger.ru','u885629350_roooo','123456');