Skip to content

Instantly share code, notes, and snippets.

@89luca89
89luca89 / microos-status.sh
Last active November 13, 2023 15:05
This script will compare current package list on a system with the "ideal" one of a fresh install of the same system.
#!/bin/bash
if [ "$EUID" -ne 0 ]; then
sudo "$0" "$@"
exit
fi
GREEN='\033[1m\033[32m'
YELLOW='\033[1m\033[33m'
CLEAR='\033[0m'
@andisugandi
andisugandi / URL-YouTube-LNX4C.csv
Last active March 3, 2024 18:25
URL Rekaman Live Session LNX4C (September s.d November, 2022)
BAB JUDUL URL
1 Memulai dengan Red Hat Enterprise Linux https://youtu.be/p0R3G28Ep6w
2 Akses Baris Perintah https://youtu.be/NzLOXOFrEdA
3 Mengelola File-File dari Baris Perintah https://youtu.be/1cmWZvHjG5U
3 + 4 Mengelola File dari Baris Perintah & Mendapat Bantuan dari RHEL https://youtu.be/_IfmTKkgBqk
5 Membuat Melihat dan Mengubah Beragam File Teks https://youtu.be/QATcwwElsIg
6 Mengatur Pengguna Lokal dan Beragam Grup https://youtu.be/0RZWaz4VgCI
7 Mengatur Akses File https://youtu.be/0fdqPowagt4
8 Mengamati dan Mengatur Berbagai Proses Linux https://youtu.be/-1B6ukoXXoE
9 Mengatur Berbagai Layanan dan Layanan Otomatis https://youtu.be/5UrIkCmKfrs
wget https://origin.ostree.endlessm.com/keys/eos-flatpak-keyring.gpg
flatpak remote-add --gpg-import=eos-flatpak-keyring.gpg eos-apps https://ostree.endlessm.com/ostree/eos-apps
flatpak remote-add --gpg-import=eos-flatpak-keyring.gpg eos-sdk https://ostree.endlessm.com/ostree/eos-sdk

WannaCry|WannaDecrypt0r NSA-Cyberweapon-Powered Ransomware Worm

  • Virus Name: WannaCrypt, WannaCry, WanaCrypt0r, WCrypt, WCRY
  • Vector: All Windows versions before Windows 10 are vulnerable if not patched for MS-17-010. It uses EternalBlue MS17-010 to propagate.
  • Ransom: between $300 to $600. There is code to 'rm' (delete) files in the virus. Seems to reset if the virus crashes.
  • Backdooring: The worm loops through every RDP session on a system to run the ransomware as that user. It also installs the DOUBLEPULSAR backdoor. It corrupts shadow volumes to make recovery harder. (source: malwarebytes)
  • Kill switch: If the website www.iuqerfsodp9ifjaposdfjhgosurijfaewrwergwea.com is up the virus exits instead of infecting the host. (source: malwarebytes). This domain has been sinkholed, stopping the spread of the worm. Will not work if proxied (source).

update: A minor variant of the viru

@gerarldlee
gerarldlee / Experimenting with ChromeOS on VirtualBox.md
Last active November 14, 2024 07:32
Installing ChromeOS on VirtualBox using the NeverWare build

Installing ChromeOS on VirtualBox

  1. Download the NeverWare's ChromeOS build from http://www.neverware.com/freedownload

  2. Extract the *.bin.zip

  3. Convert it to VDI. vboxmanage convertdd chromiumos_image.bin chromiumos_image.vdi

  4. mv chromiumis_image.vdi C:\t\v\chromeos\

@ruario
ruario / appimage-vivaldi.sh
Last active September 30, 2024 18:44
A script to convert a Vivaldi rpm or deb into Appimage format.
#!/bin/sh
#
# appimage-vivaldi.sh (version 0.9)
#
# A script to convert a Vivaldi rpm or deb into AppImage format.
# Before you use this script, you may need to adjust the following
# variable, based on the name and location of AppImageTool on your
# system.
#
@nepsilon
nepsilon / git-change-commit-messages.md
Last active September 7, 2024 11:11
How to change your commit messages in Git? — First published in fullweb.io issue #55

How to change your commit messages in Git?

At some point you’ll find yourself in a situation where you need edit a commit message. That commit might already be pushed or not, be the most recent or burried below 10 other commits, but fear not, git has your back 🙂.

Not pushed + most recent commit:

git commit --amend

This will open your $EDITOR and let you change the message. Continue with your usual git push origin master.

How to remove old kernels in OpenSUSE or others distros:
-- List Kernels:
#rpm -qa | grep -i kernel
-- Delete kernel:
#rpm -e kernel-{VERSION}
@mamonu
mamonu / qcow2vdi.sh
Last active September 22, 2024 08:06
convert a qcow2 vm to a VirtualBox vm format
qemu-img convert -O vdi gnome.qcow2 gnome.vdi
#if its a raw image then:
VBoxManage convertdd opnstk.raw VBox.vdi --format VDI
@debashisbarman
debashisbarman / README.md
Last active February 15, 2024 02:19
A boilerplate Twitter bot that can retweet in response to the tweets matching particluar keyword (https://goo.gl/4whEIt)

Creating a Twitter bot with Node.js

Learn how you can create your own Twitter bot using Node.js and the new Twitter API. The bot will auto retweet in response to tweets with some particular hashtags. (https://goo.gl/4whEIt)

Tools we need

Here are the tools we’ll be using to create the bot — 

  • Node.js installed in your machine
  • A registered Twitter account

Create a Twitter application