Skip to content

Instantly share code, notes, and snippets.

View Erisa's full-sized avatar
💕

Erisa A Erisa

💕
View GitHub Profile
@KianNH
KianNH / cloudflare-remove-all-records.ps1
Created May 13, 2022 15:55
Cloudflare - Remove all DNS records in a given zone
$API_TOKEN = "<api-token>"
$ZONE_ID = "<zone-id>"
$baseUrl = "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/dns_records"
$headers = @{
'Authorization' = "Bearer $API_TOKEN"
'Content-Type' = "application/json"
}
@mpost
mpost / android-cli.bat
Created July 29, 2016 14:47
Register windows context menu entry to adb install apk from explorer
@ECHO OFF
ECHO Running "adb install -r %1"
adb install -r %1
PAUSE
@nekoprog
nekoprog / OPNsense aarch64.txt
Last active January 3, 2022 14:24
OPNsense aarch64 Todo List
https://www.worksonarm.com/explore/freebsd/
https://wiki.freebsd.org/arm64
https://wiki.freebsd.org/arm64?action=AttachFile&do=view&target=arm64_build.sh
https://ci.freebsd.org/job/FreeBSD-stable-11-aarch64-build/
https://github.com/HardenedBSD/hardenedbsd-ports/blob/master/sysutils/Makefile
https://www.aliexpress.com/item/32880728063.html
http://www.banana-pi.org/r64.html
http://espressobin.net/
http://wiki.espressobin.net/tiki-index.php
# Copyright (C) 2012 The CyanogenMod Project
# (C) 2017 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@TheFarmingBunny
TheFarmingBunny / rules.v4
Created February 17, 2020 18:48
iptables
# Generated by xtables-save v1.8.2 on Thu Jan 23 19:30:09 2020
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A OUTPUT -j LOG -p tcp -o eth1 --dport 32400 --log-prefix "DROP:" --log-level 6
-A OUTPUT -j LOG -p tcp -o eth1 --dport 8112 --log-prefix "DROP:" --log-level 6
-A FORWARD -i eth1 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i eth0 -o eth1 -j ACCEPT
-A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
@koumaza
koumaza / Android.Dependencies-to-Manifest.xml.md
Last active December 11, 2020 21:48
Android_Dependencies to Manifest.xml

Example

./ad2mf.sh aosp.dependencies

@Ovyerus
Ovyerus / prompt-preview.png
Last active August 7, 2020 04:13
Hot powershell prompt
prompt-preview.png
@Ovyerus
Ovyerus / config.fish
Last active August 7, 2020 04:11
Sexy fish prompt
set -g symb '▲'
set -g leading_brace 0
set -g has_launched 0
function git_info
set -l branch (git rev-parse --abbrev-ref HEAD 2> /dev/null)
printf "%s(%s%s%s)" $c0 $c1 $branch $c0
set -l changes (git status --porcelain --ignore-submodules 2> /dev/null)
@pyk
pyk / README.md
Last active September 18, 2019 17:53
Install Oracle java 8 on debian jessie

Run

wget https://gist.githubusercontent.com/pyk/19a619b0763d6de06786/raw/b09ce3a6626484adb5339597dfd391d0db9fe3cb/install-oracle-java-8-on-debian-jessie.sh
sh install-oracle-java-8-on-debian-jessie.sh

See the following blog post