Skip to content

Instantly share code, notes, and snippets.

View kelvinblood's full-sized avatar
🎯
CNCF

血衫非弧 kelvinblood

🎯
CNCF
View GitHub Profile
@kelvinblood
kelvinblood / webp2jpg.sh
Created December 4, 2018 05:56
webp2jpg
#!/bin/bash
for file in `ls`
do
len3=`xxd -p -l 3 $file`
len4=`xxd -p -l 4 $file`
echo -n $file
if [ $len3 == "ffd8ff" ]; then
@kelvinblood
kelvinblood / htpasswd.py
Last active July 3, 2017 09:12
htpasswd.py
#!/usr/bin/python
"""Replacement for htpasswd"""
# Original author: Eli Carter
import os
import sys
import random
from optparse import OptionParser
# We need a crypt module, but Windows doesn't have one by default. Try to find
@kelvinblood
kelvinblood / dropbox.py
Created January 13, 2017 10:11
dropbox.py
#!/usr/bin/python
#
# Copyright (c) Dropbox, Inc.
#
# dropbox
# Dropbox frontend script
# This file is part of nautilus-dropbox 2.10.0.
#
# nautilus-dropbox is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
#!/bin/sh
# Update System
echo "System Update"
apt-get -y update
echo "Update completed"
# Install help app
apt-get -y install libssl-dev git-core pkg-config build-essential curl gcc g++ checkinstall
# Download & Unpack Node.js - v. 6.9.1
echo "Download Node.js - v6.9.1"
mkdir /tmp/node-install