Skip to content

Instantly share code, notes, and snippets.

View alexxxdev's full-sized avatar
🎧
Cyberpunk 2077 - Never Fade Away by P. T. Adamczyk & Olga Jankowska

Alexey Derendyaev alexxxdev

🎧
Cyberpunk 2077 - Never Fade Away by P. T. Adamczyk & Olga Jankowska
View GitHub Profile
@alexxxdev
alexxxdev / customization.xml
Created January 22, 2021 03:15
customization toolbar androidstudio\idea
<application>
<component name="com.intellij.ide.ui.customization.CustomActionsSchema">
<group value="RebuildGradleProject" is_action="true" action_type="1" position="1">
<path value="root" />
<path value="Main Toolbar" />
<path value="Toolbar Run Actions" />
<option name="myInitialPosition" value="-1" />
</group>
<group seperator="true" action_type="1" position="2">
<path value="root" />
gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize'
@alexxxdev
alexxxdev / Idea panel
Last active November 16, 2018 04:07
Idea panel
config/options/customization.xml
<application>
<component name="com.intellij.ide.ui.customization.CustomActionsSchema">
<group value="ReformatCode" is_action="true" action_type="1" position="1">
<path value="root" />
<path value="Main Toolbar" />
<path value="Toolbar Run Actions" />
<option name="myInitialPosition" value="-1" />
</group>
# Reset the index and working tree to the desired tree
# Ensure you have no uncommitted changes that you want to keep
git reset --hard 56e05fced
# Move the branch pointer back to the previous HEAD
git reset --soft HEAD@{1}
git commit -m "Revert to 56e05fced"
@alexxxdev
alexxxdev / gist:1dd024cadea091ca64154f9616d5739a
Created August 16, 2018 15:08
remote: fatal: pack exceeds maximum allowed size
# Adjust the following variables as necessary
REMOTE=origin
BRANCH=$(git rev-parse --abbrev-ref HEAD)
BATCH_SIZE=500
# check if the branch exists on the remote
if git show-ref --quiet --verify refs/remotes/$REMOTE/$BRANCH; then
# if so, only push the commits that are not on the remote already
range=$REMOTE/$BRANCH..HEAD
else
# set to yes if you want Conky to be forked in the background
background yes
# Use Xft?
use_xft yes
# Xft font when Xft is enabled
#xftfont FreeSans:bold:size=8
xftfont FreeSans:bold:size=8
@alexxxdev
alexxxdev / NO_PUBKEY elementary
Last active March 1, 2018 12:09
NO_PUBKEY elementary
wget -q "http://packages.elementary.io/key.asc" -O- | sudo apt-key add -
package com.gensport.utils.view
import android.content.Context
import android.content.res.TypedArray
import android.graphics.*
import android.os.Bundle
import android.os.Parcelable
import android.util.AttributeSet
import android.util.TypedValue
import android.view.MotionEvent
set PATH $PATH (find ~/.sdkman/candidates/*/current/bin -maxdepth 0)