Skip to content

Instantly share code, notes, and snippets.

View van-vothanh's full-sized avatar

Van Vo Thanh van-vothanh

  • Sydney, Australia
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.0</real>
@van-vothanh
van-vothanh / jwt.cs
Last active April 4, 2023 21:55
Jwt Jwe Jws
using System;
using System.Collections.Generic;
using System.IdentityModel.Tokens.Jwt;
using System.Security.Claims;
using Microsoft.IdentityModel.Tokens;
namespace CreateTokens
{
/// <summary>
/// Creating and validating JwtTokens with symmetric and asymmetric keys
@van-vothanh
van-vothanh / slack-dark-mode.css
Created March 15, 2017 12:01
Dark mode css for Slack
ts-message:hover:not(.standalone):not(.multi_delete_mode):not(.highlight) {
background: #353535;
}
ts-message {
font-size: .8375rem !important;
}
#col_channels,
#team_menu,
@van-vothanh
van-vothanh / index.js
Last active March 15, 2017 12:04
Slack index.js with custom dark mode theme, to be placed in /Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/
require('../stat-cache');
const profiler = require('../utils/profiler');
if (profiler.shouldProfile()) profiler.startProfiling();
var startup = function() {
var url = require('url');
// Skip "?loadSettings=".
var fileUri = url.parse(window.location.href);