This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Generate Margin/Padding Classes | |
| * margin, margin-top, margin-bottom, margin-left, margin-right | |
| * padding, padding-top, padding-bottom, padding-left, padding-right | |
| */ | |
| @mixin margin-padding($min, $max, $css-property, $klass, $csspx: $min) { | |
| @while $min <= $max { | |
| @if $min != 0 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo 'file-chunk'{1..19}'.ts' | tr " " "\n" > file_listing | |
| cat file_listing | |
| touch combined_test_file.ts | |
| while read line; do cat $line >> combined_test_file.ts; done < file_listing | |
| while read line; do rm -f $line; done < file_listing | |
| rm -f file_listing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "always_show_minimap_viewport": false, | |
| "auto_complete": true, | |
| "auto_complete_commit_on_tab": true, | |
| "binary_file_patterns": | |
| [ | |
| "*.jpg", | |
| "*.jpeg", | |
| "*.png", | |
| "*.gif", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Find requests for a Device/API | |
| LOGFILE="log/development.log" | |
| OUTPUT=$(grep -an 'Started PUT "/api/v1/users/information' $LOGFILE | grep -o "........-....-....-....-............" | awk 'ORS="|"') | |
| OUTPUT=${OUTPUT%?}; | |
| echo $OUTPUT | |
| OUTPUT=$(egrep -an $OUTPUT $LOGFILE | grep 'userid => 15841' | grep -o "........-....-....-....-............" | awk 'ORS="|"') | |
| OUTPUT=${OUTPUT%?}; | |
| echo $OUTPUT | |
| egrep -an $OUTPUT $LOGFILE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| adb shell pm disable-user --user 0 com.oppo.market # Can not be disabled | |
| adb shell pm disable-user --user 0 com.google.ar.core | |
| adb shell pm disable-user --user 0 com.nearme.browser | |
| adb shell pm disable-user --user 0 com.oppo.qualityprotect | |
| adb shell pm disable-user --user 0 com.google.android.apps.wellbeing | |
| adb shell pm disable-user --user 0 com.facebook.system | |
| adb shell pm disable-user --user 0 com.facebook.services | |
| adb shell pm disable-user --user 0 com.colouros.gamespace # Failed | |
| adb shell pm disable-user --user 0 com.google.android.googlequick # Failed | |
| adb shell pm disable-user --user 0 com.android.providers.partnerbookmarks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'time' | |
| names = [] | |
| Dir.glob('*').select { |f| File.file?(f)}.each do |fn| | |
| file_name = fn.gsub('_', '') | |
| timestamp = Time.parse(file_name[file_name.index('20200'), 14]) | |
| ext = file_name.split(".").last.downcase | |
| if ext == "mp4" | |
| new_file_name = timestamp.strftime("VID%Y%m%d-%H%M%S") | |
| else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Rails console - handy commands | |
| # | |
| ActiveRecord::Base.logger = Logger.new(STDOUT) | |
| # Change log level to debug | |
| Rails.logger.level = Logger::DEBUG | |
| # Print the line & file from where SQL got triggerred | |
| ActiveRecord::Base.verbose_query_logs = true |
OlderNewer