Skip to content

Instantly share code, notes, and snippets.

View muth0mi's full-sized avatar
:octocat:
Always writing some Kotlin somewhere.

Oliver Muthomi muth0mi

:octocat:
Always writing some Kotlin somewhere.
View GitHub Profile
admin account info" filetype:log
!Host=*.* intext:enc_UserPassword=* ext:pcf
"# -FrontPage-" ext:pwd inurl:(service | authors | administrators | users) "# -FrontPage-" inurl:service.pwd
"AutoCreate=TRUE password=*"
"http://*:*@www” domainname
"index of/" "ws_ftp.ini" "parent directory"
"liveice configuration file" ext:cfg -site:sourceforge.net
"parent directory" +proftpdpasswd
Duclassified" -site:duware.com "DUware All Rights reserved"
duclassmate" -site:duware.com
@muth0mi
muth0mi / permissions.py
Created July 13, 2020 10:49 — forked from andreagrandi/permissions.py
IsAdminOrReadOnly is a custom Django Rest Framework permission class that allows Admin users to POST and anonymous to GET
from rest_framework.permissions import BasePermission, SAFE_METHODS
class IsAdminOrReadOnly(BasePermission):
def has_permission(self, request, view):
if request.method in SAFE_METHODS:
return True
else:
return request.user.is_staff
Download TWRP https://qc5.androidfilehost.com/dl/cFV9B-CyXJjhnBQ4nWxaGw/1570658781/24459283995305410/TWRP_3.0.0_Degas.zip?
# Install heimdall
# Run heimdall flash --RECOVERY recovery.img
@muth0mi
muth0mi / readme.md
Last active September 22, 2019 12:05
Fix the error "awk: cmd. line:7: warning: regexp escape sequence `\"' is not a known regexp operator"

Fix error in screenfetch

Error Details:

The line below displayed on executing screenfetch

awk: cmd. line:7: warning: regexp escape sequence `"' is not a known regexp operator

Fix:

  • Open the file /bin/screenfetch with root permissions
  • Search for the line 'gsub(/"/,"",de)'
  • Replace it with 'gsub(/"/,"",de)'.
@muth0mi
muth0mi / MyAdapter.java
Created August 8, 2019 17:55
Search Implementation
private List<T> showingList = new ArrayList<>(); // showingList is the collection used by the recyclerView adapter
// Method implementing search
public void performSearch(String query) {
/* ToDo: Show loading progress bars */
if (!query.isEmpty()) {
// For holding search results
List<T> results = new ArrayList<>();
Church
IQ
StackOverflow
Community
Map
Manage Bills