Skip to content

Instantly share code, notes, and snippets.

View thixpin's full-sized avatar

Soe Thura @ thixpin thixpin

View GitHub Profile
@thixpin
thixpin / xzbd-scan.sh
Created March 31, 2024 05:22
xz backdoor scanner
#! /bin/bash
cd /
set -eu
# find path to liblzma used by sshd
path="$(ldd $(which sshd) | grep liblzma | grep -o '/[^ ]*')"
# does it even exist?
if [ "$path" == "" ]
then
@thixpin
thixpin / .gitlab-ci.yml
Created March 26, 2024 14:39
Gitlab ci file for deploy node with ssh
image: node:14-alpine
stages:
- build
- test
- deploy
build:
stage: build
script:
image: alpine:latest
stages:
- build
- test
- deploy
# variables:
# S3_BUCKET: "my-bucket"
@thixpin
thixpin / import_json_appsscript.js
Last active April 20, 2020 07:43 — forked from chrislkeller/import_json_appsscript.js
Adds what amounts to an =ImportJSON() function to a Google spreadsheet... To use go to Tools --> Script Editor and add the script and save.
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();