https://alvinsmith.gitbook.io/progressive-oscp/untitled/vulnversity-privilege-escalation
[Unit]
Description=roooooooooot
[Service]
Type=simple
https://alvinsmith.gitbook.io/progressive-oscp/untitled/vulnversity-privilege-escalation
[Unit]
Description=roooooooooot
[Service]
Type=simple
function getPageTotal(offset = 0) { | |
req = new XMLHttpRequest(); | |
req.open( | |
'GET', | |
`https://shopee.vn/api/v4/order/get_all_order_and_checkout_list?limit=20&offset=${offset}`, | |
false | |
); | |
req.send(); | |
a = JSON.parse(req.responseText); | |
if (a.data.next_offset === -1) return 0; |
// Encoded polyline algorithm from https://developers.google.com/maps/documentation/utilities/polylinealgorithm | |
func encode(_ original: Double) -> String { | |
var point = UInt32(abs(Int((original * 100000).rounded()))) | |
if original < 0 { | |
point = ~point + 1 | |
} | |
point <<= 1 | |
if original < 0 { | |
point = ~point | |
} |
func _convertToBytes<T>(_ value: T, withCapacity capacity: Int) -> [UInt8] { | |
var mutableValue = value | |
return withUnsafePointer(to: &mutableValue) { | |
return $0.withMemoryRebound(to: UInt8.self, capacity: capacity) { | |
return Array(UnsafeBufferPointer(start: $0, count: capacity)) | |
} | |
} |
From e4db4f07e77feb1c126e7afbf441e9eae34b4e57 Mon Sep 17 00:00:00 2001 | |
From: Kelvie Wong <kelvie@kelvie.ca> | |
Date: Sun, 2 Oct 2022 13:23:25 -0700 | |
Subject: [PATCH] Add a lockdown_hibernate parameter | |
This allows the user to tell the kernel that they know better (namely, | |
they secured their swap properly), and that it can enable hibernation. | |
Signed-off-by: Kelvie Wong <kelvie@kelvie.ca> | |
--- |
package main | |
import ( | |
"context" | |
"errors" | |
"fmt" | |
"io" | |
"log" | |
"os" | |
"runtime" |
# Modify this file accordingly for your specific requirement. | |
# http://www.thegeekstuff.com | |
# 1. Delete all existing rules | |
iptables -F | |
# 2. Set default chain policies | |
iptables -P INPUT DROP | |
iptables -P FORWARD DROP | |
iptables -P OUTPUT DROP |
IaaS指提供系统(可以自己选)或者储存空间之类的硬件,软件要自己手动装;PaaS提供语言环境和框架(可以自己选);SaaS只能使用开发好的软件(卖软件本身);BaaS一般类似于非关系数据库,但各家不通用,有时还有一些其它东西。
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Ubuntu 16.04+、Debian 8+、CentOS 7+