This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
filename=$(basename $0 ".sh") | |
mkdir -p $filename | |
for blob in $(find .git/objects -type f); do | |
hash=$(echo $blob | cut -c14- | sed 's|/||') | |
git show $hash | cat > "$filename/$hash" | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
</head> | |
<body> | |
</body> | |
<script type="text/javascript"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from Tkinter import * | |
def fn(*args): | |
messagebox.showinfo(content.get()) | |
root = Tk() | |
root.title("Google") | |
main = Frame(root) | |
main.pack() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en" > | |
<head> | |
<title>Wi-Fi</title> | |
<style type="text/css"> | |
* { | |
margin: 0; | |
padding: 0; | |
font-family: "Helvetica Neue",Helvetica Neue,Helvetica,Arial,Heiti SC,Hiragino Sans GB,Microsoft Yahei,sans-serif; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Diagnostics; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
namespace RemoteControlServer | |
{ | |
class RemoteServer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* [promiseify description] | |
* @param {[type]} creator [description] | |
* @return {[type]} [description] | |
*/ | |
module.exports = function promiseify(creator){ | |
return new Promise(function(accept, reject){ | |
creator.call(this, function(err, res){ | |
if(err) return reject(err); | |
accept(res); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const debug = require('debug')('promise-retry'); | |
/** | |
* [promise-retry: catch promise error and retry] | |
* @param {[type]} task [description] | |
* @param {[type]} n [description] | |
* @param {[type]} timeout [description] | |
* @return {[type]} [description] | |
* @source https://gist.github.com/song940/6e3e1ec0380956006cd1 | |
*/ | |
module.exports = function retry(task, n, timeout){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# | |
PROJECT_ID=1 | |
SENTRY_VERSION=7 | |
SENTRY_NAME="sentry-cli" | |
SENTRY_KEY=5660affd663b4e4e8f0ca25c96dce705 | |
SENTRY_API="http://sentry.lsong.org/api/$PROJECT_ID" | |
ORIGIN="http://lsong.org" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Host * | |
ControlPersist yes | |
ControlMaster auto | |
ControlPath ~/.ssh/master-%r@%h:%p |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2013 Yannick Albert <http://yckart.com> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |