Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris Ian Fiel ccfiel

View GitHub Profile
@ccfiel
ccfiel / change_public.py
Created Nov 9, 2020
Change permission FreshchatSDK.h in iOS
View change_public.py
import uuid
import os
#Tags
FILE_REF_SECTION = "PBXFileReference section"
PACKAGE_HEADER_REF_SECTION = "PBXNativeTarget section"
PACKAGE_HEADER_DEFINITION = "PBXHeadersBuildPhase section"
PUBLIC_HEADER_DEFINITION = "PBXBuildFile section */"
#Constants
View fastlane
default_platform(:ios)
platform :ios do
desc "Push a new release build to the App Store"
lane :release do
increment_build_number(xcodeproj: "Runner.xcodeproj")
get_certificates
get_provisioning_profile
build_app(workspace: "Runner.xcworkspace", scheme: "Runner")
upload_to_app_store
View ios.json
{"classes":{},"objectVersion":"46","archiveVersion":"1","objects":{"77831F370EFA70507DF0DDAD":{"isa":"PBXBuildFile","fileRef":"AFEEE4FF1C79F61D76046181"},"97C147071CF9000F007C117D":{"baseConfigurationReference":"7AFA3C8E1D35360C0083082E","isa":"XCBuildConfiguration","buildSettings":{"LD_RUNPATH_SEARCH_PATHS":"$(inherited) @executable_path\/Frameworks","ENABLE_BITCODE":"NO","DEVELOPMENT_TEAM":"2YZQZA92WF","LIBRARY_SEARCH_PATHS":["$(inherited)","$(PROJECT_DIR)\/Flutter"],"MARKETING_VERSION":"2.6","CLANG_ENABLE_MODULES":"YES","INFOPLIST_FILE":"Runner\/Info.plist","VERSIONING_SYSTEM":"apple-generic","SWIFT_OBJC_BRIDGING_HEADER":"Runner\/Runner-Bridging-Header.h","CODE_SIGN_ENTITLEMENTS":"Runner\/RunnerRelease.entitlements","ASSETCATALOG_COMPILER_APPICON_NAME":"AppIcon","SWIFT_VERSION":"5.0","PRODUCT_NAME":"$(TARGET_NAME)","CURRENT_PROJECT_VERSION":"30","FRAMEWORK_SEARCH_PATHS":["$(inherited)","$(PROJECT_DIR)\/Flutter"],"PRODUCT_BUNDLE_IDENTIFIER":"ph.bai.kahero-analytics"},"name":"Release"},"9CA78EAF78078746A0B98
View error-kahero.log
Building ph.bai.kahero for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: 2YZQZA92WF
Running Xcode build...
Xcode build done. 14.9s
Failed to build iOS app
Error output from Xcode build:
** BUILD FAILED **
View gist:b719c00958fb4794a3a13afc3d273578
./src/app/pages/settings/DiningOptionFees.jsx
Line 167:8: React Hook useEffect has missing dependencies: 'name', 'type', and 'value'. Either include them or remove the dependency array. You can also do a functional update 'setName(n => ...)' if you only need 'name' in the 'setName' call react-hooks/exhaustive-deps
./src/app/pages/settings/components/DiningOptionModal.jsx
Line 18:8: React Hook useEffect has a missing dependency: 'dispatch'. Either include it or remove the dependency array react-hooks/exhaustive-deps
Line 24:8: React Hook useEffect has a missing dependency: 'filteredOptionList.length'. Either include it or remove the dependency array react-hooks/exhaustive-deps
Line 66:34: Unnecessarily computed property ["diningOptionFees"] found no-useless-computed-key
./src/app/pages/settings/OpenTickets.jsx
Line 194:8: React Hook useEffect has a missing dependency: 'dispatch'. Either include it or remov
View gist:903fa8ea12344ecade7a8e5f456ae645
Started by GitLab push by Chris Ian Fiel
Running as SYSTEM
Building in workspace /var/lib/jenkins/workspace/kahero - backoffice
The recommended git tool is: NONE
using credential gitlab
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://gitlab.com/bailabs/kahero-web-app.git # timeout=10
Fetching upstream changes from https://gitlab.com/bailabs/kahero-web-app.git
> git --version # timeout=10
View auth.dart
import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'package:http/http.dart' as http;
import 'package:localstorage/localstorage.dart';
enum Platform { ios, android }
const TOKEN_STORAGE = "colyseus-auth-token";
@ccfiel
ccfiel / auth.dart
Created Sep 1, 2019
colyseus auth to dart
View auth.dart
import 'dart:io';
import 'package:http/http.dart' as http;
class Auth {
String token;
String endpoint;
Auth(String _endpoint) {
endpoint = _endpoint.replaceAll("ws", "http");
View options
[0] WebSocket {
[0] domain: null,
[0] _events:
[0] { close: [ [Function], [Object] ],
[0] error: [Function],
[0] pong: [Function: heartbeat] },
[0] _eventsCount: 3,
[0] _maxListeners: undefined,
[0] readyState: 1,
[0] protocol: '',
View backlight
#!/bin/bash
WORKDIR=/home/chris/
LOGFILE=/tmp/backlight.log
KBDBACKLIGHT=`cat /sys/devices/platform/asus-nb-wmi/leds/asus::kbd_backlight/brightness`
HOUR=`date +%H`
echo "---------------->" | tee -a $LOGFILE