Skip to content

Instantly share code, notes, and snippets.

View lisasu-g's full-sized avatar
👋
Hi, What's up?

Lisa lisasu-g

👋
Hi, What's up?
View GitHub Profile
@lisasu-g
lisasu-g / 2019-https-localhost.md
Created May 25, 2023 16:56 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@lisasu-g
lisasu-g / ubuntu-hardening.md
Created June 30, 2021 08:56 — forked from lokhman/ubuntu-hardening.md
List of things for hardening Ubuntu

WARNING

May contain out of date information. Check the comments below!

The list of actions listed below was taken mostly from Book Of Zeus with minor modifications and did the job well for Ubuntu version, which was available at that moment (May 2016). This gist was created for internal use and was never meant to be discovered by the web, although Google managed to find and index this page, which was a great surprise for me. Please check the original source for the updated information (links are provided in most of the sections), and read the comments below: they provide more details about the usage experience.

System Updates

http://bookofzeus.com/harden-ubuntu/initial-setup/system-updates/

Keeping the system updated is vital before starting anything on your system. This will prevent people to use known vulnerabilities to enter in your system.

@lisasu-g
lisasu-g / MySQL_5-7_macOS.md
Created June 19, 2019 06:12 — forked from robhrt7/MySQL_5-7_macOS.md
Install MySQL 5.7 on macOS using Homebrew

This is a fork of original gist https://gist.github.com/nrollr/3f57fc15ded7dddddcc4e82fe137b58e, with slight changes on pointing to 5.7 version branch, instead of 8 (latest default of MySQL in Hombrew).

Install MySQL 5.7 on macOS

This procedure explains how to install MySQL using Homebrew on macOS (Sierra 10.12 and up)

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.
@lisasu-g
lisasu-g / find_offsets.sh
Created January 29, 2018 01:14 — forked from uroboro/find_offsets.sh
v0rtex offset finder script
#!//bin/sh
export PATH=bin:$PATH
self=$0
function print_help() {
echo "$self [IPSW path]"
echo "$self [device model] [ios build]"
echo
#!/usr/bin/env python2
# lrdcq
# usage python2 unwxapkg.py filename
import sys, os
import struct
class WxapkgFile(object):
nameLen = 0
var CryptoJS = require('crypto-js')
var request = require('request-promise')
/*
* npm install crypto-js request-promise
* node wx_t1t_hack.js
*/
// export function testEncription(msg, fullKey) {
// var fullKey = fullKey.slice(0, 16)
@lisasu-g
lisasu-g / iOS 视频技术
Created December 18, 2017 09:38 — forked from lxj5891/iOS 视频技术
iOS 视频采集/编码/传输/解码/播放 方案调研
视频采集方案:
通过iOS提供的视频API 可以取得 视频文件(mov) 或者 视频流
压缩编码方案:
方案一:不编码 传送视频文件(mov)
方案二:把视频转为jpeg 进行传输
方案三:压缩为网络编码 H.264 传输
传输方案:
socket传输
HTTP传输 文件
RTMP 传输