Skip to content

Instantly share code, notes, and snippets.

View GUIEEN's full-sized avatar
💭
美しい未来に

Seung Kwak GUIEEN

💭
美しい未来に
  • tokyo
View GitHub Profile
@GUIEEN
GUIEEN / Brew정리.md
Last active August 13, 2019 17:12
HomeBrew에 대해 잠시 정리해봄. 이제야..🤦‍♂️

Usages

$ brew update                           # Fetch latest version of homebrew and formula.
$ brew tap caskroom/cask                # Tap the Caskroom/Cask repository from Github using HTTPS.
$ brew search slack                     # Searches all known Casks for a partial or exact match.
$ brew cask info slack                  # Displays information about the given Cask
$ brew cask install slack               # Install the given cask.
$ brew cleanup                          # Remove any older versions from the cellar.
@GUIEEN
GUIEEN / gcc-brew.md
Last active July 29, 2019 08:26 — forked from ibraheem4/postgres-brew.md
Installing Postgres via Brew (OSX)
@GUIEEN
GUIEEN / restart_bluetooth.sh
Created March 24, 2019 01:40 — forked from nicolasembleton/restart_bluetooth.sh
Restart Bluetooth Daemon on Mac OS X without restarting
#!/bin/bash
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
@GUIEEN
GUIEEN / curl.md
Created April 3, 2019 09:19 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@GUIEEN
GUIEEN / compileObjectiveC.md
Last active April 8, 2019 05:06
How to compile objective c in mac
clang -framework Foundation <objc-file-name>.m 
./a.out

It would be better to use with this function :)

function run_objc {
   if [[ -n "$2" ]];then
 secArg=$2
@GUIEEN
GUIEEN / ObjectDumper.cs
Created April 24, 2019 16:05 — forked from syaifulnizamyahya/ObjectDumper.cs
ObjectDumper for UWP. Use it to quickly get whats inside an object.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
using WinRTXamlToolkit.Common;
namespace ObjectDumper
{
//http://stackoverflow.com/questions/852181/c-printing-all-properties-of-an-object
@GUIEEN
GUIEEN / searchBarViewController.swift
Created May 10, 2019 02:21
ViewController implementation of searchbar
//
// ViewController.swift
// SwiftSearch
//
// Created by Shrikar Archak on 2/16/15.
// Copyright (c) 2015 Shrikar Archak. All rights reserved.
//
// Ref: https://shrikar.com/swift-ios-tutorial-uisearchbar-and-uisearchbardelegate/
import UIKit
// https://stackoverflow.com/a/31957717/5260068
Alamofire.upload(
.POST,
URLString: fullUrl, // http://httpbin.org/post
multipartFormData: { multipartFormData in
multipartFormData.appendBodyPart(fileURL: imagePathUrl!, name: "photo")
multipartFormData.appendBodyPart(fileURL: videoPathUrl!, name: "video")
multipartFormData.appendBodyPart(data: Constants.AuthKey.dataUsingEncoding(NSUTF8StringEncoding, allowLossyConversion: false)!, name :"authKey")
multipartFormData.appendBodyPart(data: "\(16)".dataUsingEncoding(NSUTF8StringEncoding, allowLossyConversion: false)!, name :"idUserChallenge")