Skip to content

Instantly share code, notes, and snippets.

@luncliff
luncliff / cmake-tutorial.md
Last active May 3, 2024 00:53
CMake 할때 쪼오오금 도움이 되는 문서

CMake를 왜 쓰는거죠?
좋은 툴은 Visual Studio 뿐입니다. 그 이외에는 전부 사도(邪道)입니다 사도! - 작성자

주의

  • 이 문서는 CMake를 주관적으로 서술합니다
  • 이 문서를 통해 CMake를 시작하기엔 적합하지 않습니다
    https://cgold.readthedocs.io/en/latest/ 3.1 챕터까지 따라해본 이후 기본사항들을 속성으로 익히는 것을 돕기위한 보조자료로써 작성되었습니다
@paulmasri
paulmasri / CMakeLists.txt
Created July 4, 2023 10:54
CMake for Qt 6 + Xcode (target iOS)
# This is an anonymised and annotated version of my CMake
# This enabled me to build / archive / validate / distribute my app in Xcode
# without having to manually edit any configuration in Xcode
cmake_minimum_required(VERSION 3.24)
# Some variables needed more than once below
set(MY_APP_PROJECT_NAME "My App")
set(PROJECT_VERSION 1.2.3)
set(MY_APP_REVERSE_DNS_IDENTIFIER "com.mycompany.myapp")
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 3, 2024 00:47
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@iskakaushik
iskakaushik / cstr_array.rs
Created February 12, 2021 05:31
Transfer rust vec to c array strings.
use std::ffi::CString;
use std::os::raw::{c_char, c_int};
use std::{ptr, mem};
#[no_mangle]
unsafe extern "C" fn get_strings(outlen: *mut c_int) -> *mut *mut c_char {
let mut v = vec![];
// Let's fill a vector with null-terminated strings
v.push(CString::new("Hello").unwrap());
@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active May 3, 2024 00:46
Hyperlinks in Terminal Emulators
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard ERC-20 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.
*/
interface IERC20Errors {
/**
@Wra7h
Wra7h / Get-ProcessPipes.ps1
Last active May 3, 2024 00:41
Use PowerShell to get the PIDs associated with Named Pipes
function Get-ProcessPipes{
param(
[Parameter(Mandatory=$false)]
[string]$CSV,
[Parameter(Mandatory=$false)]
[switch]$All
)
Add-Type -TypeDefinition @"
using System;
@jayluxferro
jayluxferro / Kali_Desktop_Environments_Installation_and_Removal.md
Last active May 3, 2024 00:39
Kali Desktop Environments Installation and Removal

XFCE Desktop


How to install XFCE Desktop Environment in Kali Linux:

Command:

apt-get install kali-defaults kali-root-login desktop-base xfce4 xfce4-places-plugin xfce4-goodies

How to remove XFCE in Kali Linux:

Command:

@ZulianTiger
ZulianTiger / digitalocean-deployment.txt
Last active May 3, 2024 00:35
How to Deploy a Next.js Website to a DigitalOcean Server
***Simple and stripped down version of this post: https://www.coderrocketfuel.com/article/how-to-deploy-a-next-js-website-to-a-digital-ocean-server ***
1. Create a New Droplet On DigitalOcean
a) In the first section, select the Ubuntu operating system for your server
b) In the "Authentication" section, make sure the "Password" option is selected and enter a strong root password for your server.
2. Access Server Using Root
a) ssh root@server_ip_address (connect to server from terminal)
3. Add user (OPTIONAL)