Skip to content

Instantly share code, notes, and snippets.

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

Chirag Chamoli chiragchamoli

💭
I may be slow to respond.
View GitHub Profile
sudo apt update
sudo apt -y install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository -y "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
apt-cache policy docker-ce
sudo apt -y install docker-ce
sudo apt -y install docker-compose
sudo usermod -aG docker $USER
sudo systemctl status docker
{
"id": "mongoDb(id)",
"contentType": "article|longform|tweet|video",
"description": "280 Chars",
"language": "en|tl",
"source" : {
"id": "UUID4()",
"display_name" : "",
"url": "",
"domain" : "",
@chiragchamoli
chiragchamoli / keywords.json
Created January 26, 2021 10:57 — forked from theikkila/keywords.json
7000 skill keywords
[
"Automotive",
"Budgeting",
"HVAC",
"Heaters",
"Hydraulics",
"Logistics Management",
"Management",
"Negotiation",
"Project Planning",
@chiragchamoli
chiragchamoli / business-keywords.py
Created January 26, 2021 10:57 — forked from samister2k/business-keywords.py
Business Studies keyword generator
print("welcome to the Business keyword generator")
print("these are your options as we are still working on this website")
print("Consumer")
print("Trader")
print("Brand name")
print("Contract")
print("Consideration")
print("Implied conditions")
print("3Rs")
print("Gurantee or Warranty")
Today, 8:12 AM on app version 30
OnePlus OnePlus5 (OnePlus5), Android 9
Report 1
java.lang.RuntimeException:
at android.os.AsyncTask$3.done (AsyncTask.java:354)
at java.util.concurrent.FutureTask.finishCompletion (FutureTask.java:383)
at java.util.concurrent.FutureTask.setException (FutureTask.java:252)
at java.util.concurrent.FutureTask.run (FutureTask.java:271)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1167)
package in.bets.smartplug.gcm;
import android.annotation.TargetApi;
import android.app.ActivityManager;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.ComponentName;
import android.content.Context;
java.lang.SecurityException:
at android.os.Parcel.createException (Parcel.java:1966)
at android.os.Parcel.readException (Parcel.java:1934)
at android.os.Parcel.readException (Parcel.java:1884)
at android.app.IActivityManager$Stub$Proxy.setServiceForeground (IActivityManager.java:5043)
at android.app.Service.startForeground (Service.java:695)
at in.bets.smartplug.gcm.RegistrationIntentService.onHandleIntent (RegistrationIntentService.java:33)
at android.app.IntentService$ServiceHandler.handleMessage (IntentService.java:76)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loop (Looper.java:214)
class component(object):
def __init__(self, arg):
super(component, self).__init__()
self.arg = arg
class ComponentX(*kwargs):
compoent_name = "populations"
x = slsl
dd = 10
profresstion =
@chiragchamoli
chiragchamoli / jshipster_and_and.js
Created September 9, 2018 15:48 — forked from berzniz/jshipster_and_and.js
Some small javascript hacks for hipsters
// Boring
if (isThisAwesome) {
alert('yes'); // it's not
}
// Awesome
isThisAwesome && alert('yes');
// Also cool for guarding your code
var aCoolFunction = undefined;
@chiragchamoli
chiragchamoli / generate-pushid.js
Created September 9, 2018 15:31 — forked from mikelehen/generate-pushid.js
JavaScript code for generating Firebase Push IDs
/**
* Fancy ID generator that creates 20-character string identifiers with the following properties:
*
* 1. They're based on timestamp so that they sort *after* any existing ids.
* 2. They contain 72-bits of random data after the timestamp so that IDs won't collide with other clients' IDs.
* 3. They sort *lexicographically* (so the timestamp is converted to characters that will sort properly).
* 4. They're monotonically increasing. Even if you generate more than one in the same timestamp, the
* latter ones will sort after the former ones. We do this by using the previous random bits
* but "incrementing" them by 1 (only in the case of a timestamp collision).
*/