Skip to content

Instantly share code, notes, and snippets.

View yashodhank's full-sized avatar
🎯
Manifesting

Yashodhan yashodhank

🎯
Manifesting
View GitHub Profile
@yashodhank
yashodhank / cloud-init.yaml
Created May 10, 2022 15:11 — forked from vtrifonov-esfiddle/cloud-init.yaml
cloud-init config for ubuntu host with docker & docker-compose
#cloud-config
groups:
- docker
users:
- default
# the docker service account
- name: docker-service
groups: docker
package_upgrade: true
packages:
@yashodhank
yashodhank / 00-cloud-config.yml
Created May 4, 2022 03:56 — forked from janeczku/00-cloud-config.yml
Annotated RancherOS Cloud-init configuration snippets
#cloud-config
# Set the hostname for this machine (takes precedence over hostname assigned by DHCP lease).
hostname: myhost
# Authorize SSH keys for the `rancher` sudoer user
ssh_authorized_keys:
- ssh-rsa AAA...ZZZ example1@rancher
#cloud-config
bootcmd:
- sudo apt remove unattended-upgrades -y
# Prevent race condition with VM extension provisioning
- while ( fuser /var/lib/dpkg/lock >/dev/null 2>&1 ); do sleep 5; done;
- while ( fuser /var/lib/apt/lists/lock >/dev/null 2>&1 ); do sleep 5; done;
# Get apt repository signing keys
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0 # GitHub
- sudo apt-add-repository https://cli.github.com/packages
- curl https://baltocdn.com/helm/signing.asc | sudo apt-key add - # Helm
@yashodhank
yashodhank / user-data.yml
Created May 4, 2022 03:40
rpi4-user-data-pre-boot.yml
#cloud-config
# This is the user-data configuration file for cloud-init. By default this sets
# up an initial user called "ubuntu" with password "ubuntu", which must be
# changed at first login. However, many additional actions can be initiated on
# first boot from this file. The cloud-init documentation has more details:\ bvmmb h
# Please note that the YAML format employed by this file is sensitive to
# differences in whitespace; if you are editing this file in an editor (like
# Notepad) which uses literal tabs, take care to only use spaces for
# indentation. See the following link for more details:
@yashodhank
yashodhank / lic.xml
Last active January 24, 2026 01:54
psa activation
<?xml version="1.0" encoding="UTF-8"?><plesk-unified:key xmlns:plesk-unified="http://parallels.com/schemas/keys/products/plesk/unified/multi" core:format="openfusion-3" xmlns:core="http://parallels.com/schemas/keys/core/3">
<!--Unique product Key number-->
<core:key-number core:type="string">PLSK.09741637</core:key-number>
<!--Key version-->
<core:key-version core:type="string">0001</core:key-version>
<!--Key description-->
<core:description>
<core:keytype>Plesk Web Host Edition (14 Days Trial)</core:keytype>
<core:property core:value="99">Additional Language Packs</core:property>
</core:description>
@yashodhank
yashodhank / evaldecode.php
Created March 6, 2022 01:10 — forked from yireo/evaldecode.php
Decode evil scripts encoded with eval(gzinflate(base64_decode()))
<?php
/*
* Basic script to decrypt files encoded with eval(gzinflate(base64_decode($data)));
*/
$file = 'encrypted.php';
$content = file_get_contents($file);
function evaldecode($content, $step = 0) {
//echo "STEP $step\n";
[ "$UID" -eq 0 ] || exec sudo "$0" "$@"
su
apt install unzip curl ; rm -rf /tmp/acun*
apt install libxdamage1 libgtk-3-0 libasound2 libnss3 libxss1 libx11-xcb1 -y
cd /tmp; rm master.zip -f
curl -L -o master.zip http://github.com/neolead/acunetix-linux/zipball/master/
unzip master.zip
cd `ls|grep neolead` && cat acupatch* > acupatch.tgz
tar -zxvf acupatch.tgz
chmod +x ./acunetix_trial.sh