This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script helps to cross-compile the WireGuard and AmneziaWG for Synology host (intel/arm targets) on Linux x64 host (for e.g. Ubuntu 22.04 and above). | |
# It compiles kernel module and wg/wg-quick tools. | |
# Usage: | |
# - download and save for e.g. to '/opt/syno-wg/syno-wg-build.sh' | |
# - detect your DSM version and device processor architecture. Use ssh to Synology and execute: | |
# - - awk -F '\"' '/majorversion/ {maj=\$2} /minorversion/ {min=\$2} END {print maj \".\" min}' /etc.defaults/VERSION | |
# - - awk -F '\"' '/platform_name/ {print \$2}' /etc.defaults/synoinfo.conf | |
# - output can be: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The problem: by default not available kernel sources for compile AmneziaWG kernel module. | |
# So the amnezia instalation is broken by default because of DKMS module can not be built/configured. | |
# Usually this is not needed on the host, but my use case is WG installation as client | |
# Prepare for installation as written here (https://github.com/amnezia-vpn/amneziawg-linux-kernel-module): | |
apt-get install pve-headers | |
apt install -y software-properties-common python3-launchpadlib gnupg2 linux-headers-$(uname -r) | |
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 57290828 | |
echo "deb https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu focal main" | sudo tee -a /etc/apt/sources.list | |
echo "deb-src https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu focal main" | sudo tee -a /etc/apt/sources.list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
wetty: | |
image: wettyoss/wetty | |
container_name: wetty | |
restart: unless-stopped | |
ports: | |
- "3000:3000" | |
command: | |
- --base=/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
""" | |
Simple tool to extract local users and passwords from most Huawei routers/firewalls config files. | |
Will extract plain-text passwords and crypted credentials. Huawei config files use DES encryption with | |
a known key. Using this information, the script will decrypt credentials found in the config file. | |
Author: Etienne Stalmans ([email protected]) | |
Version: 1.0 (12/01/2014) | |
""" | |
from Crypto.Cipher import DES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
killall Xcode | |
xcrun -k | |
xcodebuild -alltargets clean | |
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache" | |
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang.$(whoami)/ModuleCache" | |
rm -rf /Applications/Xcode.app | |
rm -rf ~/Library/Caches/com.apple.dt.Xcode | |
rm -rf ~/Library/Developer | |
rm -rf ~/Library/MobileDevice | |
rm -rf ~/Library/Preferences/com.apple.dt.Xcode.plist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule qtbase 519fcb38a2..705dee9621: | |
diff --git a/qtbase/mkspecs/common/msvc-desktop.conf b/qtbase/mkspecs/common/msvc-desktop.conf | |
index b7d2eecc82..755d92149c 100644 | |
--- a/qtbase/mkspecs/common/msvc-desktop.conf | |
+++ b/qtbase/mkspecs/common/msvc-desktop.conf | |
@@ -22,6 +22,10 @@ contains(QMAKE_TARGET.arch, x86_64) { | |
DEFINES += WIN64 | |
QMAKE_COMPILER_DEFINES += _WIN64 | |
} | |
+contains(QMAKE_TARGET.arch, arm64) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# YouTube (english) : https://www.youtube.com/watch?v=FtU2_bBfSgM | |
# YouTube (french) : https://www.youtube.com/watch?v=VjnaVBnERDU | |
# | |
# On your laptop, connect to the Mac instance with SSH (similar to Linux instances) | |
# | |
ssh -i <your private key.pem> ec2-user@<your public ip address> | |
# | |
# On the Mac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
#set -x | |
#ZIP_URL="http://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2015-11-24/2015-11-21-raspbian-jessie-lite.zip" | |
#ZIP_NAME="2015-11-21-raspbian-jessie-lite.zip" | |
#IMG_NAME="2015-11-21-raspbian-jessie-lite.img" | |
ZIP_URL="http://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2019-09-30/2019-09-26-raspbian-buster-lite.zip" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:3 | |
RUN apk add --no-cache libc6-compat cmake ninja git gcc g++ libc-dev \ | |
yasm bash curl make linux-headers curl zip unzip tar \ | |
patch libx11-dev libx11-dev mesa mesa-dev libxi-dev \ | |
libxext-dev autoconf gettext gettext-dev libxkbcommon-dev \ | |
bison pkgconfig gperf python3 glu glu-dev mesa-gl libxcb \ | |
libxcb-dev libxkbcommon libxkbcommon-dev libxkbcommon-x11 \ | |
xcb-util-wm-dev xcb-util-image-dev xcb-util-keysyms-dev \ | |
xcb-util-cursor-dev xcb-util-renderutil-dev xcb-util-xrm-dev \ |
NewerOlder