Skip to content

Instantly share code, notes, and snippets.

@hyuni
hyuni / Git push deployment in 7 easy steps.md
Created December 2, 2018 22:09 — forked from thomasfr/Git push deployment in 7 easy steps.md
7 easy steps to automated git push deployments. With small and configurable bash only post-receive hook
@hyuni
hyuni / iterm2-solarized.md
Created December 6, 2018 13:37 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k

@hyuni
hyuni / peekFunc.swift
Last active December 17, 2018 13:08 — forked from dankogai/peekFunc.swift
Get the internal function pointer in swift
/// See
/// https://github.com/rodionovd/SWRoute/wiki/Function-hooking-in-Swift
/// https://github.com/rodionovd/SWRoute/blob/master/SWRoute/rd_get_func_impl.c
/// to find why this works
func peekFunc<A, R>(_ f: @escaping (A) -> R) -> (fp: Int, ctx: Int) {
typealias IntInt = (Int, Int)
let (_, lo) = unsafeBitCast(f, to: IntInt.self)
let offset = MemoryLayout<Int>.size == 8 ? 16 : 12
let ptr = UnsafePointer<Int>(bitPattern: lo + offset)!
@hyuni
hyuni / Unsafe Bit Cast.swift
Created December 18, 2018 13:00 — forked from JadenGeller/Unsafe Bit Cast.swift
A Quick Overview of Unsafe Bit Cast
// Let's declare two structs that with different variables and different boolean values:
struct A {
let x = true
}
struct B {
let y = false
}
@hyuni
hyuni / gist:552e5fcd28d87d0f6ee4b28fa536cab2
Created January 12, 2019 05:25 — forked from HarryGoodwin/gist:4528d6419915258e54b2f8c804687808
Attributed string bullet points - Swift
//
// ViewController.swift
// BulletList
//
// Created by Harry Goodwin on 09/04/2016.
// Copyright © 2016 GG. All rights reserved.
//
import UIKit

This Gist contains the script and generated output file for an Acer B276HUL.

The pre-generated file below is known to work with:

  • OS X Mavericks
  • OS X Yosemite
  • OS X El Capitan

For El Capitan:

  1. Restart your Mac while holding Command-R: this puts your Mac into Recovery Mode.
@hyuni
hyuni / FRP iOS Learning resources.md
Created January 16, 2019 15:11 — forked from JaviLorbada/FRP iOS Learning resources.md
The best FRP iOS resources.

Videos

@hyuni
hyuni / kali_osx_persistence_wifi.md
Created November 2, 2019 06:10 — forked from flowchartsman/kali_osx_persistence_wifi.md
Kali Linux Live USB with encrypted persistence and wireless on Macbook Pro/Air without networking.

Kali Linux Bootable USB with Persistence and Wireless on OSX

Tutorials for running live Kali on OSX often require you have networking on your laptop to apt install the drivers, but without an ethernet adapter you're not going to be able to do that, so this tutorial will cover a method of doing this manually, using another thumbdrive or external data source.

Download the appropriate Kali Linux .iso

I used a 64 bit .iso image, downloaded via HTTP.

@hyuni
hyuni / osx-for-hackers.sh
Created November 2, 2019 06:11 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx
@hyuni
hyuni / README.md
Created November 2, 2019 06:13 — forked from hofmannsven/README.md
Git Cheatsheet