Skip to content

Instantly share code, notes, and snippets.

@FrancisChung
FrancisChung / Program.cs
Created May 16, 2024 05:40 — forked from lmcarreiro/Program.cs
Get list of Access Point (BSSID and Signal) using C#
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
@FrancisChung
FrancisChung / Program.cs
Created May 16, 2024 05:40 — forked from lmcarreiro/Program.cs
Get list of Access Point (BSSID and Signal) using C#
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
@FrancisChung
FrancisChung / python_decorator_guide.md
Created August 5, 2021 00:18 — forked from Zearin/python_decorator_guide.md
The best explanation of Python decorators I’ve ever seen. (An archived answer from StackOverflow.)

NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.


Q: How can I make a chain of function decorators in Python?


If you are not into long explanations, see [Paolo Bergantino’s answer][2].

@FrancisChung
FrancisChung / gist:0f21a679e733d808997cfc5e305e9a46
Created July 30, 2021 11:52 — forked from SeriousM/gist:fd6091ac72501405fb2ed82b4cc0d421
Kill steam.exe on Windows Shutdown/Restart
Task Scheduler
Name: Kill SteamApp on Shutdown or Restart
Trigger:
When: On an Event
Log: System
Source: USER32
EventID: 1074
Start a program:
Program/Script: taskkill
Arguments: /f /t /im Steam.exe
@FrancisChung
FrancisChung / TorrentFileReader.cs
Created April 12, 2020 02:56 — forked from ttrider/TorrentFileReader.cs
parse .torrent file into JSON in C#
using System;
using System.IO;
using System.Text;
using Newtonsoft.Json.Linq;
namespace ReadTorrentFile
{
class Program
{
static void Main(string[] args)
@FrancisChung
FrancisChung / gist:dbee80935b3a39af18bc72863e1eb2a9
Created April 3, 2020 00:14 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@FrancisChung
FrancisChung / README-Template.md
Created March 6, 2020 23:34 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@FrancisChung
FrancisChung / powercfg-win10-more-settings.cmd
Created November 14, 2019 07:02 — forked from NominaceTacitus/powercfg-win10-more-settings.cmd
Show/hide hidden settings in Win10 Power Options
@echo on
REM checked for Windows 10
REM fork from https://gist.github.com/theultramage/cbdfdbb733d4a5b7d2669a6255b4b94b
REM you may want full list https://gist.github.com/raspi/203aef3694e34fefebf772c78c37ec2c
REM SET attrib=+ATTRIB_HIDE
SET attrib=-ATTRIB_HIDE
REM Hard disk burst ignore time
powercfg -attributes 0012ee47-9041-4b5d-9b77-535fba8b1442 80e3c60e-bb94-4ad8-bbe0-0d3195efc663 %attrib%