Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View VOID001's full-sized avatar
🏹
Aim highest

Jianqiu Zhang VOID001

🏹
Aim highest
View GitHub Profile
@VOID001
VOID001 / screenshot.sh
Created February 23, 2019 03:24
Take screenshot, upload to pastebin and put the URL into your clipboard
#!/bin/bash
/usr/bin/flameshot gui
/usr/bin/notify-send "Taking Screenshot" "Please wait..." --icon=dialog-information
dbus-monitor --profile "type=signal,interface=org.dharkael.Flameshot,member=captureTaken" |
while read -r line; do
if [[ $line == *"captureTaken"* ]]; then
URL=$(/usr/bin/xclip -selection clipboard -t image/png -o > /tmp/shot.png && /usr/bin/curl -F 'name=@/tmp/shot.png' https://img.vim-cn.com/)
echo "$URL" | xclip -in -sel clipboard
/usr/bin/notify-send "Screenshot Uploaded" "$URL" --icon=dialog-information
pkill -P $$
@VOID001
VOID001 / check.py
Last active December 28, 2018 15:29
Arch Linux CN static dependency check
import os
import sys
import importlib.util
import logging
import shlex
import subprocess
from typing import List
import yaml
import pycman.config
@VOID001
VOID001 / keybase.md
Created March 20, 2017 03:06
Keybase Proof

Keybase proof

I hereby claim:

  • I am VOID001 on github.
  • I am void001 (https://keybase.io/void001) on keybase.
  • I have a public key whose fingerprint is 013A 4C19 2A99 7274 F2DD 2BE3 FC4A 025E CD24 CFD8

To claim this, I am signing this object:

@VOID001
VOID001 / test.md
Last active March 18, 2017 16:17
test.md

/
\
/
\

\

@VOID001
VOID001 / say_hello.c
Created September 26, 2016 14:41
Say Hello To Linux
/*************************************************************************
> File Name: say_hello_1.c
> Author: VOID_133
> ###################
> Mail: ###################
> Created Time: Sun 25 Sep 2016 12:33:38 AM HKT
************************************************************************/
#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
@VOID001
VOID001 / index.html
Created September 26, 2016 14:40
抽奖程序
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
</head>
<body>
<div class="container text-center">
-- Installing: /tmp/lua_sandbox/build/ep_base/share/lua-cjson/doc/manual.txt
[ 54%] Completed 'lua_cjson'
[ 54%] Built target lua_cjson
Scanning dependencies of target lua_struct
[ 54%] Creating directories for 'lua_struct'
[ 55%] Performing download step (git clone) for 'lua_struct'
Cloning into 'lua_struct'...
Note: checking out 'b7e9b87d1ee36a5e22c6749be0959b45858beaad'.
You are in 'detached HEAD' state. You can look around, make experimental
/*************************************************************************
> File Name: sigset_1.c
> Author: VOID_133
> ###################
> Mail: ###################
> Created Time: Thu 26 May 2016 07:32:22 AM CST
************************************************************************/
#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
package main
import (
"fmt"
"math"
)
type ErrNegativeSqrt float64
func (e ErrNegativeSqrt) Error() string {
/*************************************************************************
> File Name: ipc_pipe.c
> Author: VOID_133
> IPC(InterProcess Communication) Use Pipe
> Mail: ###################
> Created Time: Tue 10 May 2016 06:51:27 PM CST
************************************************************************/
#include<stdio.h>
#include<stdlib.h>
#include<string.h>