Skip to content

Instantly share code, notes, and snippets.

View syneart's full-sized avatar

Jed Hong syneart

  • SentraSmart Inc.
  • Taipei, Taiwan
View GitHub Profile
@syneart
syneart / meld_hotfix_sonoma.sh
Last active May 31, 2024 07:56
Meld v3.21.0(r4) hotfix on MacOS with Sonoma(14) Intel CPU / Apple silicon (M1,M2,M3) CPU with Rosetta
### Test on https://github.com/yousseb/meld/releases/tag/osx-20
### OSX - 3.21.0 (r4) Sonoma
### !!! Note: You need put the Meld.app r4 build to the /Applications path first.
#!/bin/zsh
#Fix libpng16.16.dylib not found
install_name_tool -change /usr/local/opt/libpng/lib/libpng16.16.dylib @executable_path/../Frameworks/libpng16.16.dylib /Applications/Meld.app/Contents/Frameworks/libfreetype.6.20.0.dylib
#Fix libbrotlidec.1.dylib not found
@dinushchathurya
dinushchathurya / Deploy NodeJS using GitLab CI-CD
Created April 23, 2022 02:41
Deploy NodeJS using GitLab CI-CD
Deploy nodejs app with gitlab.com and pm2
=========================================
This manual is about setting up an automatic deploy workflow using [nodejs](https://nodejs.org/en/),
[PM2](http://pm2.keymetrics.io/), [nginx](https://nginx.org/) and
[GitLab CI](https://about.gitlab.com/features/gitlab-ci-cd/). It is tested on:
* Target server: **Ubuntu 16.04 x64.** This is suitable for Ubuntu 14.x.
* **Windows 10** on my PC to work.
@5teven1in
5teven1in / README.md
Last active June 26, 2021 07:48
HITCON CTF 2020 11011001 Writeup

11011001 [255pts]

0100111001101111001000000110100001101001011011100111010000100000011010000110010101110010011001010010110000100000011101110110100001100001011101000010000001100001011100100110010100100000011110010110111101110101001000000110010101111000011100000110010101100011011101000110100101101110011001110010000001100110011011110111001000111111

11011001-878450f7a8f95309ce756975ce912376d829c1d7caeed7f80da72ee3bc67e5ca

Author: david942j
30 Teams solved.

@tanyuan
tanyuan / fcitx-chewing.png
Last active February 26, 2023 14:20
Ubuntu: fcitx + chewing 新酷音輸入法
fcitx-chewing.png
@jamesnguyen101
jamesnguyen101 / latin1_to_utf8.sql
Created March 26, 2016 08:22
How to convert latin1_swedish_ci data into utf8_general_ci?
SELECT convert(cast(convert(LATIN1_FIELD using latin1) as binary) using utf8)
FROM LATIN1_TABLE;
-- http://stackoverflow.com/questions/12756877/how-to-convert-latin1-swedish-ci-data-into-utf8-general-ci
@dannluciano
dannluciano / threads.c
Created October 22, 2011 02:57
A simple example for using thread in c/c++.
// usage:
// gcc -o thread threads.c
// ./thread time
// time is the number of seconds
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>