Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Requirements: | |
// 1. Must install APC extension (drcika.apc-extension) | |
// 2. Change the font family or install JetBrainsMono Nerd Font (https://www.nerdfonts.com/font-downloads) | |
// 3. Change the color theme or install Catppuccin Mocha (Catppuccin.catppuccin-vsc) | |
// 3.1. If you changed the color theme, also change the color of the window controls to match the theme (Line 101 of this gist) | |
// 4. Change the icon theme or install Symbols (miguelsolorio.symbols) | |
// 5. Change/add your specific settings whatever you like | |
// ⚠ Made for Windows so idk how its gonna look on Mac | |
{ | |
// General |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
extension Calendar { | |
func generateDates( | |
inside interval: DateInterval, | |
matching components: DateComponents | |
) -> [Date] { | |
var dates: [Date] = [] | |
dates.append(interval.start) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using UnityEngine; | |
public static class HexVectorExtensions { | |
public static Vector2 WorldToPlanar(this Vector3 world) { | |
return new Vector2(world.x, world.z); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# best practice: linux | |
nano ~/.pgpass | |
*:5432:*:username:password | |
chmod 0600 ~/.pgpass | |
# best practice: windows | |
edit %APPDATA%\postgresql\pgpass.conf | |
*:5432:*:username:password | |
# linux |
[!fig|left|snail]- ![[snail.png|Snail Facts!|200]] Snails are cool! Click to learn more!
- Snails r cute :3
- They be eating leaf
- Swirly soft-boi chomkers :3333
Read-more [[Le Smail Manifesto|here]]!
[!fig|right|px] ![[meloonics_64.png|64]] It me!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#objective-c xrefs hopper script | |
#rewrite the IDAPython script https://github.com/fireeye/flare-ida/blob/master/python/flare/objc2_xrefs_helper.py | |
#author: Kai Lu(@k3vinlusec) | |
#editor: Zhuoli Li(@dreampiggy) | |
def getRefPtr(doc,classMethodsVA,objcSelRefs, objcMsgRefs, objcConst): | |
ret = (None, None) | |
namePtr = doc.readUInt64LE(classMethodsVA) #get name field in struct __objc_method, it's selector | |
ctn = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defsystem "hoge" | |
:class :package-inferred-system | |
:pathname "src" | |
:depends-on ("hoge/main") | |
:in-order-to ((test-op (test-op "hoge/tests")))) | |
(defsystem "hoge/tests" | |
:pathname "tests" | |
:depends-on ("hoge") | |
:components |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# --slave /usr/bin/$1 $1 /usr/bin/$1-\${version} \\ | |
function register_clang_version { | |
local version=$1 | |
local priority=$2 | |
update-alternatives \ | |
--install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-${version} ${priority} \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Composable | |
fun MainScreen() { | |
Column( | |
modifier = Modifier | |
.fillMaxSize() | |
.background(MaterialTheme.colorScheme.surface), | |
verticalArrangement = Arrangement.Center, | |
horizontalAlignment = Alignment.CenterHorizontally | |
) { | |
AnimatedBorderCard( |
NewerOlder