Create a public gist on Github with one or more Markdown-syntax files. Note the gist ID number. It’s usually a longish number like 29388372. View your writing presented nicely at gist.io/gist-id-here
This file contains 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
git-revert $ git init | |
git-revert (master) $ touch 1.txt | |
git-revert (master) $ touch 2.txt | |
git-revert (master) $ git add . | |
git-revert (master) $ git commit -am "wanted commit 1" | |
[master (root-commit) 80395aa] wanted commit 1 | |
2 files changed, 0 insertions(+), 0 deletions(-) | |
create mode 100644 1.txt | |
create mode 100644 2.txt |
This file contains 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
openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert <your.pem> -key <your.pem> | |
This file contains 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
#zsh | |
brew list | while read cask; do echo -n "\e[1;34m$cask ->\e[0m"; brew deps $cask | awk '{printf(" %s ", $0)}'; echo ""; done |
This file contains 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
import json | |
import logging | |
import os | |
import socket | |
import ssl | |
import struct | |
import sys | |
import time | |
import uuid |
This file contains 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) 2011 Mathieu 'p01' Henri <http://www.p01.org/releases/> | |
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 |
This file contains 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 | |
set -x | |
# codesigning and provisioning profile should be configured using Xcode | |
PROJECT=<your project name> | |
SCHEME=${PROJECT} # Setting project name as the default scheme. Update based on your scheme | |
ARCHIVEPATH=`pwd`/archive | |
IPA_NAME=${PROJECT} | |
PROJECT_BUILDDIR=${ARCHIVEPATH}/${IPA_NAME}.xcarchive/Products/Applications |
This file contains 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
public partial class Form1 : Form | |
{ | |
bool clicked = false; | |
CheckBoxState state; | |
public Form1() | |
{ | |
InitializeComponent(); | |
listView1.View = View.Details; | |
listView1.Columns.Add("Col1", 150); | |
listView1.Columns.Add("Col2", 150); |
This file contains 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
## Get the modified file list | |
svn status | grep '^M ' |
This file contains 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
private static void PrintSQLServerInfo() | |
{ | |
SqlDataSourceEnumerator dataSourceEnumarator = SqlDataSourceEnumerator.Instance; | |
DataTable dataTable = dataSourceEnumarator.GetDataSources(); | |
foreach (DataRow row in dataTable.Rows) | |
{ | |
Console.WriteLine("----------------------------Sources----------------------------"); | |
Console.WriteLine("Server Name:" + row["ServerName"]); | |
Console.WriteLine("Instance Name:" + row["InstanceName"]); | |
Console.WriteLine("Is Clustered:" + row["IsClustered"]); |
OlderNewer