Skip to content

Instantly share code, notes, and snippets.

View terwer's full-sized avatar
💭
I may be slow to respond.

terwer terwer

💭
I may be slow to respond.
View GitHub Profile
@terwer
terwer / js_timestamp_to_date.js
Created November 28, 2023 02:55
js timestamp to date
const convertTimestampToDateString = (timestamp) => {
const months = [
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
@terwer
terwer / parse_changelog.py
Last active April 24, 2023 13:30
parse git comment changelog and remove repeat commit message
import re
import shutil
from collections import defaultdict
def parse_changelog():
"""
:robot: A new release will be created
---
@terwer
terwer / wsl_ubuntu_setup_env.sh
Last active April 9, 2019 04:58
Ubuntu setup env for ssh in WSL
#!/bin/bash
set -e
SSHD_LISTEN_ADDRESS=127.0.0.1
SSHD_PORT=2222
SSHD_FILE=/etc/ssh/sshd_config
SUDOERS_FILE=/etc/sudoers
# 0. update package lists
sudo apt-get update
@terwer
terwer / first-vue.html
Created December 18, 2018 08:08
A Vue start
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
<title>Vue</title>
<link href="https://cdn.staticfile.org/material-design-iconic-font/2.2.0/css/material-design-iconic-font.css" rel="stylesheet"/>
<link href="https://unpkg.com/vuetify@1.0.17/dist/vuetify.min.css" rel="stylesheet">
<style>
[v-cloak] {
@terwer
terwer / wordpress-json-api-http-sample-data.md
Last active August 29, 2015 14:26
wordpress-json-api-http-sample-data.md

test

@terwer
terwer / metaweblog-api-http-sample-data.md
Last active July 19, 2019 15:17
metaWeblog API sample.