In your favorite text editor, open the following file :
- Windows
C:\Users\\AppData\Local\slack\app-\resources\app.asar.unpacked\src\static\ssb-interop.js
#!/bin/bash | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
target="${1:-/opt/sublime_merge/sublime_merge}" | |
check_sha() { | |
local sha_valid |
How To Stop Procrastinating | Cure Procrastination Forever | Dan Lok | |
The Perfectionist (I should do it perfectly) | |
The Lazy Bastard (Weather is not good today) | |
The Comparer (Others are better so better not try) | |
The Futurist (What will happen in future) | |
The Idiot (I don't know) | |
The Dumb Listener (My friend advised to take medicine instead of exercise) | |
The Hooper (Switcher) | |
The Shit Maker (Everything is dirty) |
### Fix for linux-firmware | |
I had some warnings/errors while installing linux-firmware | |
# dpkg -i linux-firmware_1.158_all.deb | |
update-initramfs: Generating /boot/initrd.img-4.8.0-53-generic | |
W: Possible missing firmware /lib/firmware/i915/kbl_dmc_ver1_01.bin for module i915 | |
Warning: No support for locale: en_AU.utf8 | |
# | |
To fix this |
As websites become more JavaScript heavy, it's harder to automate things like screenshotting for archival purposes. I've seen examples and suggestions to use PhantomJS for visual testing/archiving of websites, but have run into issues such as the non-rendering of webfonts. I've never tried out Selenium until today...and while I'm not thinking about performance implications yet, Selenium seems far more accurate than PhantomJS...which makes sense since it actually opens a real browser. And it's not too hard to script to do complex interactions: here's an [example of how to log in to Twitter, write a tweet, upload an image, and send a tweet via Selenium and DOM element selection](https://gist.github.com/dannguyen/8a6fa49253c1d6a0eb92
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Example of `adapter' design pattern | |
# Copyright (C) 2011 Radek Pazdera | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. |
/* | |
* Example of a singleton design pattern. | |
* Copyright (C) 2011 Radek Pazdera | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* This program is distributed in the hope that it will be useful, |