Skip to content

Instantly share code, notes, and snippets.

🔥
By doing nothing, you become nothing

Mitchel Pawirodinomo pawiromitchel

🔥
By doing nothing, you become nothing
Block or report user

Report or block pawiromitchel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pawiromitchel
pawiromitchel / tutorial_kali_autologin_afterupdate.txt
Created Nov 2, 2019 — forked from intrd/tutorial_kali_autologin_afterupdate.txt
Kali light xfce4 root autologin (works after lightdm update)
View tutorial_kali_autologin_afterupdate.txt
## Kali light xfce4 root autologin (works after lightdm update)
# @author intrd - http://dann.com.br/
# @license Creative Commons Attribution-ShareAlike 4.0 International License - http://creativecommons.org/licenses/by-sa/4.0/
After lighdtdm update root autologin is broken fix doing this:
nano /etc/lightdm/lightdm.conf
at [Seat:*] group uncomment/edit:
autologin-user=root
autologin-user-timeout=0
View gist:dbd4ad3f5424cb336c43dadf0e7006c1
git log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
@pawiromitchel
pawiromitchel / bulk_rename.sh
Created Aug 29, 2019
Bulk rename files and increment the name
View bulk_rename.sh
a=10000121
for i in *.idx; do
mv -i -- "$i" "$a"
let a=a+1
done
@pawiromitchel
pawiromitchel / .htaccess
Created Aug 23, 2019
Redirect http to https
View .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
</IfModule>
View download-mp3.sh
youtube-dl -f bestaudio --extract-audio --output "~/Downloads/%(title)s.%(ext)s" --audio-quality 0 --audio-format mp3 $1
@pawiromitchel
pawiromitchel / autmate_simulate.sh
Created Jul 23, 2019
Automate & Simulate android touches
View autmate_simulate.sh
#!/bin/bash
for i in {1..198}
do
echo "Deleting $i"
# adb shell input tap x y
adb shell input tap 202 418
sleep 1
adb shell input tap 655 111
sleep 1
View disable_full_grop_by.sql
SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
View split_function.sql
CREATE FUNCTION SPLIT_STR(
x VARCHAR(255),
delim VARCHAR(12),
pos INT
)
RETURNS VARCHAR(255)
RETURN REPLACE(SUBSTRING(SUBSTRING_INDEX(x, delim, pos),
LENGTH(SUBSTRING_INDEX(x, delim, pos -1)) + 1),
delim, '');
@pawiromitchel
pawiromitchel / gist:7261a414fcdfbf0e0388d5eda8065291
Last active Jun 11, 2019
Cherry picking from a forked repository
View gist:7261a414fcdfbf0e0388d5eda8065291
# add the second fork, code you want to take from
git remote add <fork_repo_name> <fork_repo_url>
git fetch <fork_repo_name>
# view the branches
git branch -a
# get the hash
git log <fork_repo_name>
@pawiromitchel
pawiromitchel / allow_users_to_create_triggers.sql
Created Jun 6, 2019
Allow MySQL users to create triggers
View allow_users_to_create_triggers.sql
set global log_bin_trust_function_creators=1;
You can’t perform that action at this time.