Skip to content

Instantly share code, notes, and snippets.

💎
Github Premium Member

Jianqiu Zhang VOID001

View GitHub Profile
@VOID001
VOID001 / screenshot.sh
Created Feb 23, 2019
Take screenshot, upload to pastebin and put the URL into your clipboard
View screenshot.sh
#!/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 Dec 28, 2018
Arch Linux CN static dependency check
View check.py
import os
import sys
import importlib.util
import logging
import shlex
import subprocess
from typing import List
import yaml
import pycman.config
View keybase.md

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 / say_hello.c
Created Sep 26, 2016
Say Hello To Linux
View say_hello.c
/*************************************************************************
> 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>
View index.html
<!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">
View cmake log
-- 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
View sigset_you_cant_stop.c
/*************************************************************************
> 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>
View SIG1.go
package main
import (
"fmt"
"math"
)
type ErrNegativeSqrt float64
func (e ErrNegativeSqrt) Error() string {
View ipc_pipe.c
/*************************************************************************
> 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>
You can’t perform that action at this time.