Skip to content

Instantly share code, notes, and snippets.

View Adhjie's full-sized avatar
🎯
Focusing

Adi Adhjie

🎯
Focusing
View GitHub Profile
@gorshkov-leonid
gorshkov-leonid / docker-in-windows.md
Last active April 2, 2025 10:16
Docker In Windows (Final)

See final versions without trash here

Docker in Windows without Docker Desktop

❤️‍🔥 Install docker client in Windows

  • Download necessary version of docker binaries from https://docs.docker.com/engine/install/binaries/ and extract archive to c:/Program Files, for example, using script in powershell. Run powershell as Administrator and call:
    Expand-Archive .\docker-20.10.9.zip -DestianationPath $Env:ProgramFiles  
    Files docker.exe and dockerd.exe will be here c:/Program Files/docker/.
@gorshkov-leonid
gorshkov-leonid / install-applications.md
Last active December 13, 2024 10:38
Install applications
@gorshkov-leonid
gorshkov-leonid / docker-in-windows.md
Last active December 13, 2024 10:42
Docker in Windows without Docker Desktop
@gorshkov-leonid
gorshkov-leonid / install-and-configure-ubuntu-wsl.md
Last active December 13, 2024 10:37
Install and configure Ubuntu WSL
@brainfucksec
brainfucksec / user.js
Last active April 2, 2025 16:19
user.js - brainfucksec
/*********************************************************************
*
* Name: user.js | brainfucksec
* Date: 2024-10-20
* Version: 0.23.0
* Descr.: Mozilla Firefox configuration file: `user.js`
* URL: https://gist.github.com/brainfucksec/68e79da1c965aeaa4782914afd8f7fa2
* Maintainer: brainf+ck
*
* INFO:
@shaybensasson
shaybensasson / install-obsidian.sh
Created July 10, 2021 07:02
Installing Obsidian (an advanced markdown editor) on Ubuntu
#!/usr/bin/env bash
# see https://forum.obsidian.md/t/gnome-desktop-installer/499
set -euo pipefail
icon_url="https://cdn.discordapp.com/icons/686053708261228577/1361e62fed2fee55c7885103c864e2a8.png"
#dl_url=${1:-}
dl_url=$( curl -s https://api.github.com/repos/obsidianmd/obsidian-releases/releases/latest \
| grep "browser_download_url.*AppImage" | tail -n 1 | cut -d '"' -f 4 )
class PipeServer
{
static
int
Main(string[] args)
{
if(args.Length < 2
||(System.String.Compare(args[0], "in") != 0
&& System.String.Compare(args[0], "out") != 0)) {
System.Console.WriteLine("Usage: PipeServer <in | out> <process> <args>");
@kohnakagawa
kohnakagawa / check_cet_supported.c
Created March 27, 2021 07:53
Checks whether your cpu supports Intel CET or not (Linux).
#include <stdio.h>
#include <cpuid.h>
#include <stdint.h>
int cpu_supports_cet_shadow_stack() {
uint32_t eax = 0, ebx = 0, ecx = 0, edx = 0;
__cpuid_count(7, 0, eax, ebx, ecx, edx);
return (ecx & (1 << 7)) != 0;
}