git archive --format=tar.gz -o /tmp/my-repo.tar.gz --prefix=my-repo/ master
More detailed version: https://til.simonwillison.net/git/git-archive
git archive --format=tar.gz -o /tmp/my-repo.tar.gz --prefix=my-repo/ master
More detailed version: https://til.simonwillison.net/git/git-archive
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import os | |
import sys | |
''' | |
Clone of WWStar, an ancient Classical Chinese translator. | |
usage: python3 WWStarClone.py [dir] |
# Rime dictionary | |
# encoding: utf-8 | |
--- | |
name: greek | |
version: "0.1" | |
sort: original | |
... | |
# 小写希腊字母 |
require "nokogiri" | |
require "open-uri" | |
url = "https://github.com/#{params['username']}" | |
document = Nokogiri::HTML(open(url)) | |
contrib_boxes = document.css('svg.js-calendar-graph-svg')[0] | |
contrib_boxes['xmlns']="http://www.w3.org/2000/svg" | |
width = (params['width']||54*13-2).to_i | |
height = (params['height']||89).to_i | |
contrib_boxes.css('text').remove | |
contrib_boxes['width']=(width+11).to_s+'px' |
#!/usr/bin/env python3 | |
import sys | |
import re | |
import shutil | |
import argparse | |
import binascii | |
# | |
# Author: Daxda |
#!/usr/bin/env python3 | |
import asyncio | |
import multiprocessing | |
import os | |
import ssl | |
from time import sleep | |
port = 9000 |
#!/bin/sh | |
# | |
# msys2-sshd-setup.sh — configure sshd on MSYS2 and run it as a Windows service | |
# | |
# Please report issues and/or improvements to Sam Hocevar <sam@hocevar.net> | |
# | |
# Prerequisites: | |
# — MSYS2 itself: http://sourceforge.net/projects/msys2/ | |
# — admin tools: pacman -S openssh cygrunsrv mingw-w64-x86_64-editrights | |
# |
For some extra awesomeness replace a javascript file with a js file from dropbox with ?dl=1 at the end of the js url. Now you can modify the file locally, it will update itself, and you just have to refresh the browser. Pretty cool!