Skip to content

Instantly share code, notes, and snippets.

View mayurdange's full-sized avatar
:octocat:
Jedi

mayur mayurdange

:octocat:
Jedi
  • CTS
  • Pune
View GitHub Profile
adb devices
pause
adb shell pm uninstall --user 0 ru.yandex.searchplugin
adb shell pm uninstall --user 0 com.android.emergency
adb shell pm uninstall --user 0 com.xiaomi.glgm
adb shell pm uninstall --user 0 com.android.cellbroadcastreceiver
adb shell pm uninstall --user 0 com.android.egg
adb shell pm uninstall --user 0 com.micredit.in
adb shell pm uninstall --user 0 com.mipay.wallet.id
adb shell pm uninstall --user 0 com.xiaomi.mirecycle
@rem *** Disable Some Service ***
sc stop DiagTrack
sc stop diagnosticshub.standardcollector.service
sc stop dmwappushservice
sc stop WMPNetworkSvc
sc stop WSearch
sc config DiagTrack start= disabled
sc config diagnosticshub.standardcollector.service start= disabled
sc config dmwappushservice start= disabled
Find What: (\b[a-z]+|\G(?!^))((?:[A-Z]|\d+)[a-z]*)
Replace With: \U\1_\2
Match Case: ON.
https://regex101.com/r/uj9mGm/1
https://stackoverflow.com/a/43768828
https://stackoverflow.com/questions/17173972/how-do-you-add-swap-to-an-ec2-instance
sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
sudo /sbin/mkswap /var/swap.1
sudo chmod 600 /var/swap.1
sudo /sbin/swapon /var/swap.1
add this line to /etc/fstab:
/var/swap.1 swap swap defaults 0 0
@mayurdange
mayurdange / youtube-dl-playlist
Created December 11, 2018 15:56 — forked from saeidzebardast/youtube-dl-playlist
Download Youtube playlist in a folder and indexing videos using youtube-dl
alias youtube-dl-playlist="youtube-dl --ignore-errors --output '%(playlist)s/%(playlist_index)s- %(title)s.%(ext)s'"
To see which folders will be deleted,
FOR /d /r . %d in (node_modules) DO @IF EXIST "%d" echo %d"
And then to actually delete them, just run this,
FOR /d /r . %d in (node_modules) DO @IF EXIST "%d" rm -rf "%d"
from : https://winsmarts.com/delete-all-node-modules-folders-recursively-on-windows-edcc9a9c079e
fastest way to delete folder with many files
del /f/s/q foldername > nul
SET SERVEROUTPUT ON;
CREATE OR REPLACE PROCEDURE a_proc
AS
CURSOR acteurs_cur IS
select ACTID, CJUCODE, LANCODE, UTICODECREAT, PAYCODE, ACTCODE, ACTLIBCOURT, ACTNOM from acteur where actid in (1,242);
CURSOR acteurs_cur2 IS
select ACTID, CJUCODE, LANCODE, UTICODECREAT, PAYCODE, ACTCODE, ACTLIBCOURT, ACTNOM from acteur where actid in (245,246);
acteurs_t acteurs_cur%ROWTYPE;
TYPE acteurs_ntt IS TABLE OF acteurs_t%TYPE;
l_acteurs acteurs_ntt;
@mayurdange
mayurdange / gist:01808d7dbf482cbb969081ba13ab7a68
Created March 22, 2018 09:55 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@mayurdange
mayurdange / ObjectToXMLUsingReflection
Created March 19, 2018 11:56
prints the contents of object, [useful in case the toString() is not properly implemented]
XStream l_xstream = new XStream( new Sun14ReflectionProvider( new FieldDictionary( new ImmutableFieldKeySorter() ) ), new DomDriver("utf-8") );
trace.error( l_xstream.toXML( instance_here_will_be_converted_into_xml_using_reflection ));
@mayurdange
mayurdange / TimeTravel.sql
Created March 9, 2018 10:54
oracle query for data back in time.
select * from CUSTOMERS as of TIMESTAMP SYSTIMESTAMP -1;