Skip to content

Instantly share code, notes, and snippets.

@simple
simple / gist.io.md
Created September 28, 2016 02:11
Testing GIST.IO

Intro

What to test?

  • bullet list
code

in-line code

@simple
simple / keybase.md
Created October 4, 2014 13:41
keybase proof

Keybase proof

I hereby claim:

  • I am simple on github.
  • I am simple (https://keybase.io/simple) on keybase.
  • I have a public key whose fingerprint is FF61 5763 3163 D0B3 7DC5 E80D 3CE3 AB93 6226 B9DD

To claim this, I am signing this object:

<!DOCTYPE html>
<html>
<head>
<title>Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style type="text/css">
@import url(http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz);
@import url(http://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic);
@import url(http://fonts.googleapis.com/css?family=Ubuntu+Mono:400,700,400italic);

This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.

Here are the required steps to create a command:

  1. Create a new Gist with a command.js and command.json file, or simply fork this one.

  2. Write your JavaScript in command.js. This will be injected into and executed on the page the user is currently on when they run it.

  3. Add some metadata to the command.json file:

  • name: The name of the command.

Keybase proof

I hereby claim:

  • I am simple on github.
  • I am simple (https://keybase.io/simple) on keybase.
  • I have a public key whose fingerprint is 912F 46C0 7EF1 D449 D82D 6F5C F44C BFC5 9570 C2DE

To claim this, I am signing this object:

@simple
simple / sources.list
Created November 26, 2013 12:17
Ubuntu 13.10 /etc/apt/sources.list /etc/hosts에서 kr.archive.ubuntu.com에 ftp.daum.net IP를 박아넣으면 좀 더 빠름 211.62.252.36 kr.archive.ubuntu.com
#
# deb cdrom:[Ubuntu-Server 13.10 _Saucy Salamander_ - Release amd64 (20131016)]/ saucy main restricted
# deb cdrom:[Ubuntu-Server 13.10 _Saucy Salamander_ - Release amd64 (20131016)]/ saucy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://kr.archive.ubuntu.com/ubuntu/ saucy main restricted
deb-src http://kr.archive.ubuntu.com/ubuntu/ saucy main restricted
@simple
simple / ip-dig#
Created September 5, 2013 16:45
ip & dig usage
cat > /dev/null <<EOF
Extracted from [Obsolete tools: nslookup & ifconfig](http://blog.christian-stankowic.de/?p=5319&lang=en)
Task ifconfig/route ip
-------------------------------------------------------------------------------------
Show all NICs ifconfig ip addr show
Show specific NIC ifconfig eth0 ip addr show eth0
Disable NIC ifconfig eth0 down ip link set eth0 down

SourceTree does not yet officially support Kaleidoscope 2, so here is how to set it up:

In Preferences, under Diff:

Screen Shot

You can try selecting Kaleidoscope, but we have had reports of mixed results. Some people have rebuilt their launch services database and restarted and been able to use Kaleidoscope this way:

/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain use

@simple
simple / gist:3478072
Created August 26, 2012 11:56
changes on httpd.conf
LoadModule php5_module libexec/apache2/libphp5.so
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
LogFormat "%h %l %u %t %>s %D %b \"%r\" \"%{Referer}i\" \"%{User-Agent}i\"" combined
@simple
simple / gist:3476671
Created August 26, 2012 09:44
Virtual Host conf example for zend project
#
# Virtual Hosts
#
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
#