Skip to content

Instantly share code, notes, and snippets.

@hsw0
hsw0 / Disable iCloud Backup.mobileconfig
Created September 16, 2024 08:45
Disable some iCloud features
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>PayloadDescription</key>
<string>Configures restrictions</string>
<key>PayloadDisplayName</key>
@hsw0
hsw0 / Classifier.html
Created May 22, 2017 18:30
다범주 분류
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Classfier</title>
</head>
<body>
<style>
#testbed td { margin: 0; padding: 0; width: 15px; height: 15px; }
@hsw0
hsw0 / Solution.java
Last active April 13, 2024 23:49
codility-sum-of-digits.java
import java.util.Arrays;
/**
* A nonempty Zero-indexed array A consisting of N integers is given.
* This array contains a decimal representation of a number V,
* i.e. element A[K] contains the K-th least significant digit of the decimal
* representation of V.
*
* For example, array A such that:
* A[0] = 3
@hsw0
hsw0 / Solution.java
Created October 16, 2016 08:13
codility-min-letters-to-be-anagram.java
/**
* 아나그램이 되기 위해 필요한 최소한의 글자 수
*
* An anagram is a word that can be obtained by rearranging the letters of
* another word, using all the constituent letters exactly once.
* For example, words "admirer" and "married" are anagrams of one another.
* However, the words "rather" and "harder" are not anagrams, since "rather"
* does not contain the letter "d' and "harder" does not contain
* the letter 't'. Two identical words are anagrams, too.
* You may also notice that anagram of any word must be of same length as
@hsw0
hsw0 / citrixautoextend.js
Created December 23, 2015 05:52
Citrix Receiver Session timeout Auto extend
// ==UserScript==
// @name Citrix Receiver Session timeout Auto extend
// @namespace http://hsw.syscall.io/
// @version 0.1
// @description 나는 게으르다
// @match http*://*/Citrix/DesktopWeb/site/default.aspx*
// @match http*://*/S-VDI/site/default.aspx*
// @copyright 2014+, Seungwon Heo <[email protected]>
// ==/UserScript==
@hsw0
hsw0 / 000-README.md
Last active October 18, 2022 07:56
Samba AD + OpenSSH LPK Schema

Samba AD + openssh-lpk Schema

Add openssh-lpk Schema [1] to Samba 4 ad dc.

Usage

sed -i -e 's/${DOMAINDN}/DC=your,DC=domain,DC=name/' *.ldif'
@hsw0
hsw0 / secrets
Created February 22, 2015 16:39
OpenSMTPD relay via Mandrill
mandrill USERNAME:APIKEY

Keybase proof

I hereby claim:

  • I am hsw0 on github.
  • I am localhost (https://keybase.io/localhost) on keybase.
  • I have a public key whose fingerprint is EE03 E2EF 28A7 19C0 F71E D8EF D25B F2DD 11A4 0D95

To claim this, I am signing this object: