Skip to content

Instantly share code, notes, and snippets.

View hikkidev's full-sized avatar

Sora Nai hikkidev

View GitHub Profile
@andreibosco
andreibosco / yubikey-windows10.md
Last active May 13, 2024 22:13
Setting up Yubikey with SSH and Git on Windows 10 + Powershell
@iaindooley
iaindooley / delete_archived_cards
Created December 1, 2018 02:55
Delete all archived cards
function deleteAllArchivedCards(notification)
{
var card = new Notification(notification).addedCard();
if(card.name() == "Clear archived cards")
{
TrelloApi.searchCardsInBoards(card.board(),"is:archived").each(function(card)
{
Logger.log(card);
card.del();
^(?!.*(BtGatt|dalvik|Environment|DataRouter|FA|art|Wifi|ServiceManager|Atfwd|tnet|MDnsDS|Download|Bluetooth|slim|QSEECOMAPI|WVCdm|QC-time|sensors|nanohub|Drm|Babel|Dropbox|gsamlab|Cryptd|Vold|QC_|Conscrypt|Dns|sound|NetWork|OpenGL|TLog|GMPM|Microphone|Process|Dynamite|cr_|VideoCapabilities|libEGL|NetdEventListenerService|Sensors|Netd|audit|Zygote|Watchdog|ity|memtrack|fb4a|LoadedApk|ImsAdaptorImpl|EPDG|CursorWindow|tworkdiagnosti|PackageManager))
@wavezhang
wavezhang / java_download.sh
Last active June 28, 2024 15:42
download java from oracle without login
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz
@tatocaster
tatocaster / RealPathUtil.java
Last active May 5, 2024 16:59
Real Path Utility class for Android, works for all API
public class RealPathUtil {
public static String getRealPath(Context context, Uri fileUri) {
String realPath;
// SDK < API11
if (Build.VERSION.SDK_INT < 11) {
realPath = RealPathUtil.getRealPathFromURI_BelowAPI11(context, fileUri);
}
// SDK >= 11 && SDK < 19
else if (Build.VERSION.SDK_INT < 19) {
@cheshirrrcat
cheshirrrcat / remove-from-git-index
Created December 22, 2014 13:51
Удалить файл из индекса git-репозитория без его физического удаления
Для удаления файла из git-репозитория без его физического удаления:
git rm --cached mylogfile.log
Для удаления папки (рекурсивно) можно сделать так:
git rm -r --cached folderName
А для того, чтобы ситуация не повторялась, лучше добавьте файл или папку в .gitignore.