Skip to content

Instantly share code, notes, and snippets.

@s7dhansh
s7dhansh / bloatware.txt
Last active April 19, 2023 06:19
Oneplus 8/8T/8Pro/9/9Pro Debloater
# for oxygen os 11
android.autoinstalls.config.oneplus
cn.oneplus.nvbackup
cn.oneplus.oemtcma - cell traffic management - Tiered Contention Multiple Access
cn.oneplus.photos
com.android.bips - print service
com.android.bookmarkprovider
com.android.captiveportallogin - for the cell companies that require login
com.android.carrierdefaultapp - cell companies app
@s7dhansh
s7dhansh / vscode-keybindings.json
Last active September 26, 2019 12:37
VSCode User Settings
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+s",
"command": "workbench.action.files.saveAll"
},
{
"key": "alt+t",
"command": "workbench.action.terminal.toggleTerminal"
},
Accounts.registerLoginHandler(function(req) {
if (!req.cordova_g_plus) { // skip this login handler if this flag is not there.
return;
}
check(req.cordova_g_plus, Boolean);
check(req.email, String);
check(req.idToken, String);
check(req.profile, [String]);
check(req.userId, String);
Meteor.publishComposite('visits', function(params) {
if (!this.userId) throw new Meteor.Error(403, 'Not authorized to do this operation');
check(params, Object);
check(params.date, Date);
if (!params.date) return null;
let date = params.date ? params.date : new Date();
let $gte = new Date(date.setHours(0, 0, 0, 0));
let $lt = moment($gte).add(1, 'd').toDate();
let query = {};
/**
* @author Sudhanshu
* @maintainers Sudhanshu
* @since Feb 08, 2017
*/
import React, {Component} from 'react';
import { createContainer } from 'meteor/react-meteor-data';
import { browserHistory } from 'react-router';
import moment from 'moment';
@s7dhansh
s7dhansh / README.md
Last active December 19, 2015 11:33
Internships at SettlIn

alt http://settlin.in

#FAQ: alt http://settlin.in

  1. I am desperate for a job. How can I prove my worth?
  2. I am placed in XYZ Company. But is that going to help build my career?
  3. How can I be a professional coder?

All these questions have a single answer - Join our Internship Program.

We, at SettlIn are building up a state-of-the-art product that will drastically reduce the real state troubles. This sector never even saw technology before Commonfloor or Housing happened, and still, the crucial major part of the buying process is completely oblivious to it. We plan to bring e to the reality, helping the consumers Settl In.

@s7dhansh
s7dhansh / rm-wallpaper
Created April 15, 2011 11:44
Deletes the current wallpaper and changes to another. (To be used with ranbg: http://gist.github.com/921514)
#!/bin/sh
wp=`cat $HOME/.tmp/wallpaper`
echo "Deleting: $wp"
rm -i "$wp"
ranbg
wp=`cat $HOME/.tmp/wallpaper`
echo "Changing wallpaper to: $wp"
@s7dhansh
s7dhansh / ranbg
Created April 15, 2011 10:57
Xubuntu: Random Wallpaper from a folder (recursive)
#!/bin/bash
# script: ranbg
# version 11.04
# description: randomly replace gnome background with one from a directory
# credits: Sudhanshu [http://s7dhansh.wordpress.com]
# license: GPL
# Requires imagemagick for xfce
# === User Options =============================================================
This is a Python script to extract GNOME/GTK's color scheme and apply it to Wine, so that the themes (approximately) match.
Instructions:
1. Set your Gnome theme as you would like it
2. Run with a command like "python wine_colors_from_gtk.py"
3. Restart any apps running in Wine. They should match the Gnome theme colors now.
Better description with screenshots here: http://www.endolith.com/wordpress/2008/08/03/wine-colors/
This is also stored on https://code.launchpad.net/~endolith/+junk/wine-color-scraper