Skip to content

Instantly share code, notes, and snippets.

@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created Nov 24, 2020
teamviewer v15.12.4 - Passed - Package Tests Results
View 1.RegistrySnapshot.xml
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-1953236517-242735908-2433092285-500</user>
<keys>
<key installerType="Unknown" displayName="TeamViewer" displayVersion="15.12.4">
<RegistryView>Registry32</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TeamViewer</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[C:\Program Files (x86)\TeamViewer]]></InstallLocation>
<UninstallString><![CDATA["C:\Program Files (x86)\TeamViewer\uninstall.exe"]]></UninstallString>
@KRBM
KRBM / integral.py
Created Nov 24, 2020
Medium integral
View integral.py
def integral(self, lower, upper, precision=10000):
if lower > upper:
lower, upper = upper, lower
self.sign = -1
number_of_points = (upper - lower) * precision
xs = np.linspace(lower, upper, int(number_of_points))
integral = 0
super_sum = 0
sub_sum = 0
for index in tqdm(range(len(xs) - 1)):
View IStrategy.java
public interface IStrategy {
List<Route> getRoutes(String source, String destination);
}
@pixelbreton
pixelbreton / .bash_profile
Created Nov 24, 2020
Java Home environment Variable on Linux
View .bash_profile
export JAVA_HOME=/path/to/java
View i11.r
# Visualising the actual values vs predicted values
compare_df <- data.frame(
actual=my.test,
xgb_n=yhat.xgb,
xgb_tuned=yhat2.xgb
)
# Actual vs predicted values (default parameter values)
library(scales)
ggplot(compare_df) +
View bpp.py
def batch_pairwise_sqdist(x: T.Tensor, y: T.Tensor, c_code=cuda_ext_available):
"""
Calculates the pair-wise square distance between two sets of points.
To get the Euclidean distance, explicit square root needs to be applied
to the output.
:param x:
a tensor of shape ``(m, nx, d)`` or ``(nx, d)``.
If the tensor dimension is 2, the tensor batch dim is broadcasted.
:param y:
@vavrecan
vavrecan / server
Created Nov 24, 2020
Server setup 2020
View server
/etc/security/limits.conf
#<user> <type> <item> <value>
* soft nofile 1048576
* hard nofile 1048576
root soft nofile 1048576
root hard nofile 1048576
/etc/sysctl.conf
net.ipv4.ip_local_port_range = 12000 65535
View dedikaltathato-konyvek.sql
SELECT DISTINCT t.id, t.cim, GROUP_CONCAT(DISTINCT sz.nev SEPARATOR ', ')
FROM termek_szerzo tsz
LEFT JOIN termek t ON t.id = tsz.termek_id
LEFT JOIN szerzo sz ON sz.id = tsz.szerzo_id
WHERE tsz.szerzo_id IN(112, 20, 72, 584, 1158, 1023, 1242, 80, 28, 64, 1403, 1522, 60, 113)
AND t.tt_id = 1
AND t.rendelheto = 1
AND t.kiado_id = 7
GROUP BY t.id
ORDER BY t.cim
@tuktukvlad
tuktukvlad / ajaxListener.js
Created Nov 24, 2020 — forked from icodejs/ajaxListener.js
JS: Listen to ajax calls from Javascript
View ajaxListener.js
var open = window.XMLHttpRequest.prototype.open,
send = window.XMLHttpRequest.prototype.send,
onReadyStateChange;
function openReplacement(method, url, async, user, password) {
var syncMode = async !== false ? 'async' : 'sync';
console.warn(
'Preparing ' +
syncMode +
' HTTP request : ' +
View updatingesxi.sh
esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-6.7.0-20190802001-standard
# https://esxi-patches.v-front.de/
You can’t perform that action at this time.