Skip to content

Instantly share code, notes, and snippets.

View zabbix-checknow
#!/usr/bin/env bash
ZABBIX_URL="https://zabbix/"
ZABBIX_USER="user-with-at-least-admin-rights-and-rw-permission-for-all-hosts-it-should-be-able-to-update.-frontend-access-is-not-necessary."
ZABBIX_PASS="password"
IDS=$(printf '%s\n' "$@" | jq -R . | jq -sc .)
if [ ! "$@" ]; then
echo "$0 <item-id> <item-id> ..."
View AbstractCaptchaService.java
package com.central.user.service.impl;
import cn.jmfen.base.enums.ErrorCodeEnum;
import com.central.user.bo.CaptchaBaseBo;
import com.central.user.bo.CaptchaCheckBo;
import com.central.user.exceptions.PassportBizException;
import com.central.user.utils.ImageProcessUtil;
import com.central.user.utils.RandomUtils;
import com.central.user.utils.UploadUtil;
import lombok.extern.slf4j.Slf4j;
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created May 30, 2020
vlc-nightly v3.0.10.20200529 - 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="VLC media player" displayVersion="3.0.10">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\VLC media player</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[C:\Program Files\VideoLAN\VLC]]></InstallLocation>
<UninstallString><![CDATA["C:\Program Files\VideoLAN\VLC\uninstall.exe"]]></UninstallString>
@joaofig
joaofig / show_cluster_map.py
Created May 30, 2020
Function to display a cluster map
View show_cluster_map.py
def show_cluster_map(cluster_id):
map = folium.Map(prefer_canvas=True)
cluster_points = locations[clusters == cluster_id]
for point in cluster_points:
CircleMarker(point, radius=1).add_to(map)
min_lat, max_lat = cluster_points[:, 0].min(), cluster_points[:, 0].max()
min_lon, max_lon = cluster_points[:, 1].min(), cluster_points[:, 1].max()
map.fit_bounds([[min_lat, min_lon], [max_lat, max_lon]])
@Alois-star
Alois-star / PY0101EN-4-2-WriteFile.ipynb
Created May 30, 2020
Created on Skills Network Labs
View PY0101EN-4-2-WriteFile.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Discord-AppBot
Discord-AppBot / answer.md
Created May 30, 2020
AppBot - a Discord bot made for staff application management within Discord.
View answer.md

Application List

### Bald Asian Man#0289


ID: 163430996677492737

Mention: <@163430996677492737>

Submitted Applications: Gun Permit

Toaster#7967


ID: 221685737890775040

@vishalbhimani
vishalbhimani / git-clearHistory
Last active May 30, 2020
Clear out the history of a git repository
View git-clearHistory
// Remove the history from repository
rm -rf .git
// initialise your new Git repo
git init
// places files in a special staging area
git add .
// make a commit with message
git commit -m "Initial commit"
View House Sales in King County USA.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Davindran
Davindran / PY0101EN-1-1-Types.ipynb
Created May 30, 2020
Created on Skills Network Labs
View PY0101EN-1-1-Types.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.