Instructions how to install Debian using debootstrap. Below instructions were verified to work with debootstrapping Debian 11.
#import <Foundation/NSObject.h> | |
@interface Fraction: NSObject { | |
int numerator; | |
int denominator; | |
} | |
-(void) print; | |
-(void) setNumerator: (int) n; | |
-(void) setDenominator: (int) d; |
- (void) doIt { | |
// Define the command name and the arguments array (the nil at the end is needed) | |
NSArray *arguments = [NSArray arrayWithObjects:@"--some-argument", @"--another", nil]; | |
NSString *command = @"do-something-shell"; | |
// Setup the NSTask for the command execution | |
NSTask *task = [[NSTask alloc] init]; | |
task.launchPath = command; | |
task.arguments = arguments; |
/** | |
* jQuery Plugin to obtain touch gestures from iPhone, iPod Touch and iPad, should also work with Android mobile phones (not tested yet!) | |
* Common usage: wipe images (left and right to show the previous or next image) | |
* | |
* @author Andreas Waltl, netCU Internetagentur (http://www.netcu.de) | |
* @version 1.1.1 (9th December 2010) - fix bug (older IE's had problems) | |
* @version 1.1 (1st September 2010) - support wipe up and wipe down | |
* @version 1.0 (15th July 2010) | |
*/ | |
(function($) { |
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
Here's a list of mildly interesting things about the C language that I learned mostly by consuming Clang's ASTs. Although surprises are getting sparser, I might continue to update this document over time.
There are many more mildly interesting features of C++, but the language is literally known for being weird, whereas C is usually considered smaller and simpler, so this is (almost) only about C.
1. Combined type and variable/field declaration, inside a struct scope [https://godbolt.org/g/Rh94Go]
struct foo {
struct bar {
int x;
# IDA (disassembler) and Hex-Rays (decompiler) plugin for Apple AMX | |
# | |
# WIP research. (This was edited to add more info after someone posted it to | |
# Hacker News. Click "Revisions" to see full changes.) | |
# | |
# Copyright (c) 2020 dougallj | |
# Based on Python port of VMX intrinsics plugin: | |
# Copyright (c) 2019 w4kfu - Synacktiv |
The target audience for this is people who are beginners at software engineering and using linux. A lot of the information here may be obvious or already known to you. The language involved is C but you do not need to know any C to read this tutorial. I used mg
to write this blog post. I used vs code to edit the source code.
This post is also available on gopher://tilde.team:70/0/~river/tweak-free-software
If you use a piece of free software and it's 99% perfect but there's just this one thing it does that annoys the hell out of you.. you can in theory just fix it! Here's a look at what doing that is like. Hopefully it inspires you, or you pick up a could tricks on the way!
Minimal script to quickly update hosts file from a filter list.
Note that this does not replace the entirety of the hosts file, so previous customizations will remain intact.
Download the update_hosts script below or run:
$ curl --proto "=https" --tlsv1.2 https://gist.githubusercontent.com/metametapod/4c4a7a9c888343fc6e722f8ed77aa763/raw/update_hosts -o update_hosts