Skip to content

Instantly share code, notes, and snippets.

@luncliff
luncliff / cmake-tutorial.md
Last active May 16, 2022
CMake 할때 쪼오오금 도움이 되는 문서
View cmake-tutorial.md

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

주의

  • 이 문서는 CMake를 주관적으로 서술합니다
  • 이 문서를 통해 CMake를 시작하기엔 적합하지 않습니다
    https://cgold.readthedocs.io/en/latest/ 3.1 챕터까지 따라해본 이후 기본사항들을 속성으로 익히는 것을 돕기위한 보조자료로써 작성되었습니다
@amake
amake / innosetup-linux-macos.org
Last active May 16, 2022
Inno Setup on Linux and macOS
View innosetup-linux-macos.org

Inno Setup on Linux and macOS

Inno Setup is a popular installer builder for Windows. Of course it is made to run on Windows only, by default. But what if you want to build Windows installers off Windows, i.e. on Linux or macOS?

You’re in luck: It’s possible to run Inno Setup anywhere that Docker runs (including Linux and macOS), and even have a passable experience writing your setup script.

@MatthewSteeples
MatthewSteeples / mousemove.ps1
Created Feb 26, 2015
Powershell Script to keep the mouse moving
View mousemove.ps1
Add-Type -AssemblyName System.Windows.Forms
while ($true)
{
$Pos = [System.Windows.Forms.Cursor]::Position
$x = ($pos.X % 500) + 1
$y = ($pos.Y % 500) + 1
[System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point($x, $y)
Start-Sleep -Seconds 10
}
@qwfys
qwfys / 202005281327.md
Last active May 16, 2022
国内拉取google kubernetes镜像
@echo-akash
echo-akash / DoublyLinkedList.cpp
Created May 3, 2017
Implement Doubly Linked List using C++
View DoublyLinkedList.cpp
#include<iostream>
#include<cstdio>
#include<cstdlib>
using namespace std;
struct node
{
int value;
struct node* next;
struct node* prev;
@zahidurr
zahidurr / Doubly Linked List.md
Last active May 16, 2022
Doubly Linked List in C++
View Doubly Linked List.md

##Doubly Linked List in C++

@mpneuried
mpneuried / Makefile
Last active May 16, 2022
Simple Makefile to build, run, tag and publish a docker containier to AWS-ECR
View Makefile
# import config.
# You can change the default config with `make cnf="config_special.env" build`
cnf ?= config.env
include $(cnf)
export $(shell sed 's/=.*//' $(cnf))
# import deploy config
# You can change the default deploy config with `make cnf="deploy_special.env" release`
dpl ?= deploy.env
include $(dpl)
@kos9kus
kos9kus / NSURLErrorDomain.h
Last active May 16, 2022
URL Loading System Error Codes
View NSURLErrorDomain.h
These values are returned as the error code property of an NSError object with the domain “NSURLErrorDomain”.
Declaration
SWIFT
var NSURLErrorUnknown: Int { get }
var NSURLErrorCancelled: Int { get }
var NSURLErrorBadURL: Int { get }
var NSURLErrorTimedOut: Int { get }
var NSURLErrorUnsupportedURL: Int { get }
var NSURLErrorCannotFindHost: Int { get }
@ansemjo
ansemjo / openwrtbuilder
Last active May 16, 2022
OpenWRT builder - using the imagebuilder to compile a custom image
View openwrtbuilder
#!/usr/bin/env bash
set -e
RELEASE="snapshot"
TARGET="ar71xx/generic"
PROFILE="archer-c7-v2"
PACKAGES="-ppp -ppp-mod-pppoe luci-ssl wireguard"
DESTINATION=~/Downloads
LISTONLY=no
@ndunn219
ndunn219 / srt_to_txt.py
Last active May 16, 2022
Simple Python Script for Extracting Text from an SRT File
View srt_to_txt.py
"""
Creates readable text file from SRT file.
"""
import re, sys
def is_time_stamp(l):
if l[:2].isnumeric() and l[2] == ':':
return True
return False