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/sh | |
echo QUIT | busybox timeout -t 1 openssl s_client -brief -connect "$1" |
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
git clone <repourl>/repo-1.git | |
git clone <repourl>/repo-2.git | |
# Start in the source repo | |
cd repo-1 | |
git remote rm origin # delete link to original repository to avoid any accidental remote changes | |
git filter-branch --subdirectory-filter dir-to-move -- --all # dir-to-move is being moved to another repo. This command goes through history and files, removing anything that is not in the folder. The content of this folder will be moved to root of the repo as a result. | |
# This folder has to be moved to another folder in the target repo. So, move everything to another folder. | |
git filter-branch --index-filter \ | |
'git ls-files -s | sed "s-\t\"*-&NEWSUBDIR/-" | |
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
diff --git a/psw/uae_service/linux/Makefile b/psw/uae_service/linux/Makefile | |
index c33d8679..b7c7286d 100644 | |
--- a/psw/uae_service/linux/Makefile | |
+++ b/psw/uae_service/linux/Makefile | |
@@ -57,7 +57,7 @@ INCLUDE += -I$(LINUX_EXTERNAL_DIR)/epid \ | |
-I$(IPC_COMMON_PROTO_DIR) \ | |
-I$(LINUX_PSW_DIR)/ae/aesm_service/source | |
-CXXFLAGS += -fPIC -Werror -g -DPROTOBUF_INLINE_NOT_IN_HEADERS=0 | |
+CXXFLAGS += -fPIC -Werror -Wno-unused -g -DPROTOBUF_INLINE_NOT_IN_HEADERS=0 |
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 | |
sudo apt-get update && sudo apt-get install -yq --no-install-recommends ca-certificates build-essential ocaml automake autoconf libtool wget python libssl-dev libcurl4-openssl-dev protobuf-compiler libprotobuf-dev alien cmake uuid-dev libxml2-dev pkg-config | |
wget -O - https://github.com/01org/linux-sgx-driver/archive/sgx_driver_2.0.tar.gz | tar -xz && \ | |
cd linux-sgx-driver-sgx_driver_2.0 && \ | |
make && \ | |
sudo make install && \ | |
sudo depmod && \ | |
sudo modprobe isgx |
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/sh | |
gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gdk/WindowScalingFactor': <1>}" | |
gsettings set org.gnome.desktop.interface scaling-factor 1 | |
xrandr --output eDP1 --off --output DP2-2 --auto |
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/zsh | |
# Needs https://github.com/lukas2511/letsencrypt.sh in dns-01 mode | |
/opt/letsencrypt/ilo/letsencrypt.sh -c -s /opt/letsencrypt/ilo/ilo.csr -k /opt/letsencrypt/ilo/hook.sh -t dns-01 > /opt/letsencrypt/ilo/ilo.crt | |
cert=$(cat /opt/letsencrypt/ilo/ilo.crt) | |
curl --cacert /opt/letsencrypt/intermediate.pem -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Basic [FILL_IN_HERE]" -X POST -d "{\"Action\": \"ImportCertificate\", \"Certificate\": \"$cert\"}" https://ilo.home.vaucher.org/rest/v1/Managers/1/SecurityService/HttpsCert |
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
#!/raid/module/Perl514/system/bin/perl -w | |
# Call this script weekly on Sunday from crontab | |
use strict; | |
use warnings; | |
use DateTime; | |
my $root = '/raid/rsnapshot'; | |
#my $rsnap = "/bin/echo"; | |
my $rsnap = "$root/rsnapshot"; |
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
DEFAULT_USER=sebastien | |
source /usr/share/zsh-antigen/antigen.zsh | |
# Load the oh-my-zsh's library. | |
antigen use oh-my-zsh | |
# Bundles from the default repo (robbyrussell's oh-my-zsh). | |
antigen bundle git | |
antigen bundle adb |