Skip to content

Instantly share code, notes, and snippets.

@kythanh
kythanh / intermediate-certificates
Created May 14, 2021 04:15
Apple Intermediate Certificates
# Worldwide Developer Relations Certificate Authority (Expiring 02/07/2023)
https://developer.apple.com/certificationauthority/AppleWWDRCA.cer
# Worldwide Developer Relations Certificate Authority (Expiring 02/20/2030)
https://www.apple.com/certificateauthority/AppleWWDRCAG3.cer
@kythanh
kythanh / media-query.css
Created September 12, 2019 15:24 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@kythanh
kythanh / MobileSafari crash logs on macOSMojave
Created October 23, 2018 06:28
MobileSafari crash logs on macOSMojave
Process: MobileSafari [34753]
Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/Applications/MobileSafari.app/MobileSafari
Identifier: MobileSafari
Version: 12.0 (604.1)
Code Type: X86-64 (Native)
Parent Process: launchd_sim [34212]
Responsible: MobileSafari [34753]
User ID: 501
Date/Time: 2018-10-23 12:47:10.711 +0700
@kythanh
kythanh / Panic Report in safe mode Wed Dec 27 11:26:25 2017.log
Created December 27, 2017 04:28
Panic Report in safe mode Wed Dec 27 11:26:25 2017
Anonymous UUID: 3BB71687-857F-A540-A7A3-4F4E63319095
Wed Dec 27 11:26:25 2017
*** Panic Report ***
Machine-check capabilities: 0x0000000000000c0a
family: 6 model: 70 stepping: 1 microcode: 15
signature: 0x40661
Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
10 error-reporting banks
@kythanh
kythanh / Panic Report 27 11:11:17 2017.log
Created December 27, 2017 04:13
Panic Report 27 11:11:17 2017
Anonymous UUID: 3BB71687-857F-A540-A7A3-4F4E63319095
Wed Dec 27 11:11:17 2017
*** Panic Report ***
Machine-check capabilities: 0x0000000000000c0a
family: 6 model: 70 stepping: 1 microcode: 15
signature: 0x40661
Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
10 error-reporting banks
@kythanh
kythanh / Kernel_2017-12-26-111849_thanhchi-2.panic
Created December 26, 2017 05:02
Kernel_2017-12-26-111849_thanhchi-2.panic logs
Anonymous UUID: 3BB71687-857F-A540-A7A3-4F4E63319095
Tue Dec 26 11:18:49 2017
*** Panic Report ***
Machine-check capabilities: 0x0000000000000c0a
family: 6 model: 70 stepping: 1 microcode: 15
signature: 0x40661
Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
10 error-reporting banks
@kythanh
kythanh / MobileSMS-2017-09-25-154953.ips
Created September 25, 2017 08:54
Message app crash logs on iOS 11
{"app_name":"MobileSMS","timestamp":"2017-09-25 15:49:53.65 +0700","app_version":"5.0","slice_uuid":"1d7030c6-37be-3792-ba67-22b4a275f596","adam_id":0,"build_version":"1.0","bundleID":"com.apple.MobileSMS","share_with_app_devs":false,"is_first_party":true,"bug_type":"109","os_version":"iPhone OS 11.0 (15A372)","incident_id":"91FCB8B6-1B53-4020-987C-67905A72572C","name":"MobileSMS"}
Incident Identifier: 91FCB8B6-1B53-4020-987C-67905A72572C
CrashReporter Key: c46feacbf8241474f4adbc618b85dc37ae61ab46
Hardware Model: iPhone7,2
Process: MobileSMS [6115]
Path: /Applications/MobileSMS.app/MobileSMS
Identifier: com.apple.MobileSMS
Version: 1.0 (5.0)
Code Type: ARM-64 (Native)
Role: Foreground
@kythanh
kythanh / Paragraph_drupal8.php
Created July 19, 2017 04:41
Programmatically create Paragraph entity in Drupal8
$paragraph = Paragraph::create([
'type' => 'paragraph_type_name',
'field_text' => array(
"value" => '...content...',
"format" => "full_html"
),
]);
$paragraph->save();
$node = entity_load('node', $nid);
@kythanh
kythanh / uuid_generate_v4.sql
Last active June 28, 2017 09:00
Using uuid_generate_v4() to generate GUID on PostgreSQL
--1. First to enable the extention:
CREATE EXTENSION "uuid-ossp";
--2. Then Alter the PK column
alter table my_table alter column id set Default uuid_generate_v4();
@kythanh
kythanh / Updating spec repo `master`
Created May 12, 2017 17:43
Updating spec repo `master`
This file has been truncated, but you can view the full file.
Updating spec repo `master`
Performing a deep fetch of the `master` specs repo to improve future performance
$ /usr/bin/git -C /Users/imanust/.cocoapods/repos/master pull --ff-only
Checking out files: 100% (30364/30364), done.
Updating 809d86f6e2c..f8188772de1
Fast-forward
CocoaPods-version.yml | 2 +-
.../0.3.0/CancellationToken.podspec.json | 40 +
.../1.0.0/CancellationToken.podspec.json | 41 +
.../0/CodeQuickKit/4.2.0/CodeQuickKit.podspec.json | 121 ++