Skip to content

Instantly share code, notes, and snippets.

View f2face's full-sized avatar
💤

Surya Oktafendri f2face

💤
  • Riau, Indonesia
  • 06:19 (UTC +07:00)
View GitHub Profile
@f2face
f2face / jkt48_idn.csv
Last active January 12, 2024 07:23
JKT48 Members' IDN App Account
Name UUID Username
Adel 9b41afb1-718c-405c-b192-5f3a878c3f17 jkt48_adel
Alya 74e76417-0353-487f-b9b7-7520c0398e87 jkt48_alya
Amanda e8aa0877-684a-4430-8a3b-d96302e53aab jkt48_amanda
Anindya a5c72141-65a3-47be-86ef-1dc1feaab10d jkt48_anindya
Ashel cd6e6f40-0319-46d6-93f9-4ddccb896543 jkt48_ashel
Callie 0609625b-63dc-4e08-bd4b-4dfe124220ba jkt48_callie
Cathy f740e9da-772f-4ae2-8ddd-49f717aacf63 jkt48_cathy
Chelsea 7e9a83b8-4fd8-42ad-b4b6-54c00fbbe28d jkt48_chelsea
Chika 3472bb53-7da9-413f-82eb-9003df7df680 jkt48_chika
@f2face
f2face / Appx-Uninstaller.ps1
Created August 7, 2023 02:50 — forked from ThioJoe/Appx-Uninstaller.ps1
A basic script for uninstalling a list of app packages in Windows 10/11, including those pre-installed with Windows
# A basic script for uninstalling app packages in Windows 10/11, including those pre-installed with Windows
#
# Note: If you get an error about the script not being allowed to run, the below command will change the execution polciy temporarily for one session only:
# Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process
#
# To execute the script, open a Powershell window to the directory with the script and run the following command using your scripts file name (and don't forget the .\ )
# .\WhateverScriptName.ps1
# -------------------------------------------------------------------------------------------
# Script by ThioJoe - https://github.com/ThioJoe
@f2face
f2face / legacy-verified.csv
Created August 2, 2023 13:59 — forked from travisbrown/legacy-verified.csv
Twitter accounts with legacy verification on 4 April 2023 (see https://twitter.com/travisbrown/status/1643229276278235136)
We can't make this file beautiful and searchable because it's too large.
Twitter ID, Screen name, Followers
12,jack,6526006
13,biz,2608289
20,ev,1679155
57,SarahM,17448
59,Tim535353,9340
76,marciadorsey,19501
224,davepell,57523
291,goldman,916937
295,joshk,149086
@f2face
f2face / concat.cmd
Last active September 11, 2022 23:51
FFmpeg commands for video concatenating/transcoding. Works fine for SHOWROOM & TikTok Live. [Windows]
:: Concat files.
:: Usage example: concat list.txt output.mp4
set input=%1
set output=%2
ffmpeg -f concat -safe 0 -i %input% -c copy %output%
@f2face
f2face / AuthyToOtherAuthenticator.md
Created March 6, 2021 03:20 — forked from gboudreau/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Generating Authy passwords on other authenticators


There is an increasing count of applications which use Authy for two-factor authentication. However many users who aren't using Authy, have their own authenticator setup up already and do not wish to use two applications for generating passwords.

Since I use 1Password for all of my password storing/generating needs, I was looking for a solution to use Authy passwords on that. I couldn't find any completely working solutions, however I stumbled upon a gist by Brian Hartvigsen. His post had a neat code with it to generate QR codes for you to use on your favorite authenticator.

His method is to extract the secret keys using Authy's Google Chrome app via Developer Tools. If this was not possible, I guess people would be reverse engineering the Android app or something like that. But when I tried that code, nothing appeared on the screen. My guess is that Brian used the

@f2face
f2face / my_list_layout.xml
Created December 4, 2019 05:36
Disable multi-touch in RecyclerView
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
...>
<androidx.recyclerview.widget.RecyclerView
...
android:splitMotionEvents="false" />
</LinearLayout>
@f2face
f2face / MyAdapter.java
Last active February 29, 2020 05:38
Imagine you're implementing a horizontal RecyclerView and you want the items inside it to have equal space.
// This snippet should be in your adapter class
@Override
public void onBindViewHolder(@NonNull MyViewHolder holder, int position) {
// Set grid items spacing
if (holder.container.getLayoutParams() instanceof ViewGroup.MarginLayoutParams) {
ViewGroup.MarginLayoutParams p = (ViewGroup.MarginLayoutParams) holder.container.getLayoutParams();
int marginStart = 16; // 16dp
@f2face
f2face / ImageFromUrl.java
Last active April 2, 2019 12:01
[Android] A class to get image from a URL and find the vibrant color.
package com.example.app.package; // Your package namespace
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.AsyncTask;
import java.io.IOException;
import java.io.InputStream;
import androidx.annotation.ColorInt;
@f2face
f2face / MySingleton.java
Created March 31, 2019 02:59
Android/Java Singleton class boilerplate.
/*
* A Singleton class, based on an article on Medium, "How to make the perfect Singleton?"
* Link: https://medium.com/@kevalpatel2106/how-to-make-the-perfect-singleton-de6b951dfdb0
*/
package com.myapp.singleton; // Your package name
public class MySingleton {
private static volatile MySingleton instance;
@f2face
f2face / gradle-wrapper.properties
Created December 9, 2018 00:31
React Native Gradle Wrapper Properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.0-all.zip