Skip to content

Instantly share code, notes, and snippets.

View rschiang's full-sized avatar
🐳
Sailing

Poren Chiang rschiang

🐳
Sailing
View GitHub Profile
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active November 4, 2025 18:32
set -e, -u, -o, -x pipefail explanation
@mtking2
mtking2 / apod.md
Last active December 4, 2024 18:56
NASA APOD wallpaper script

NASA APOD wallpaper for Unix systems

script

Save to a file wherever it please you (I saved it to ~/scripts/apod.sh)
Maybe make sure it is executable: chmod 755 ~/scripts/apod.sh

#!/bin/bash
# apod.sh
@okeehou
okeehou / outline-server-setup.md
Last active November 13, 2024 04:51
How to setup an Outline VPN Server on Ubuntu 16.04

How to setup an Outline VPN Server on Ubuntu 16.04 Server

This guide will show you how to install Outline Server on an Ubuntu 16.04 Server, use Outline Manager for Windows and connect to your Outline Server on Windows and Anroid.

Install Outline Manager

Outline Manager supports Windows, macOS and Linux.

Outline Manager for Windows

#!/usr/bin/env python3
# 歸納法樣板
class InductionProof:
def induction(self, tabs, n):
if n == 1:
return tabs + self.base_case.replace("n", str(n))
else:
m = n-1
inductive_hypothesis = "\n".join(tabs + s for s in self.induction(tabs, m).split("\n"))

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

@sapics
sapics / index.html
Last active April 11, 2019 03:15 — forked from lehni/index.html
<!DOCTYPE html>
<html>
<head>
<!--
Copyright (c) 2014-2017, Jan Bösenberg & Jürg Lehni
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@Inndy
Inndy / super_decoder.js
Last active October 19, 2021 05:34
Decode jsfuck / aaencode / jjencode
!function () {
var global = this;
var old_eval = global.eval;
var old_const = global.Function.prototype.constructor;
global.Function.prototype.constructor = function (code) {
console.log('Function Constructor: ' + code);
return old_const(code);
};
global.eval = function (code) {
console.log('EVIL: ' + code);

May 26th 2016, Madrid, Audrey Tang, Baki Youssoufou, Richard Bartlett, Natalia Lombardo, Pablo Soto

The highlight of my recent trip to Europe was this conversation in the photograph above (also captured in this 360° video, and this audio recording).

The people in this photograph are participants from the Tunisian revolution in 2010, the Spanish 15M movement and the New Zealand Occupy movement in 2011, the 2014 Sunflower Movement from Taiwan, and Nuit Debout, the horizontal protest movement currently underway in France.

The recording is 3 hours long, so I've loosely transcribed it and cut it down into a couple of chapters:

@alirobe
alirobe / reclaimWindows10.ps1
Last active October 22, 2025 05:28
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
### OR take a look at
### https://github.com/HotCakeX/Harden-Windows-Security
@andy0130tw
andy0130tw / princexml-experiment-0217
Last active May 27, 2019 00:07
用 CSS3 Paged Media 打造優秀排版的電子書 feat. PrinceXML
This file is left blank intentionally.