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 ( 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):
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="" xmlns:xsi="">
<key installerType="Unknown" displayName="Total Commander 64-bit (Remove or Repair)" displayVersion="9.21a">
<DefaultValue />
<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"));