Skip to content

Instantly share code, notes, and snippets.

View luvwinnie's full-sized avatar

Leow Chee Siang luvwinnie

  • Japan,Yamanashi
  • 04:01 (UTC -12:00)
View GitHub Profile
@luvwinnie
luvwinnie / slack-exporter-with-token.py
Last active July 9, 2023 18:02
Slack exporter by using API SLACK_TOKEN
import json
import logging
import os
import zipfile
from datetime import datetime
import click
# Import WebClient from Python SDK (github.com/slackapi/python-slack-sdk)
from slack_sdk import WebClient
from slack_sdk.errors import SlackApiError
@luvwinnie
luvwinnie / change_default_gcc-g++.sh
Created September 22, 2018 05:26
change default gcc and g++
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 10
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 20
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 20
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30
sudo update-alternatives --set cc /usr/bin/gcc
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30
sudo update-alternatives --set c++ /usr/bin/g++
@luvwinnie
luvwinnie / 0_reuse_code.js
Created July 26, 2017 00:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console