Skip to content

Instantly share code, notes, and snippets.

xiconet

Block or report user

Report or block xiconet

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@xiconet
xiconet / cloudflare.go
Last active Jan 27, 2019
cloudflare under-attack mode chalenge solver
View cloudflare.go
package scraper
import (
"bytes"
"errors"
"fmt"
"io/ioutil"
"log"
"net/http"
"net/http/cookiejar"
@xiconet
xiconet / hitail.go
Last active May 27, 2018
Hightail (formerly Yousendit) basic console client in golang
View hitail.go
package main
import (
"bytes"
"encoding/json"
"fmt"
"github.com/alexflint/go-arg"
"github.com/cheggaaa/pb"
"github.com/nu7hatch/gouuid"
"github.com/xiconet/utils"
@xiconet
xiconet / dboxapi.go
Last active Mar 31, 2018
Dropbox APIv2 client in golang
View dboxapi.go
// Command dbox is a client for the dropbox "rest" API
package main
import(
"os"
"os/exec"
"time"
"net/http"
"net/url"
"io"
View pcurl.py
#!C:/Python36/python
#
# from http://pycurl.io/docs/latest/quickstart.html#retrieving-a-network-resource
from io import BytesIO
from urllib.parse import urlencode
import posixpath
import re
import json
import pycurl
@xiconet
xiconet / Git Bash.vbs
Created May 19, 2017 — forked from markrendle/Git Bash.vbs
Modified Git Bash to use Console2
View Git Bash.vbs
Set AppObj = CreateObject("Shell.Application")
If WScript.Arguments.Length=1 Then
AppObj.ShellExecute "C:\Console2\Console.exe", " -t ""Git Bash"" -d """ & WScript.Arguments(0) & """"
Else
AppObj.ShellExecute "C:\Console2\Console.exe", " -t ""Git Bash"""
End If
View good.pl
#!/usr/bin/env perl
#
# my own little google drive client written in perl
#
use strict;
use warnings;
use LWP::UserAgent;
use HTTP::Request;
use HTTP::Headers;
@xiconet
xiconet / utils.py
Last active May 8, 2017
Collected python utilities
View utils.py
#!/usr/bin/env python
"""Collect utilities here
__VERSION: 0.1
__AUTHOR: xiconet
"""
MAXLEN = 60
START_AT = 2
@xiconet
xiconet / chksums.sh
Created Jan 9, 2017 — forked from steakknife/chksums.sh
Checksum one-liners.
View chksums.sh
# bourne shell functions below take 1 argument, the file_to_hash.
# prints hex digest on stdout
md5() {
perl -MDigest::MD5=md5_hex -le'print md5_hex(<> or die)' "$1"
# ruby -rdigest/md5 -e"puts Digest::MD5.file'/dev/null'"
# python -sBc "import hashlib;print hashlib.md5(open('$1','rb').read()).hexdigest()"
# md5 "$1"|cut -d' ' -f4 # mac
# md5sum "$1"|cut -d' ' -f1 # linux
# openssl md5 "$1" | grep -o '[[:xdigit:]][[:xdigit:]]*$' | cat
@xiconet
xiconet / web-servers.md
Created Jan 5, 2017 — forked from willurd/web-servers.md
Big list of http static server one-liners
View web-servers.md

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@xiconet
xiconet / piped_upload.go
Last active Oct 25, 2015 — forked from cryptix/client.go
multipart upload with io.Pipe
View piped_upload.go
package main
import (
"io"
"log"
"mime/multipart"
"net/http"
"os"
"path/filepath"
"runtime"
You can’t perform that action at this time.