Instantly share code, notes, and snippets.

View backuplog.txt
dir found
_+=------------------------------------=+_
Starting Backup: 2018-10-16T084501
Sending save-all command to tmux session
Running backup as user[ minecraft ] on server [ newhorizons ] ...
Failed to create/acquire the lock /opt/backups/newhorizons/newhorizons/lock.exclusive (timeout).
Running prune job to keep space available
Failed to create/acquire the lock /opt/backups/newhorizons/newhorizons/lock.exclusive (timeout).
Backup Complete: Tue Oct 16 08:45:07 UTC 2018
_+=------------------------------------=+_
View DbExtensions.cs
public static class DbExtensions
{
public static IQueryable<T> FilterByTenant<T>(this IQueryable<T> baseEntities, string
tenantId) where T : BaseEntity
{
return baseEntities.Where(r => r.TenantId == tenantId);
}
public static IQueryable<T> FilterByTenantName<T>(this IQueryable<T> baseEntities, string
tenantId) where T : BaseEntity
{
View jestDataTable.txt
str | expected
${null} | ${true}
${""} | ${true}
${"word"} | ${false}
View gist:90964cd6d8af8bc2af350f7d721f948a
### Keybase proof
I hereby claim:
* I am josyann on github.
* I am josy (https://keybase.io/josy) on keybase.
* I have a public key ASD45wctatRzwMsycJTEVBorWipqbwb_cc63fVSN2VQ5Qwo
To claim this, I am signing this object:
View final
# coding: cp1251
import random
import timeit
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
def do_lists(a):
s = 0
for i in range(n):
View crc_CRCCCITT.py
from PyCRC.CRCCCITT import CRCCCITT
from PyCRC.CRC32 import CRC32
from PyCRC.CRC16 import CRC16
from PyCRC.CRC16DNP import CRC16DNP
from PyCRC.CRC16Kermit import CRC16Kermit
from PyCRC.CRC16SICK import CRC16SICK
src = [
# 'surface_galaxy.bmp',
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="Total Commander 64-bit (Remove or Repair)" displayVersion="9.21a">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Totalcmd64</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[]]></InstallLocation>
<UninstallString><![CDATA[C:\Program Files\totalcmd\tcunin64.exe]]></UninstallString>
View mygist.txt
Demo Hello India2
View c#_gbk_encode.cs
//使用之前:
//项目 -> 添加引用 -> 搜索 System.web 添加
string str = System.Web.HttpUtility.UrlEncode("机械键盘", System.Text.Encoding.GetEncoding("GB2312"));