Skip to content

Instantly share code, notes, and snippets.

View sudhirkhanger's full-sized avatar
🎯
Focusing

Sudhir Singh Khanger sudhirkhanger

🎯
Focusing
View GitHub Profile
'pod install' command failed with code 1.
Full command: pod install
Error message:
WARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
Consider adding the following to ~/.profile:
export LANG=en_US.UTF-8

/usr/local/Cellar/[email protected]/3.0.6/lib/ruby/3.0.0/unicode_normalize/normalize.rb:141:in `normalize': Unicode Normalization not appropriate for ASCII-8BIT (Encoding::CompatibilityError)
from /usr/local/lib/ruby/gems/3.0.0/gems/cocoapods-1.12.1/lib/cocoapods/config.rb:166:in `unicode_normalize'
from /usr/local/lib/ruby/gems/3.0.0/gems/cocoapods-1.12.1/lib/cocoapods/config.rb:166:in `installation_root'
<queries>
<intent>
<action android:name="android.intent.action.DIAL" />
<data android:mimeType="none" />
</intent>
</queries>
[ERROR] Errors:
[ERROR] PebbleCompiler:
[ERROR] - Error rendering Pebble template (see template source below)
[ERROR] Errors:
[ERROR] PebbleCompiler:
[ERROR] - <article class="post single">
<header>
<div class="title">
Warning (bytecomp): the following functions are not known to be defined:
flycheck-overlay-errors-in, flycheck-error-format-message-and-id,
flycheck-error-level
Warning (bytecomp): Unused lexical variable ‘&Position’
Warning (bytecomp): Unused lexical variable ‘&Range’
Warning (bytecomp): Unused lexical variable ‘&Location’
Warning (bytecomp): attempt to let-bind constant ‘:uri’
Warning (bytecomp): attempt to let-bind constant ‘:range’
Warning (bytecomp): attempt to let-bind constant ‘:start’
Warning (bytecomp): attempt to let-bind constant ‘:line’
Category Description Idea Emacs
CREATE AND EDIT Delete Line at Caret Ctrl+Y C-S-backspace/M-x kill-whole-line
CREATE AND EDIT Extend/Shrink Selection Ctrl+W/Ctrl+Shift+W C-M-W / C-S-W (conflict with Klipper)
CREATE AND EDIT Cut/Copy/Paste Ctrl+X/Ctrl+C/Ctrl+V S-delete/C-insert/S-insert
CREATE AND EDIT Duplicate Current Line or Selection Ctrl+D M-D
NAVIGATE IN CONTEXT Last Edit Location Ctrl+Shift+Back C-S-Back
NAVIGATE IN CONTEXT Navigate Back/Forward Ctrl+Alt+Left / Right C-M-Left/Right
VERSION CONTROL Next Difference/Previous Difference F7/Shift+F7 C-M-S-Down/C-A-S-Down
FIND EVERYTHING Find/Replace Ctrl+F/Ctrl-R C-M-S(word)/M-
private static final int
@sudhirkhanger
sudhirkhanger / singleton.kt
Last active March 20, 2021 04:58
How to initialize Singleton?
companion object {
@Volatile
private var INSTANCE: WordRoomDatabase? = null
fun getDatabase(context: Context): WordRoomDatabase {
return INSTANCE ?: synchronized(this) {
val instance = Room.databaseBuilder(context.applicationContext, WordRoomDatabase::class.java, "word_database").build()
INSTANCE = instance
// return instance
[ERROR] Failed while connecting to the server. Check the connection (http/https, port, proxy, credentials, etc.) of your maven dependency locators. If you suspect this is a bug, you can create an issue on https://github.com/holgerbrandl/kscript
[kscript] [ERROR] Exception: org.sonatype.aether.resolution.DependencyResolutionException: failed to load 'io.github.javaeden.orchid:OrchidAll:jar:0.18.0 (runtime)' from ["kotlinx (https://kotlin.bintray.com/kotlinx, releases+snapshots) without authentication", "jitpack (https://jitpack.io, releases+snapshots) without authentication", "jcenter (http://jcenter.bintray.com/, releases+snapshots) without authentication"] into /home/sudhir/.m2/repository
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<dir>~/.fonts</dir>
<match target="font">
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
</match>
<match target="font">
[sudhir@precision ~]$ dnf history info 361
Transaction ID : 361
Begin time : Thursday 17 October 2019 09:44:16 PM IST
Begin rpmdb : 2645:5c2271443e3091fb231330d03c3ed921e6cbc9ba
End time : Thursday 17 October 2019 09:48:02 PM IST (226 seconds)
End rpmdb : 2645:030a48e803e312b58aa2965fae5829a1c5d068fc
User : Sudhir Khanger <sudhir>
Return-Code : Success
Releasever : 30
Command Line : --refresh update -y